:root {
  --ink: #121826;
  --muted: #647084;
  --line: #d9e0ea;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --fill: #edf2f7;
  --brand: #0033a0;
  --brand-dark: #002270;
  --accent: #0f766e;
  --blue: #1d4ed8;
  --gold: #b7791f;
  --shadow: 0 18px 50px rgba(18, 24, 38, 0.12);
}

[data-theme="dark"] {
  --ink: #e8edf5;
  --muted: #8a97aa;
  --line: #2a3344;
  --paper: #0f1623;
  --surface: #182030;
  --fill: #1e293b;
  --brand: #4d7fd4;
  --brand-dark: #0033a0;
  --accent: #14b8a6;
  --blue: #60a5fa;
  --gold: #f6ad55;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.topbar {
  background: #111827;
  color: #edf2f7;
  font-size: 13px;
}

.topbar-inner,
.nav-inner,
.section-inner,
.footer-inner {
  width: 100%;
  max-width: 1180px;
  padding: 0 16px;
  margin: 0 auto;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ticker strong {
  color: #fff;
  background: var(--brand);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ticker span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   WEATHER BAR
   =========================== */
.weather-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  z-index: 100;
}
.weather-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.weather-date, .weather-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #94a3b8;
}
.wdate-part, .date-main {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.weather-time, .time-main {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  color: #cbd5e1;
}
.wdate-dot {
  display: flex;
  align-items: center;
  gap: 1px;
}
.wdate-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  font-size: 13px;
  margin: 0 1px;
}
.weather-info, .weather-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.weather-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
}
.weather-city {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.weather-temp {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}
.weather-desc {
  color: #bae6fd;
  font-style: italic;
  font-weight: 400;
}
.weather-wind {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .weather-desc, .weather-wind { display: none; }
  .weather-bar-inner { padding: 0 12px; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(217, 224, 234, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background 300ms, box-shadow 300ms;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(18,24,38,0.10);
}
[data-theme="dark"] .header {
  background: rgba(24, 32, 48, 0.82);
  border-bottom-color: rgba(42, 51, 68, 0.6);
}
[data-theme="dark"] .header.scrolled {
  background: rgba(24, 32, 48, 0.97);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--paper);
  color: var(--brand);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-search {
  display: flex;
  align-items: center;
}

.search {
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
}

.lang-toggle {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 9px 10px;
  color: var(--muted);
}

.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}



.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.55;
}

.page-tools {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.page-tools::after {
  content: "";
  display: block;
  padding-right: 1px;
}
.page-tools::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(18, 24, 38, 0.06);
  display: flex;
  flex-direction: column;
}

.story-card button {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.story-image {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
}

.story-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category {
  display: inline-flex;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

[data-theme="dark"] .category {
  color: #ffffff;
}

.story-card h3 {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.22;
}

.story-card p {
  margin: 0 0 auto;
  color: var(--muted);
  line-height: 1.5;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  margin-top: 16px;
  font-size: 13px;
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.trend {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.trend:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.trend-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef2f8;
  color: var(--brand);
  font-weight: 900;
}

.trend strong {
  display: block;
  line-height: 1.28;
}

.trend small {
  color: var(--muted);
}

.newsletter {
  background: #1a2540;
  color: #fff;
  border-color: transparent;
}

[data-theme="dark"] .newsletter {
  background: #0f1a2e;
  border: 1px solid #1e3a5f;
}

.newsletter h3 {
  color: #fff;
}

.newsletter p {
  color: #94a3b8;
  line-height: 1.55;
}

.newsletter input {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  margin: 4px 0 10px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-family: inherit;
}

[data-theme="dark"] .newsletter input {
  background: #1e2736;
  color: #e8edf5;
  border: 1px solid #334155;
}

.primary {
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
}

.ghost,
.danger,
.admin-entry {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 700;
}

.admin-entry.active,
.ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.danger {
  border-color: #f1b5bd;
  color: var(--brand);
}

.danger:hover {
  background: var(--brand);
  color: #fff;
}

.wide-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.wide-feature-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.feature-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.feature-copy h2 {
  margin: 12px 0;
  font-size: clamp(29px, 4vw, 50px);
  line-height: 1;
}

.feature-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fafbfe;
}

.stat strong {
  display: block;
  font-size: 26px;
  color: var(--brand);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.contact-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.api-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  padding: 12px 14px;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 52px;
}

.admin-login {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
}

.admin-login h1,
.admin-head h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

.admin-login p,
.admin-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 660px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.06);
}

.admin-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.admin-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 500;
}

.admin-card textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor .admin-actions {
  justify-content: flex-start;
}

.admin-preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 0 0 14px;
}

.notice,
.admin-message {
  border: 1px solid #b7dfd8;
  border-radius: 8px;
  background: #ecfdf9;
  color: #0f766e;
  padding: 12px 14px;
}

.notice {
  margin-bottom: 18px;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.admin-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
}

.admin-stats strong {
  color: var(--brand);
  font-size: 28px;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-item img {
  width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.admin-item h3 {
  margin: 7px 0;
  font-size: 20px;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status.published {
  background: #dcfce7;
  color: #166534;
}

.status.draft {
  background: #fef3c7;
  color: #92400e;
}

/* Modern newsroom refresh */
body {
  background: var(--paper);
  color: var(--ink);
}

.topbar {
  background: #0b1220;
  border-bottom: 3px solid var(--brand);
}

.ticker strong {
  border-radius: 2px;
  background: var(--surface);
  color: var(--brand);
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  min-height: 86px;
  grid-template-columns: 230px 1fr 360px;
}

.brand.nav-link {
  justify-content: flex-start;
  padding: 0;
}

.brand-mark {
  border-radius: 3px;
  background: var(--brand);
}

.brand-name {
  font-size: 29px;
  letter-spacing: 0;
}

.brand-sub {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  justify-content: center;
}

.nav-link {
  border-radius: 2px;
  font-weight: 800;
}

.nav-link.active {
  background: var(--brand);
  color: #fff;
}

.search {
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.lang-toggle,
.admin-entry,
.chip,
.primary,
.ghost,
.danger {
  border-radius: 2px;
}

.hero {
  background: var(--paper);
  color: var(--ink);
  padding: 32px 0;
}

.hero-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: stretch;
  gap: 32px;
}

.hero-left-block,
.hero-right-block {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.hero-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-block-header .dot {
  width: 10px;
  height: 10px;
  background-color: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 51, 160, 0.7);
  animation: pulse-dot 1.6s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(0, 51, 160, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(0, 51, 160, 0);
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(0, 51, 160, 0);
  }
}

.hero-block-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.hero-main {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s;
}

.hero-main:hover {
  opacity: 0.85;
}

.hero-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-main-content h1 {
  font-size: 30px;
  line-height: 1.3;
  margin: 12px 0 16px;
  font-weight: 800;
}

.hero-main-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.hero-main-thumb {
  width: 55%;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
}

.hero-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-sub-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.hero-sub-card:hover {
  opacity: 0.85;
}

.kicker-small {
  font-size: 11px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
}

.kicker {
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-sub-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.side-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
}

.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-latest-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  margin-bottom: 24px;
}

.hero-latest-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  flex: 1;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero-latest-card:hover {
  opacity: 0.85;
}

.hero-latest-card:first-child {
  padding-top: 0;
}

.hero-latest-card:last-child {
  border-bottom: none;
}

.latest-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.latest-copy h3 {
  font-size: 15px;
  line-height: 1.38;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-thumb {
  width: 110px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.more-news-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.2s;
}

.more-news-btn:hover {
  background: var(--brand-dark);
}

.category-masthead {
  display: grid;
  gap: 8px;
  border-left: 6px solid var(--brand);
  background: var(--surface);
  padding: 24px 26px;
  margin-bottom: 22px;
}

.category-masthead span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-masthead h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.category-masthead p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.section-title {
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  background: var(--brand);
}

.layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.stories-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

[data-theme="dark"] .story-card h3 {
  color: #f1f5f9;
}

[data-theme="dark"] .story-card p {
  color: #94a3b8;
}

.story-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.story-card button {
  height: 100%;
}

.story-card:hover h3 {
  color: var(--brand);
}

.story-image {
  aspect-ratio: 16 / 9;
}

.story-body {
  padding: 18px;
}

.story-card h3 {
  font-size: 21px;
  line-height: 1.18;
}

.featured-story {
  grid-column: 1 / -1;
  border-bottom: 2px solid var(--line, #e2e8f0);
  padding-bottom: 28px;
  margin-bottom: 8px;
}

.featured-story a,
.featured-story button {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.featured-story .story-body {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-story .story-image {
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
}

.featured-story h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

.featured-story p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-section {
  padding-bottom: 60px;
}

.cat-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0 0 28px 0;
  letter-spacing: -0.3px;
}

.cat-featured-story {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

.cat-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cat-featured-text {
  display: flex;
  flex-direction: column;
}

.cat-featured-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink, #0f172a);
  margin: 0 0 14px 0;
  transition: color 0.2s ease;
}

.cat-featured-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink, #334155);
  opacity: 0.88;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-time {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-time-bullet {
  font-size: 9px;
  color: #0033a0;
}

.cat-featured-img-wrap {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.cat-featured-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cat-featured-link:hover .cat-featured-img {
  transform: scale(1.02);
}

.cat-featured-link:hover .cat-featured-title {
  color: #0033a0;
}

/* 3-Column Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cat-card-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cat-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-card-img {
  transform: scale(1.03);
}

.cat-card:hover .cat-card-title {
  color: #0033a0;
}

.cat-video-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0033a0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cat-card-time {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
}

.cat-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #0f172a);
  margin: 0;
  transition: color 0.2s ease;
}

@media (max-width: 900px) {
  .cat-featured-link {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.panel {
  border-radius: 0;
  box-shadow: none;
}

.panel h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.trend {
  grid-template-columns: 28px 1fr;
}

.trend-num {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
}

.wide-feature {
  background: #0f172a;
  color: #fff;
}

.feature-copy p,
.wide-feature .stat span {
  color: #cbd5e1;
}

.wide-feature .stat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Modern special project section */
.wide-feature {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(195, 25, 50, 0.18), transparent 28%),
    linear-gradient(135deg, #0b1220 0%, #111827 58%, #152033 100%);
  border: 0;
  padding: 64px 0;
}

.wide-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.wide-feature-inner {
  position: relative;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
}

.feature-media {
  position: relative;
  min-height: 420px;
}

.feature-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.feature-media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 42%;
  height: 42%;
  border-right: 6px solid var(--brand);
  border-bottom: 6px solid var(--brand);
  border-radius: 0 0 18px 0;
}

.feature-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.feature-copy {
  max-width: 720px;
}

.feature-copy .kicker {
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  padding: 8px 13px;
}

.feature-copy h2 {
  max-width: 650px;
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
}

.feature-copy p {
  max-width: 620px;
  color: #dbe5f4;
  font-size: 18px;
}

.stats {
  max-width: 560px;
  gap: 12px;
}

.wide-feature .stat {
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.wide-feature .stat strong {
  font-size: 32px;
}

.wide-feature .stat span {
  color: #d8e3f4;
  font-weight: 700;
}

/* Compact video and photo grid */
.media-section {
  padding: 34px 0 46px;
  background: #f4f6f8;
}

.media-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.media-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.media-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 10px;
  background: var(--brand);
}

.media-head p {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.media-more {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 900;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  overflow: hidden;
  border: 1px solid #d7dce5;
  border-radius: 7px;
  background: #e6e8ed;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.media-card button {
  display: grid;
  width: 100%;
  min-height: 310px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.media-thumb {
  position: relative;
  display: block;
  height: 134px;
  overflow: hidden;
  background: #cbd5e1;
}

.media-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 68%;
  background: linear-gradient(180deg, transparent, rgba(4, 24, 78, 0.78));
}

.media-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-card:hover img {
  transform: scale(1.04);
}

.media-icon {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #0b3b8f;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.media-icon.photo {
  color: var(--brand);
}

.media-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px 16px 16px;
}

.media-body strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.13;
}

.media-body small {
  color: #8a93a3;
  font-size: 11px;
  font-weight: 800;
}

.admin-shell {
  width: min(1440px, calc(100% - 28px));
  padding-top: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 104px;
  min-height: calc(100vh - 132px);
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 8px;
  background: #101827;
  color: #e5edf8;
  padding: 18px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-sidebar button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dbeafe;
  padding: 12px;
  text-align: left;
  font-weight: 800;
}

.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: var(--brand);
  color: #fff;
}

.admin-sidebar-foot {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9fb1c7;
  font-size: 13px;
}

.admin-main {
  min-width: 0;
}

.admin-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.admin-head h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-overview span {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.admin-overview strong {
  color: var(--brand);
  font-size: 38px;
  line-height: 0.9;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.admin-card {
  border-radius: 8px;
  box-shadow: none;
}

.preview-card h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.12;
}

.preview-card p {
  color: var(--muted);
  line-height: 1.55;
}

.content-table {
  margin-top: 22px;
}

.admin-item {
  grid-template-columns: 126px minmax(0, 1fr) 270px;
}

.footer {
  background: #101725;
  color: #dbe3ee;
  padding: 36px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer strong {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links button {
  border: 0;
  background: transparent;
  color: #dbe3ee;
  padding: 6px 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 15, 25, 0.68);
}

.article-modal {
  width: min(820px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
}

.article-modal img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.article-content {
  padding: 24px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.close {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.article-content h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.article-content p {
  color: var(--muted);
  line-height: 1.7;
}

/* ==============================
   ADMIN PANEL — YANGI UI
   ============================== */

/* Login */
.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--muted);
}

@keyframes spin { to { transform: rotate(360deg); } }
.admin-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.admin-login-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  width: min(440px, 100%);
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}

.admin-login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-login-logo div {
  display: flex;
  flex-direction: column;
}

.admin-login-logo strong {
  font-size: 18px;
  color: var(--ink);
}

.admin-login-logo span {
  font-size: 12px;
  color: var(--muted);
}

.admin-login-box h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}

.admin-login-box p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.admin-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 160ms;
}

.admin-input-group:focus-within {
  border-color: var(--brand);
}

.admin-input-icon {
  padding: 0 14px;
  font-size: 16px;
  background: var(--paper);
  border-right: 1.5px solid var(--line);
  height: 46px;
  display: grid;
  place-items: center;
}

.admin-input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
}

.admin-login-btn {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms, transform 120ms;
}

.admin-login-btn:hover {
  background: #a8122a;
  transform: translateY(-1px);
}

.admin-notify {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.admin-notify.success { background: rgba(34,197,94,0.15); color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.admin-notify.error   { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.admin-notify.info    { background: rgba(59,130,246,0.15); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }

.admin-login-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.admin-login-hint code {
  background: var(--fill);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--brand);
}

/* Panel wrapper */
.adm-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 60px);
  background: var(--paper);
}

/* Toast */
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.adm-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: toast-in 200ms ease;
}

.adm-toast.success { background: #065f46; color: #fff; }
.adm-toast.error   { background: #991b1b; color: #fff; }
.adm-toast.info    { background: #1e40af; color: #fff; }

/* Sidebar */
.adm-sidebar {
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.adm-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.adm-sidebar-logo div {
  display: flex;
  flex-direction: column;
}

.adm-sidebar-logo strong {
  font-size: 15px;
  color: #fff;
}

.adm-sidebar-logo span {
  font-size: 11px;
  color: #64748b;
}

.adm-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  flex: 1;
}

.adm-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 140ms, color 140ms;
}

.adm-nav button:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.adm-nav button.active {
  background: var(--brand);
  color: #fff;
}

.adm-nav-count {
  margin-left: auto;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 8px;
}

.adm-nav button.active .adm-nav-count {
  background: rgba(255,255,255,0.22);
}

.adm-sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.adm-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
}

.adm-stat-item strong {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.adm-stat-item span {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.adm-stat-item.published strong { color: #4ade80; }
.adm-stat-item.draft strong     { color: #facc15; }

.adm-logout {
  margin: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}

.adm-logout:hover {
  background: rgba(195,25,50,0.2);
  color: #f87171;
  border-color: rgba(195,25,50,0.3);
}

/* Main content */
.adm-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 0 40px;
}

.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.adm-header h1 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
}

.adm-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.adm-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 100ms;
  white-space: nowrap;
}

.adm-btn:active { transform: scale(0.97); }

.adm-btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.adm-btn.primary:hover { background: #a8122a; }

.adm-btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.adm-btn.ghost:hover { border-color: var(--ink); background: var(--paper); }

.adm-btn.danger {
  background: var(--surface);
  color: #dc2626;
  border-color: #fecaca;
}

.adm-btn.danger:hover { background: #fef2f2; border-color: #dc2626; }

/* List */
.adm-list {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-empty {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  font-size: 15px;
  background: var(--surface);
  border-radius: 10px;
  border: 1.5px dashed var(--line);
}

.adm-item {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 14px;
  transition: box-shadow 160ms;
}

.adm-item {
  position: relative;
}
.adm-item:hover { box-shadow: 0 4px 20px rgba(15,23,42,0.08); }

/* Hover preview tooltip */
.adm-item-preview {
  display: none;
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  z-index: 200;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  pointer-events: none;
}
.adm-item:hover .adm-item-preview {
  display: block;
  animation: preview-pop 180ms ease;
}
@keyframes preview-pop {
  from { opacity:0; transform: scale(0.95) translateY(-4px); }
  to   { opacity:1; transform: scale(1)   translateY(0); }
}
.adm-item-preview > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.adm-item-preview-body {
  padding: 12px 14px;
}
.adm-item-preview-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reaction & views badges in admin list */
.adm-reaction-badge, .adm-views-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--muted);
}

.adm-item > img {
  width: 120px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.adm-item-body { min-width: 0; }

.adm-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.adm-status {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.adm-status.published { background: rgba(34,197,94,0.15); color: #16a34a; }
.adm-status.draft     { background: rgba(245,158,11,0.15); color: var(--gold); }

.adm-item-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.adm-item-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.adm-item-body h3 {
  font-size: 15px;
  margin: 0 0 4px;
  line-clamp: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.adm-item-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adm-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Editor */
.adm-editor-wrap {
  padding: 24px 32px;
}

.adm-form-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 24px;
  align-items: start;
}

.adm-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.req { color: var(--brand); }

.adm-form input,
.adm-form select,
.adm-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 150ms;
  width: 100%;
  box-sizing: border-box;
}

.adm-form input:focus,
.adm-form select:focus,
.adm-form textarea:focus {
  border-color: var(--brand);
  outline: none;
}

.adm-form textarea { resize: vertical; }

.adm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.adm-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Preview */
.adm-preview-box {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-preview-box h4 {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.adm-preview-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.adm-preview-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
}

.adm-preview-title {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}

.adm-preview-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.adm-file-label {
  cursor: pointer;
}

.adm-file-label span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px dashed var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color 150ms, color 150ms;
}

.adm-file-label:hover span {
  border-color: var(--brand);
  color: var(--brand);
}

.adm-file-label input { display: none; }

/* ===========================
   AD BANNERS — SAYT
   =========================== */
.ad-banner {
  position: relative;
  text-align: center;
  margin: 0 auto;
}
.ad-banner-super_top, .ad-banner-top, .ad-banner-bottom {
  max-width: 1240px;
  padding: 8px 20px;
}
.ad-banner-sidebar {\n  margin-top: 20px;\n  width: 100%;\n}\n.ad-banner-article_inline, .ad-banner-inline {
  max-width: 100%;
  margin-bottom: 20px;
}
.ad-label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.6;
  pointer-events: none;
}
.ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fill);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 160ms;
}
.ad-inner:hover { opacity: 0.9; }
.ad-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-text-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
}
.ad-text-banner strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}
.ad-text-banner span {
  font-size: 13px;
  color: var(--muted);
}

/* ===========================
   AD BANNERS — ADMIN
   =========================== */
.adm-ads-wrap {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.adm-ads-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .adm-ads-grid { grid-template-columns: 1fr; }
}
.adm-ads-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-ads-form-card h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.adm-ads-form-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.adm-ads-form-card input,
.adm-ads-form-card select {
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
}
.adm-ads-form-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.adm-ads-list-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-ads-list-col h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.adm-ad-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  transition: border-color 160ms, opacity 160ms;
}
.adm-ad-item.inactive {
  opacity: 0.5;
}
.adm-ad-item.active {
  border-color: #22c55e;
}
.adm-ad-pos-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-ad-thumb {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.adm-ad-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-ad-info strong {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.adm-ad-info span {
  font-size: 11px;
  color: var(--muted);
}
.adm-ad-info small {
  font-size: 10px;
  color: var(--muted);
}
.adm-ad-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Preview section */
.adm-ads-preview-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}
.adm-ads-preview-section h3 {
  font-size: 15px;
  margin: 0 0 16px;
}
.adm-ads-preview-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .adm-ads-preview-layout { grid-template-columns: repeat(2, 1fr); }
}
.adm-preview-pos-block {
  background: var(--fill);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}
.adm-preview-pos-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.adm-preview-ad-card {
  background: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 11px;
}
.adm-preview-ad-card img {
  width: 100%;
  height: 40px;
  object-fit: cover;
  display: block;
}
.adm-preview-ad-card div {
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.adm-preview-ad-card strong { font-size: 10px; }
.adm-preview-ad-card span { font-size: 9px; color: var(--muted); }
.adm-preview-empty {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
}

/* Settings */
.adm-settings {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
}

.adm-settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.adm-settings-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.adm-settings-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.adm-settings-card.danger-zone {
  border-color: #fecaca;
  background: var(--paper);
}

.adm-settings-card.danger-zone h3 { color: #dc2626; }

.adm-settings input {
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

/* ==============================
   RICH TEXT EDITOR
   ============================== */

.adm-rich-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.rich-editor {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: all 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.rich-editor:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ==============================
   ADMIN FORM CONTROLS
   ============================== */
.adm-form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  transition: all 200ms ease;
  box-sizing: border-box;
}

.adm-form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.adm-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.rich-toolbar {
  background: var(--paper);
  border-bottom: 1.5px solid var(--line);
  padding: 5px 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.rich-toolbar-row {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.rich-toolbar-group {
  display: flex;
  align-items: center;
  gap: 1px;
}

.rich-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #cbd5e1;
  margin: 0 4px;
  flex-shrink: 0;
}

.rich-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms, color 120ms;
  white-space: nowrap;
  line-height: 1;
}

.rich-tool-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.rich-tool-btn:active {
  background: #cbd5e1;
}

.rich-tool-h1 { font-size: 11px; letter-spacing: -0.5px; }
.rich-tool-h2 { font-size: 11px; letter-spacing: -0.5px; }
.rich-tool-clear { color: #dc2626; }
.rich-tool-clear:hover { background: #fee2e2; color: #dc2626; }

.rich-tool-img.uploading { opacity: 0.5; pointer-events: none; }

.rich-upload-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}

@keyframes rich-spin { to { transform: rotate(360deg); } }
.rich-upload-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #bfdbfe;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: rich-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.rich-content {
  min-height: 280px;
  max-height: 70vh;
  overflow-y: auto;
  resize: vertical;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.rich-content:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.rich-content [style] {
  color: inherit !important;
  background-color: transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.rich-content h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 16px 0 8px;
  line-height: 1.2;
}

.rich-content h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 14px 0 6px;
  line-height: 1.3;
}

.rich-content p {
  margin: 0 0 10px;
}

.rich-content strong { font-weight: 900; }
.rich-content em { font-style: italic; }
.rich-content u { text-decoration: underline; }
.rich-content s { text-decoration: line-through; }

.rich-content ul,
.rich-content ol {
  padding-left: 22px;
  margin: 8px 0;
}

.rich-content li { margin-bottom: 4px; }

.rich-content hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 16px 0;
}

.rich-content a {
  color: var(--brand);
  text-decoration: underline;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rich-content img:hover {
  opacity: 0.85;
}

.rich-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 8px 16px;
  margin: 10px 0;
  color: var(--muted);
  background: var(--paper);
  border-radius: 0 6px 6px 0;
}

/* Article tags & views */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.article-tag {
  background: var(--paper);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.article-meta-row {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-views {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

/* SEO section in editor */
.adm-seo-section {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.adm-seo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.adm-seo-head small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
}

.adm-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.adm-seo-counter {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-align: right;
  display: block;
  margin-top: 4px;
}

.adm-seo-counter.over { color: #dc2626; }

/* Dashboard top views */
.adm-dash-views {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}

.adm-special-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .adm-special-tabs { grid-template-columns: 1fr; }
}

.adm-special-lang-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.adm-special-lang-group strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.adm-special-lang-group label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.adm-special-lang-group input,
.adm-special-lang-group textarea {
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 150ms;
}

.adm-special-lang-group input:focus,
.adm-special-lang-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.adm-special-lang-group textarea {
  resize: vertical;
  min-height: 60px;
}

.adm-dash-section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.adm-dash-stab-sep { color: var(--line); }

/* Banner indicator */
.adm-banner-preview {
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

/* ==============================
   MEDIA LIBRARY
   ============================== */

.adm-media-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow-y: auto;
}

.adm-media-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.adm-media-filter-btns {
  display: flex;
  gap: 6px;
}

.adm-media-filt {
  padding: 6px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 140ms;
}

.adm-media-filt.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.adm-media-filt:not(.active):hover {
  border-color: var(--brand);
  color: var(--brand);
}

.adm-media-dropzone {
  margin: 20px 28px 0;
  border: 2px dashed var(--line);
  border-radius: 12px;
  transition: border-color 150ms, background 150ms;
  background: var(--paper);
}

.adm-media-dropzone:hover {
  border-color: var(--brand);
  background: #eff6ff;
}

.adm-media-dz-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  text-align: center;
}

.adm-media-dz-inner.loading { opacity: 0.8; }

.adm-media-dz-inner p {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.adm-media-dz-inner small {
  font-size: 12px;
  color: var(--muted);
}

.adm-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 20px 28px 28px;
}

.adm-media-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: box-shadow 140ms;
}

.adm-media-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--brand);
}

.adm-media-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper);
  overflow: hidden;
}

.adm-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adm-media-video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-media-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.adm-media-play {
  position: absolute;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.adm-media-type-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 14px;
  background: rgba(0,0,0,0.55);
  border-radius: 6px;
  padding: 2px 5px;
}

.adm-media-info {
  padding: 8px 10px 4px;
  flex: 1;
}

.adm-media-info p {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.adm-media-info small {
  font-size: 11px;
  color: var(--muted);
}

.adm-media-actions {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}

.adm-media-actions .adm-btn {
  flex: 1;
  font-size: 11px;
  padding: 5px 4px;
}

.adm-btn.success {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* === Lang switch === */
/* Lang switch */
.adm-lang-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 0;
}

.adm-lang-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}

.adm-lang-switch button span {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
}

.adm-lang-switch button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.adm-lang-switch button:not(.active):hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Filters */
.adm-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.adm-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--paper);
  flex: 1;
  min-width: 200px;
  transition: border-color 150ms;
}

.adm-search-wrap:focus-within { border-color: var(--brand); background: var(--surface); }

.adm-search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}

.adm-filters select {
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.adm-filter-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

/* Export tugmalari */
.adm-export-btns {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.adm-export-btns .adm-btn {
  font-size: 12px;
  padding: 5px 10px;
}

/* Forma validatsiya */
input.field-error,
textarea.field-error {
  border-color: var(--brand) !important;
  background: rgba(195,25,50,0.04);
}
.field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  min-height: 16px;
}
.field-err-msg {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}
.char-count {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.char-count.over {
  color: var(--brand);
  font-weight: 800;
}

/* Shortcut hint */
.adm-shortcut-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  display: block;
  margin-top: 2px;
}

/* Nusxa tugmasi */
.adm-item-actions .adm-btn[title="Nusxalash"] {
  font-size: 16px;
  padding: 6px 10px;
}

/* Dashboard */
.adm-dashboard {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.adm-dash-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
}

.adm-dash-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.adm-dash-card div { display: flex; flex-direction: column; gap: 4px; }
.adm-dash-card strong { font-size: 28px; font-weight: 900; line-height: 1; }
.adm-dash-card span { font-size: 12px; color: var(--muted); font-weight: 700; }
.adm-dash-icon { font-size: 28px; }

.adm-dash-card.blue   { border-color: #3b82f6; background: rgba(59,130,246,0.1); }
.adm-dash-card.blue strong   { color: var(--blue); }
.adm-dash-card.green  { border-color: #22c55e; background: rgba(34,197,94,0.1); }
.adm-dash-card.green strong  { color: #16a34a; }
.adm-dash-card.yellow { border-color: #f59e0b; background: rgba(245,158,11,0.1); }
.adm-dash-card.yellow strong { color: var(--gold); }
.adm-dash-card.purple { border-color: #a78bfa; background: rgba(139,92,246,0.1); }
.adm-dash-card.purple strong { color: #7c3aed; }
.adm-dash-card.brand  { border-color: var(--brand); background: rgba(195,25,50,0.08); }
.adm-dash-card.brand strong  { color: var(--brand); }

.adm-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.adm-dash-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.adm-dash-section h3 {
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--ink);
}

/* Category bars */
.adm-cat-bars { display: flex; flex-direction: column; gap: 10px; }

.adm-cat-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.adm-cat-bar-row span { color: var(--muted); font-weight: 700; }
.adm-cat-bar-row strong { font-weight: 900; color: var(--ink); text-align: right; }

.adm-cat-bar-track {
  height: 8px;
  background: var(--fill);
  border-radius: 999px;
  overflow: hidden;
}

.adm-cat-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 600ms ease;
  min-width: 4px;
}

/* Recent items */
.adm-dash-recent { display: flex; flex-direction: column; gap: 10px; }

.adm-dash-recent-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.adm-dash-recent-item:last-child { border-bottom: none; }

.adm-dash-recent-item img {
  width: 52px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 5px;
}

.adm-dash-recent-item div { min-width: 0; }

.adm-dash-recent-item p {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.adm-dash-recent-item small {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .adm-dash-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .adm-dash-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .adm-wrap { grid-template-columns: 1fr; }
  .adm-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .adm-sidebar-logo { flex: 1 1 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .adm-lang-switch { padding: 8px 12px; }
  .adm-nav { flex-direction: row; padding: 8px 12px; }
  .adm-sidebar-stats { display: none; }
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .adm-item { grid-template-columns: 80px 1fr; }
  .adm-item-actions { grid-column: 1 / -1; flex-direction: row; }
  .adm-editor-wrap, .adm-list, .adm-settings { padding: 16px; }
  .adm-header { padding: 16px; }
  .adm-form-row { grid-template-columns: 1fr; }
}

/* ==============================
   BREAKING BANNER
   ============================== */

/* === BREAKING BANNER === */

.breaking-banner {
  background: linear-gradient(100deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.breaking-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(195,25,50,0.15) 0%, transparent 55%),
                    radial-gradient(circle at 80% 50%, rgba(99,102,241,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.breaking-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.breaking-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breaking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(195,25,50,0.2);
  border: 1px solid rgba(195,25,50,0.5);
  color: #f87171;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  text-transform: uppercase;
}

@keyframes breaking-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(195,25,50,0.6); }
  50% { opacity: 0.7; transform: scale(0.75); box-shadow: 0 0 0 4px rgba(195,25,50,0); }
}

.breaking-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  animation: breaking-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.breaking-left h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.breaking-left p {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breaking-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.breaking-card {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  display: block;
  width: 100%;
}

.breaking-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}

.breaking-card:hover img {
  transform: scale(1.06);
}

.breaking-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,24,0.88) 0%, rgba(5,10,24,0.2) 55%, transparent 100%);
  transition: background 200ms;
}

.breaking-card:hover .breaking-card-overlay {
  background: linear-gradient(to top, rgba(5,10,24,0.94) 0%, rgba(5,10,24,0.35) 55%, transparent 100%);
}

.breaking-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.breaking-cat {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f87171;
  background: rgba(195,25,50,0.18);
  border: 1px solid rgba(195,25,50,0.35);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.breaking-card-body strong {
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

@media (max-width: 860px) {
  .breaking-inner {
    grid-template-columns: 1fr;
  }
  .breaking-left {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .breaking-left h2 {
    flex: 1 1 100%;
  }
}

@media (max-width: 580px) {
  .breaking-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === MEDIA SECTION V2 === */

.media-section-v2 {
  background: var(--paper);
  padding: 48px 0;
}

.media-v2-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.media-tabs {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
}

.media-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms, color 160ms;
}

.media-tab:hover {
  background: var(--fill);
  color: var(--ink);
}

.media-tab.active {
  background: var(--ink);
  color: #fff;
}

.media-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
}

.media-tab:not(.active) .media-tab-count {
  background: #e2e8f0;
  color: var(--muted);
}

/* Har bir blok (Video / Foto) */
.media-block {
  margin-bottom: 0;
  padding-bottom: 40px;
  border-bottom: 2px solid #e2e8f0;
}

.media-block + .media-block {
  padding-top: 40px;
  border-bottom: none;
  padding-bottom: 0;
}

.media-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.media-block-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  padding: 6px 18px 6px 14px;
  border-radius: 8px;
}

.media-block-icon-label.video {
  background: rgba(195, 25, 50, 0.1);
  color: var(--brand);
  border-left: 4px solid var(--brand);
}

.media-block-icon-label.photo {
  background: rgba(195, 25, 50, 0.1);
  color: var(--brand);
  border-left: 4px solid var(--brand);
}

.media-block-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Layout: featured chapda, ro'yxat o'ngda */
.media-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

/* Featured katta karta */
.media-featured {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
  transition: box-shadow 200ms;
  display: flex;
  flex-direction: column;
}

.media-featured:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,0.14);
}

.media-featured-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}

.media-featured:hover .media-featured-thumb img {
  transform: scale(1.04);
}

.media-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,20,0.75) 0%, transparent 55%);
}

.media-featured-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  backdrop-filter: blur(6px);
  transition: transform 200ms;
}

.media-featured-icon.video {
  background: rgba(195, 25, 50, 0.88);
  color: #fff;
  padding-left: 4px;
}

.media-featured-icon.photo {
  background: rgba(195, 25, 50, 0.88);
  color: #fff;
}

.media-featured:hover .media-featured-icon {
  transform: translate(-50%, -50%) scale(1.12);
}

.media-featured-meta {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
}

.media-type-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.media-type-badge.video {
  background: var(--brand);
  color: #fff;
}

.media-type-badge.photo {
  background: var(--brand);
  color: #fff;
}

.media-featured-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.media-featured-body strong {
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  display: block;
}

.media-play-btn {
  align-self: flex-start;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}

.media-play-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* O'ng tomon — ro'yxat */
.media-v2-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,23,42,0.08);
}

.media-list-item {
  border-bottom: 1px solid var(--line);
}

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

.media-list-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 150ms;
}

.media-list-item button:hover {
  background: #f8fafc;
}

.media-list-thumb {
  position: relative;
  width: 88px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.media-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms;
}

.media-list-item button:hover .media-list-thumb img {
  transform: scale(1.07);
}

.media-list-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.media-list-icon.video {
  background: rgba(195, 25, 50, 0.85);
  color: #fff;
  padding-left: 2px;
}

.media-list-icon.photo {
  background: rgba(195, 25, 50, 0.85);
  color: #fff;
}

.media-list-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.media-list-body strong {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-list-body small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Foto grid — hammasi teng */
.media-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.media-photo-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(15,23,42,0.07);
  transition: box-shadow 200ms, transform 200ms;
}

.media-photo-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,0.14);
  transform: translateY(-3px);
}

.media-photo-card button {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.media-photo-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.media-photo-card:hover .media-photo-thumb img {
  transform: scale(1.06);
}

.media-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,20,0.65) 0%, transparent 50%);
}

.media-photo-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(195, 25, 50, 0.85);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.media-photo-meta {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  background: rgba(10,15,30,0.55);
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.media-photo-body {
  padding: 10px 12px 12px;
}

.media-photo-body strong {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .media-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .media-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .media-v2-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .media-v2-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === MAXSUS LOYIHA BO'LIMI === */

.special-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f1e 0%, #0f1f3d 45%, #1a0a2e 100%);
  padding: 80px 0;
  color: #fff;
}

.special-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(195, 25, 50, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195, 25, 50, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.special-section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 25, 50, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.special-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Sol tomon */
.special-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.special-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(195, 25, 50, 0.22);
  border: 1px solid rgba(195, 25, 50, 0.5);
  color: #f87171;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
}

.special-title {
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.special-desc {
  font-size: 17px;
  line-height: 1.75;
  color: #94a3c0;
  margin: 0;
  max-width: 480px;
}

.special-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.special-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  transition: background 180ms, border-color 180ms;
}

.special-feature-tag:hover {
  background: rgba(195, 25, 50, 0.18);
  border-color: rgba(195, 25, 50, 0.4);
}

.special-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* O'ng tomon */
.special-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.special-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.special-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.special-img-wrap:hover .special-img {
  transform: scale(1.04);
}

.special-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.65) 0%, transparent 55%);
}

.special-img-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: live-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.special-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.special-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background 180ms, border-color 180ms;
}

.special-stat:hover {
  background: rgba(195, 25, 50, 0.14);
  border-color: rgba(195, 25, 50, 0.35);
}

.special-stat strong {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.special-stat span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .special-inner {
    grid-template-columns: 1fr;
  }
  .special-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 520px) {
  .special-section {
    padding: 52px 0;
  }
  .special-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === DIZAYN 2: GRADIENT SHISHA === */
.special-design-gradient {
  background: linear-gradient(135deg, #0c1929 0%, #1e3a5f 40%, #2d1b4e 100%) !important;
}
.special-design-gradient .special-bg-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px) !important;
}
.special-design-gradient::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%) !important;
}
.special-design-gradient .special-kicker {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}
.special-design-gradient .special-feature-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(16px);
}
.special-design-gradient .special-feature-tag:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.45);
}
.special-design-gradient .special-dot {
  background: #6366f1;
}
.special-design-gradient .special-stat {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.18);
  backdrop-filter: blur(16px);
}
.special-design-gradient .special-stat:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
}
.special-design-gradient .special-img-wrap {
  box-shadow: 0 24px 64px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.special-design-gradient .special-img-badge {
  background: rgba(99, 102, 241, 0.75);
  border-color: rgba(165, 180, 252, 0.3);
}
.special-design-gradient .live-dot {
  background: #a5b4fc;
}

/* === DIZAYN 3: MINIMAL YORUG' === */
.special-design-light {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
  color: #0f172a !important;
}
.special-design-light .special-bg-grid {
  background-image:
    linear-gradient(rgba(0, 51, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 160, 0.04) 1px, transparent 1px) !important;
}
.special-design-light::after {
  background: radial-gradient(circle, rgba(0, 51, 160, 0.06) 0%, transparent 70%) !important;
}
.special-design-light .special-kicker {
  background: rgba(0, 51, 160, 0.08);
  border-color: rgba(0, 51, 160, 0.25);
  color: #0033a0;
}
.special-design-light .special-title {
  color: #0f172a !important;
}
.special-design-light .special-desc {
  color: #475569 !important;
}
.special-design-light .special-feature-tag {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.special-design-light .special-feature-tag:hover {
  background: rgba(0, 51, 160, 0.06);
  border-color: rgba(0, 51, 160, 0.3);
  color: #0033a0;
}
.special-design-light .special-dot {
  background: #0033a0;
}
.special-design-light .special-stat {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.special-design-light .special-stat:hover {
  background: rgba(0, 51, 160, 0.04);
  border-color: rgba(0, 51, 160, 0.2);
}
.special-design-light .special-stat strong {
  color: #0f172a !important;
}
.special-design-light .special-stat span {
  color: #64748b;
}
.special-design-light .special-img-wrap {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
}
.special-design-light .special-img-badge {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
  color: #0f172a;
  backdrop-filter: blur(12px);
}
.special-design-light .live-dot {
  background: #22c55e;
}

/* === DIZAYN 4: JURNAL USLUBI === */
.special-design-magazine {
  background: linear-gradient(135deg, #18181b 0%, #27272a 45%, #1c1917 100%) !important;
}
.special-design-magazine .special-bg-grid {
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.05) 1px, transparent 1px) !important;
}
.special-design-magazine::after {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%) !important;
}
.special-design-magazine .special-kicker {
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 0.15em;
}
.special-design-magazine .special-title {
  color: #fafafa !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  letter-spacing: -0.02em;
  line-height: 1.05 !important;
}
.special-design-magazine .special-desc {
  color: #a1a1aa !important;
  font-size: 16px;
  border-left: 3px solid #fbbf24;
  padding-left: 16px;
}
.special-design-magazine .special-feature-tag {
  background: transparent;
  border: 1.5px solid rgba(251, 191, 36, 0.3);
  color: #e4e4e7;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.special-design-magazine .special-feature-tag:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fbbf24;
}
.special-design-magazine .special-dot {
  background: #fbbf24;
}
.special-design-magazine .special-stat {
  background: rgba(251, 191, 36, 0.05);
  border: 1.5px solid rgba(251, 191, 36, 0.15);
}
.special-design-magazine .special-stat:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
}
.special-design-magazine .special-stat strong {
  color: #fbbf24 !important;
}
.special-design-magazine .special-stat span {
  color: #71717a;
}
.special-design-magazine .special-img-wrap {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.special-design-magazine .special-img-badge {
  background: rgba(251, 191, 36, 0.9);
  color: #18181b;
  border-color: transparent;
  font-weight: 900;
}
.special-design-magazine .live-dot {
  background: #18181b;
}
/* === DIZAYN 5: CYBERPUNK === */
.special-design-cyberpunk {
  background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #000000 100%) !important;
}
.special-design-cyberpunk .special-bg-grid {
  background-image:
    linear-gradient(rgba(236, 72, 153, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px) !important;
}
.special-design-cyberpunk::after {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%) !important;
}
.special-design-cyberpunk .special-kicker {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid #22d3ee;
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}
.special-design-cyberpunk .special-title {
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}
.special-design-cyberpunk .special-desc {
  color: #a1a1aa !important;
}
.special-design-cyberpunk .special-feature-tag {
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #e4e4e7;
  border-radius: 0;
}
.special-design-cyberpunk .special-feature-tag:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}
.special-design-cyberpunk .special-dot {
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
  border-radius: 0;
}
.special-design-cyberpunk .special-stat {
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 0;
}
.special-design-cyberpunk .special-stat:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: #22d3ee;
  box-shadow: inset 0 0 15px rgba(34, 211, 238, 0.2);
}
.special-design-cyberpunk .special-stat strong {
  color: #22d3ee !important;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}
.special-design-cyberpunk .special-stat span {
  color: #ec4899;
}
.special-design-cyberpunk .special-img-wrap {
  box-shadow: -10px 10px 0 rgba(236, 72, 153, 0.2), 10px -10px 0 rgba(34, 211, 238, 0.2);
  border-radius: 0;
}
.special-design-cyberpunk .special-img-badge {
  background: rgba(9, 9, 11, 0.9);
  color: #22d3ee;
  border: 1px solid #ec4899;
  border-radius: 0;
}
.special-design-cyberpunk .live-dot {
  background: #ec4899;
  border-radius: 0;
}

/* === DIZAYN 6: ELEGANT === */
.special-design-elegant {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}
.special-design-elegant .special-bg-grid {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px) !important;
}
.special-design-elegant::after {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%) !important;
}
.special-design-elegant .special-kicker {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  border-radius: 0;
  font-family: serif;
  letter-spacing: 0.15em;
}
.special-design-elegant .special-title {
  color: #f8fafc !important;
  font-family: serif;
}
.special-design-elegant .special-desc {
  color: #cbd5e1 !important;
  font-weight: 300;
}
.special-design-elegant .special-feature-tag {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #e2e8f0;
  border-radius: 4px;
}
.special-design-elegant .special-feature-tag:hover {
  border-color: #d4af37;
  color: #d4af37;
}
.special-design-elegant .special-dot {
  background: #d4af37;
}
.special-design-elegant .special-stat {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}
.special-design-elegant .special-stat:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: #d4af37;
}
.special-design-elegant .special-stat strong {
  color: #d4af37 !important;
  font-family: serif;
  font-weight: normal;
}
.special-design-elegant .special-img-wrap {
  border: 4px solid #1e293b;
  outline: 1px solid #d4af37;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-radius: 0;
}
.special-design-elegant .special-img-badge {
  background: rgba(15, 23, 42, 0.85);
  color: #d4af37;
  border: 1px solid #d4af37;
  border-radius: 0;
  font-family: serif;
}
.special-design-elegant .live-dot {
  background: #d4af37;
}

/* === DIZAYN 7: MATRIX === */
.special-design-matrix {
  background: #000000 !important;
  font-family: monospace;
}
.special-design-matrix .special-bg-grid {
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px) !important;
}
.special-design-matrix::after {
  display: none !important;
}
.special-design-matrix .special-kicker {
  background: #000;
  border: 1px dashed #22c55e;
  color: #4ade80;
  border-radius: 0;
}
.special-design-matrix .special-kicker::before {
  content: "> ";
}
.special-design-matrix .special-title {
  color: #4ade80 !important;
}
.special-design-matrix .special-desc {
  color: #22c55e !important;
}
.special-design-matrix .special-feature-tag {
  background: #000;
  border: 1px dotted #22c55e;
  color: #4ade80;
  border-radius: 0;
}
.special-design-matrix .special-feature-tag:hover {
  background: #0a1f0a;
  border-style: solid;
}
.special-design-matrix .special-dot {
  display: none;
}
.special-design-matrix .special-stat {
  background: #000;
  border: 1px solid #166534;
  border-radius: 0;
}
.special-design-matrix .special-stat:hover {
  background: #0a1f0a;
  border-color: #22c55e;
}
.special-design-matrix .special-stat strong {
  color: #4ade80 !important;
}
.special-design-matrix .special-stat span {
  color: #22c55e;
}
.special-design-matrix .special-img-wrap {
  border: 2px solid #22c55e;
  border-radius: 0;
  filter: contrast(1.2) sepia(1) hue-rotate(80deg) saturate(2);
}
.special-design-matrix .special-img-badge {
  background: #000;
  color: #4ade80;
  border: 1px solid #22c55e;
  border-radius: 0;
}
.special-design-matrix .live-dot {
  background: #4ade80;
  border-radius: 0;
}

/* === DIZAYN 8: ECO YASHIL === */
.special-design-eco {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  color: #064e3b !important;
}
.special-design-eco .special-bg-grid {
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px) !important;
}
.special-design-eco::after {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%) !important;
}
.special-design-eco .special-kicker {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #047857;
}
.special-design-eco .special-title {
  color: #064e3b !important;
}
.special-design-eco .special-desc {
  color: #047857 !important;
}
.special-design-eco .special-feature-tag {
  background: #fff;
  border: 1px solid #6ee7b7;
  color: #064e3b;
  border-radius: 20px;
}
.special-design-eco .special-feature-tag:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.special-design-eco .special-feature-tag:hover .special-dot {
  background: #fff;
}
.special-design-eco .special-dot {
  background: #10b981;
}
.special-design-eco .special-stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #6ee7b7;
  border-radius: 20px;
}
.special-design-eco .special-stat:hover {
  background: #fff;
  border-color: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}
.special-design-eco .special-stat strong {
  color: #047857 !important;
}
.special-design-eco .special-stat span {
  color: #059669;
}
.special-design-eco .special-img-wrap {
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(4, 120, 87, 0.15);
  border: 4px solid #fff;
}
.special-design-eco .special-img-badge {
  background: #fff;
  color: #047857;
  border: 1px solid #6ee7b7;
}
.special-design-eco .live-dot {
  background: #10b981;
}

/* === TO'LIQ MAQOLA SAHIFASI === */

.article-page {
  min-height: 60vh;
  background: var(--paper);
  padding: 0 0 64px;
}

.article-page-inner {
  width: 100%;
  max-width: 860px;
  padding: 0 16px;
  margin: 0 auto;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}

.article-back-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.article-full {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(18, 24, 38, 0.10);
}

.article-hero-wrap {
  position: relative;
  width: 100%;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 20, 0.82) 0%, rgba(5, 10, 20, 0.18) 55%, transparent 100%);
}

.article-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(20px, 4vw, 44px);
}

.article-hero-text h1 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

.article-lead {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  max-width: 680px;
}

.article-page-content {
  padding: clamp(22px, 4vw, 44px);
}

.article-main-lead {
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}

.article-author-row strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
}

.article-author-row span {
  font-size: 13px;
  color: var(--muted);
}

.article-body-text {
  text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.78;
  color: #1e293b;
  letter-spacing: -0.01em;
  word-break: normal;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.article-body-text p, 
.article-body-text > div,
.article-body-text span,
.article-body-text font {
  margin: 0 0 20px 0;
  line-height: 1.78;
  text-align: left;
}

/* Force left alignment even if text was pasted with inline justify */
.article-body-text [style*="text-align: justify"],
.article-body-text [style*="text-align:justify"],
.article-body-text [align="justify"] {
  text-align: left !important;
}

.article-body-text p:last-child {
  margin-bottom: 0;
}

.article-body-text strong,
.article-body-text b,
.article-body-text [style*="font-weight: bold"],
.article-body-text [style*="font-weight:bold"],
.article-body-text [style*="font-weight: 700"],
.article-body-text [style*="font-weight:700"],
.article-body-text [style*="font-weight: 800"],
.article-body-text [style*="font-weight:800"] {
  font-weight: 650;
  letter-spacing: 0.02em;
  word-spacing: 0.04em;
  line-height: 1.88;
  color: inherit;
  display: inline;
}

.article-body-text p:has(strong),
.article-body-text p:has(b) {
  line-height: 1.88;
  letter-spacing: 0.015em;
  word-spacing: 0.03em;
}

.article-body-text em,
.article-body-text i {
  font-style: italic;
}

.article-body-text h1,
.article-body-text h2,
.article-body-text h3,
.article-body-text h4 {
  font-family: inherit;
  color: var(--ink, #0f172a);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 32px;
  margin-bottom: 14px;
}
.article-body-text h2 { font-size: 23px; }
.article-body-text h3 { font-size: 20px; }
.article-body-text h4 { font-size: 18px; }

.article-body-text a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: border-color 0.2s, color 0.2s;
}
.article-body-text a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.article-body-text ul,
.article-body-text ol {
  margin: 0 0 20px 0;
  padding-left: 26px;
  line-height: 1.75;
}

.article-body-text li {
  margin-bottom: 8px;
}

.article-body-text blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand, #0033a0);
  background: var(--fill, rgba(0, 51, 160, 0.04));
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--ink, #1e293b);
}

.article-body-text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  display: block;
}

[data-theme="dark"] .article-body-text {
  color: #e2e8f0;
}
[data-theme="dark"] .article-body-text h1,
[data-theme="dark"] .article-body-text h2,
[data-theme="dark"] .article-body-text h3,
[data-theme="dark"] .article-body-text h4 {
  color: #f8fafc;
}
[data-theme="dark"] .article-body-text a {
  color: #60a5fa;
  border-bottom-color: rgba(96, 165, 250, 0.4);
}
[data-theme="dark"] .article-body-text blockquote {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #60a5fa;
  color: #e2e8f0;
}

.article-related {
  margin-top: 52px;
}

.article-related .section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 22px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 720px) {
  .article-hero-img {
    aspect-ratio: 4 / 3;
  }
  .article-related-grid {
    grid-template-columns: 1fr;
  }
  .article-page-inner {
    padding: 0 12px;
  }
  .article-page-content {
    padding: 24px 16px;
  }
  .article-body-text {
    text-align: left;
    font-size: 17px;
    line-height: 1.72;
  }
  .article-body-text p, .article-body-text > div {
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }
  .article-page-inner {
    padding: 0 8px;
  }
  .article-page-content {
    padding: 18px 12px;
  }
  .article-body-text {
    text-align: left;
    font-size: 16.5px;
    line-height: 1.7;
  }
}

/* === VIZUAL YAXSHILANISHLAR === */

/* 1. Ticker marquee animatsiya */
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

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

.ticker span {
  display: inline-block;
  animation: ticker-scroll 22s linear infinite;
  white-space: nowrap;
}

.ticker span:hover {
  animation-play-state: paused;
}

/* 2. Story card hover animatsiya — 3D lift */
.story-card {
  transition: box-shadow 240ms ease, transform 240ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.story-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 20px 48px rgba(18, 24, 38, 0.18);
}
.story-card:hover .story-image {
  transform: scale(1.04);
}
.story-image {
  transition: transform 400ms ease;
}

/* Scroll fade-in animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated counter */
.counter-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: all 200ms;
}

/* 3. Hero side card hover */
.hero-side-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* 4. Chip filter aktiv shadow */
.chip {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.chip.active {
  box-shadow: 0 4px 14px rgba(195, 25, 50, 0.28);
}

/* 5. Modal backdrop bosish bilan yopish */
.modal-backdrop {
  cursor: pointer;
}

.article-modal {
  cursor: default;
}

/* 6. Footer to'liqlashtirish */
.footer {
  padding: 48px 0 28px;
}

.footer-inner {
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 32px;
}

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

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.footer-brand p {
  margin: 0;
  color: #8fa3bc;
  font-size: 14px;
  line-height: 1.55;
  max-width: 300px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links button:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #dbe3ee;
  text-decoration: none;
  font-size: 15px;
  transition: background 160ms ease;
}

.footer-socials a:hover {
  background: var(--brand);
  color: #fff;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #6b7f96;
  font-size: 13px;
}

/* 7. Category rang belgilari */
.category[data-cat="Tahlil"],
.category[data-cat="Аналитика"] {
  color: var(--gold);
}

.category[data-cat="Texnologiya"],
.category[data-cat="Технологии"] {
  color: var(--accent);
}

/* 8. Nav link hover */
.footer-links button {
  transition: color 150ms ease;
}

/* 9. Primary button hover */
.primary {
  transition: background 160ms ease, transform 100ms ease, box-shadow 160ms ease;
}

.primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 18px rgba(195, 25, 50, 0.3);
}

.primary:active {
  transform: scale(0.97);
}

/* Footer responsive */
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    align-items: flex-start;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 520px) {
  .topbar-inner,
  .nav-inner,
  .section-inner,
  .footer-inner,
  .hero-grid,
  .wide-feature-inner {
    width: 100%;
    padding: 0 10px;
  }

  .brand-name {
    font-size: 21px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .admin-shell {
    width: min(100% - 20px, 1180px);
  }
}

@media (max-width: 1020px) {
  .nav-inner {
    grid-template-columns: 1fr;
  }

  .admin-layout,
  .featured-story button {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-logo,
  .admin-sidebar-foot {
    grid-column: 1 / -1;
  }

  .admin-grid,
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .stories-grid,
  .admin-overview,
  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .category-masthead {
    padding: 20px;
  }

  .wide-feature {
    padding: 42px 0;
  }

  .wide-feature-inner {
    gap: 24px;
  }

  .feature-media,
  .feature-img {
    min-height: 300px;
  }

  .feature-copy h2 {
    font-size: 36px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .media-head {
    align-items: start;
    flex-direction: column;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-card button {
    min-height: 280px;
  }
}

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

  .media-card button {
    min-height: auto;
  }

  .media-thumb {
    height: 180px;
  }
}

/* Compact modern header */
.header {
  border-bottom: 1px solid #e4e8ef;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.055);
}

.nav-inner {
  width: min(1240px, calc(100% - 28px));
  min-height: 62px;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 14px;
}

.brand {
  min-width: 0;
  gap: 8px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 13px;
}

.brand-name {
  display: block;
  font-size: 25px;
  line-height: 0.95;
}

.brand-sub {
  display: none;
}

.nav-links {
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-link.active {
  box-shadow: 0 8px 18px rgba(195, 25, 50, 0.18);
}

.actions {
  gap: 8px;
}

.search {
  width: 184px;
  height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
}

.lang-toggle {
  height: 38px;
  border-radius: 6px;
}

.lang-toggle button {
  min-width: 42px;
  padding: 7px 9px;
  font-weight: 800;
}

.admin-entry {
  height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8fafc;
}

@media (max-width: 1120px) {
  .nav-inner {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 10px;
  }

  .nav-links {
    overflow-x: auto;
  }
}

@media (max-width: 780px) {
  .nav-inner {
    width: min(100% - 20px, 1240px);
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .brand-name {
    font-size: 23px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    padding-bottom: 0;
  }

  .search {
    width: 100%;
  }
}

/* ===========================
   DARK MODE TOGGLE
   =========================== */
.dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms, border-color 200ms, transform 200ms;
  flex-shrink: 0;
}
.dark-toggle:hover {
  border-color: var(--brand);
  transform: rotate(20deg);
}

/* ===========================
   SCROLL TO TOP
   =========================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 250ms, transform 250ms;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--brand-dark);
}

/* ===========================
   SHARE BUTTONS
   =========================== */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  flex-wrap: wrap;
}
.article-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 140ms;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn.telegram { border-color: #0088cc; color: #0088cc; }
.share-btn.telegram:hover { background: #0088cc; color: #fff; }
.share-btn.copied { border-color: #16a34a; color: #16a34a; }

/* ===========================
   BOOKMARK (Saqlash)
   =========================== */
.bookmark-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 140ms;
}
.bookmark-btn:hover { border-color: var(--gold); color: var(--gold); }
.bookmark-btn.saved { border-color: var(--gold); color: var(--gold); background: #fffbeb; }
[data-theme="dark"] .bookmark-btn.saved { background: #2d2200; }

.story-card .bookmark-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms, background 150ms;
  z-index: 2;
}
.story-card:hover .bookmark-corner { opacity: 1; }
.story-card .bookmark-corner.saved {
  opacity: 1;
  background: var(--gold);
  color: #fff;
}

/* Saqlangan sahifa */
.saved-page {
  min-height: 60vh;
  padding: 40px 0;
}
.saved-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.saved-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.saved-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===========================
   BRAND COLOR PICKER (admin)
   =========================== */
.brand-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.brand-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 150ms, border-color 150ms;
  flex-shrink: 0;
}
.brand-color-swatch:hover { transform: scale(1.15); }
.brand-color-swatch.active { border-color: var(--ink); transform: scale(1.15); }
.brand-color-input {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  padding: 2px;
  cursor: pointer;
  background: none;
}

/* Hero pin badge */
.hero-pin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  z-index: 3;
}
.adm-hero-pick {
  border: 2px solid var(--brand) !important;
  border-radius: 10px;
}

.adm-hero-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(195,25,50,0.07);
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  margin-bottom: 14px;
}

.adm-hero-current img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.adm-hero-pick-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  padding: 2px 8px;
  background: var(--surface);
  border-radius: 4px;
}

/* ===========================
   READ PROGRESS BAR
   =========================== */
.read-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  z-index: 9999;
  transition: width 100ms linear;
  border-radius: 0 2px 2px 0;
}

/* ===========================
   COMMENTS
   =========================== */
.comments-section {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 10px;
  vertical-align: middle;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0 28px;
}

.comment-input,
.comment-textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 150ms;
  width: 100%;
  box-sizing: border-box;
}

.comment-input:focus,
.comment-textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.comment-textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-sent {
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
}

.comments-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.comments-empty span { font-size: 32px; }
.comments-empty p { margin: 0; font-size: 14px; }

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-meta strong { font-size: 14px; color: var(--ink); }
.comment-meta span { font-size: 12px; color: var(--muted); }
.comment-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }

/* ===========================
   SAVED PAGE
   =========================== */
.saved-page { padding-bottom: 60px; }

.saved-count {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.saved-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.saved-empty span { font-size: 48px; }
.saved-empty p { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.saved-empty small { font-size: 13px; }

/* ===========================
   ADMIN VIEWS CHART
   =========================== */
.adm-views-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.adm-views-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-views-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.adm-views-info {
  flex: 1;
  min-width: 0;
}

.adm-views-info p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.adm-views-bar-track {
  height: 7px;
  background: var(--paper);
  border-radius: 999px;
  overflow: hidden;
}

.adm-views-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 600ms ease;
}

.adm-views-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   FORM TOGGLES
   =========================== */
.adm-form-toggles {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0;
}

.adm-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.adm-toggle-row:last-child { border-bottom: 0; }

.adm-toggle-row span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.adm-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.adm-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.adm-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 200ms;
}

.adm-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.adm-toggle-switch input:checked + .adm-toggle-slider {
  background: #3b82f6;
}

.adm-toggle-switch input:checked + .adm-toggle-slider::before {
  transform: translateX(20px);
}

/* Views field */
.adm-views-field {
  margin: 4px 0;
}

.adm-views-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.adm-views-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-views-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface);
  flex: 1;
}

.adm-views-input-wrap span { color: var(--muted); }

.adm-views-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  font-family: inherit;
}

.adm-countviews-check {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.adm-countviews-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #3b82f6;
  cursor: pointer;
}

/* ===========================
   STORY BADGE
   =========================== */
.story-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.story-badge.breaking {
  background: #dc2626;
  color: #fff;
  animation: badge-pulse 1.8s infinite;
}

.story-badge.editor {
  background: #f59e0b;
  color: #fff;
}

.story-badge.trend {
  background: #ea580c;
  color: #fff;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.story-views {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

/* ===========================
   HISTORY PANEL
   =========================== */
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.history-item img {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.history-item div {
  flex: 1;
  min-width: 0;
}

.history-cat {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.history-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.history-item:hover p { color: var(--brand); }

/* ===========================
   AI RECOMMENDATIONS
   =========================== */
.ai-recommend-panel { padding-bottom: 4px; }

.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ai-panel-head h3 { margin: 0; font-size: 15px; }

.ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.ai-panel-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.ai-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: opacity 150ms;
}

.ai-rec-item:hover { opacity: 0.75; }

.ai-rec-item img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.ai-rec-item div { flex: 1; min-width: 0; }

.ai-rec-cat {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.ai-rec-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-panel-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}

.ai-panel-tag strong { color: #7c3aed; font-size: 13px; }

/* ===========================
   LOAD MORE BUTTON
   =========================== */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
  font-family: inherit;
}

.load-more-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* ===========================
   SIDEBAR CATEGORIES
   =========================== */
.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.sidebar-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 140ms;
  width: 100%;
}

.sidebar-cat-btn:hover {
  background: var(--paper);
}

.sidebar-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.sidebar-cat-count {
  font-size: 11px;
  font-weight: 800;
  background: var(--paper);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.sidebar-cat-btn:hover .sidebar-cat-count {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ===========================
   SIDEBAR STATS
   =========================== */
.sidebar-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-stat-row:last-child { border-bottom: none; }

.sidebar-stat-row > span {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-stat-row div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-stat-row strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.sidebar-stat-row small {
  font-size: 11px;
  color: var(--muted);
}

/* ===========================
   PAGE TRANSITION
   =========================== */
.article-page {
  animation: page-in 220ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .header, .topbar, .read-progress-bar,
  .article-back-btn, .share-actions,
  .comments-section, .article-related,
  .sidebar, .footer, .scroll-top-btn,
  .adm-toast, .bookmark-btn, .share-btn { display: none !important; }

  body { background: #fff !important; color: #000 !important; }

  .article-page { padding: 0 !important; }
  .article-full { box-shadow: none !important; border-radius: 0 !important; }
  .article-hero-img { max-height: 300px; }
  .article-content p { color: #000 !important; font-size: 13pt; line-height: 1.6; }
  .article-content h2 { font-size: 18pt; }
  a { color: #000 !important; text-decoration: underline; }
}

/* ===========================
   REACTIONS
   =========================== */
.reactions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 14px 18px;
  background: var(--fill);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.reactions-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  transition: all 150ms;
  line-height: 1;
}
.reaction-btn:hover {
  border-color: var(--brand);
  transform: scale(1.1);
}
.reaction-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.reaction-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  min-width: 14px;
}
.reaction-btn.active .reaction-count {
  color: #fff;
}

/* ===========================
   AUTHOR / TAG CLICK BUTTONS
   =========================== */
.author-btn, .author-name-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: color 150ms;
}
.author-btn:hover, .author-name-btn:hover {
  color: var(--brand);
}
.author-name-btn {
  font-weight: 700;
  font-size: 15px;
  display: block;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tag-btn {
  background: none;
  border: 1.5px solid var(--line);
  cursor: pointer;
  font: inherit;
  color: var(--brand);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all 140ms;
}
.tag-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ===========================
   AUTHOR PAGE
   =========================== */
.author-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 8px;
}
.author-page-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
}
.author-page-name {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--ink);
}
.author-page-count {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ===========================
   SKELETON LOADING
   =========================== */
.skeleton-card {
  pointer-events: none;
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  background: var(--fill);
}
.skeleton-line {
  border-radius: 6px;
  background: var(--fill);
  display: block;
}
.skeleton-anim {
  background: linear-gradient(90deg, var(--fill) 25%, var(--line) 50%, var(--fill) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===========================
   TABLE OF CONTENTS
   =========================== */
.toc-box {
  background: var(--fill);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}
.toc-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
.toc-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 140ms;
}
.toc-link:hover { text-decoration: underline; }

/* ===========================
   MOBILE BOTTOM NAVIGATION
   =========================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
}
.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  position: relative;
  transition: color 150ms;
}
.mob-nav-btn span:first-child { font-size: 22px; line-height: 1; }
.mob-nav-btn.active { color: var(--brand); }
.mob-nav-badge {
  position: absolute;
  top: 0;
  right: 20%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 680px) {
  .mobile-bottom-nav { display: grid; }
  .footer { padding-bottom: 72px; }
  .scroll-top-btn { bottom: 80px; }
}

/* === PREMIUM MOBILE ADAPTATION === */
@media (max-width: 780px) {
  .header .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: 
      "menu brand actions"
      "nav nav nav";
    align-items: center;
    padding: 12px 16px;
    gap: 12px 0;
  }
  .menu-toggle {
    grid-area: menu;
    display: flex !important;
    position: static !important;
    padding: 8px;
    justify-self: start;
  }
  .brand {
    grid-area: brand;
    justify-self: center;
    margin: 0;
  }
  .actions {
    grid-area: actions;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto !important;
  }
  .header .search,
  .header .desktop-search,
  .desktop-search {
    display: none !important;
  }
  .header .lang-toggle {
    display: none !important;
  }
  .nav-links {
    grid-area: nav;
    width: 100%;
    display: none !important;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    white-space: nowrap;
    padding: 6px 16px;
    font-size: 14px;
    background: var(--fill);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    flex-shrink: 0;
  }
  .nav-link.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
  
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 12px !important;
    width: 100% !important;
  }
  .hero-left-block,
  .hero-right-block {
    padding: 16px !important;
  }
  .hero-main {
    flex-direction: column-reverse !important;
    gap: 16px !important;
  }
  .hero-main-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }
  .hero-sub-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .hero-sub-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .hero-sub-card .side-thumb {
    width: 90px !important;
    height: 90px !important;
    flex-shrink: 0 !important;
  }
  .hero-sub-card .side-copy h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 680px) {
  .mobile-bottom-nav {
    display: grid !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06) !important;
  }
  .mob-nav-btn {
    color: var(--muted) !important;
  }
  .mob-nav-btn.active {
    color: var(--brand) !important;
  }
  .mob-nav-badge-dot {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--brand);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1.5px solid var(--surface);
  }
  .footer {
    padding-bottom: 84px !important;
  }
}

/* === MOBILE DRAWER STYLE === */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  border-right: 1px solid var(--line);
}
.mobile-drawer.open {
  transform: translateX(280px);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.drawer-logo {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 1px;
}
.drawer-close {
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.drawer-link {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.drawer-link.active {
  background: var(--brand);
  color: #fff;
}
.drawer-link:hover:not(.active) {
  background: var(--fill);
}

.drawer-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-lang-toggle {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--fill);
}
.drawer-lang-toggle button {
  background: transparent;
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 0;
  cursor: pointer;
}
.drawer-lang-toggle button.active {
  background: var(--brand);
  color: #fff;
}
.drawer-theme-btn {
  background: var(--fill);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

/* Dedicated Videos Page Styling */
.videos-grid-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.video-card-page {
  background: #eceff2;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  border: none;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
}

[data-theme="dark"] .video-card-page {
  background: #1c2128;
  border: 1px solid #2d333b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-card-page:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card-page:hover .video-card-thumb img {
  transform: scale(1.03);
}

.video-card-play {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #0b1a30;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: transform 0.2s ease;
}

.video-card-page:hover .video-card-play {
  transform: scale(1.08);
}

.video-card-play svg {
  margin-left: 2px;
  fill: #0b1a30;
}

.video-card-body {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #111827);
  line-height: 1.38;
  margin: 0;
}

[data-theme="dark"] .video-card-title {
  color: #f0f6fc;
}

.video-card-meta {
  font-size: 13px;
  color: var(--muted, #6c757d);
  font-weight: 500;
}

@media (max-width: 992px) {
  .videos-grid-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .videos-grid-page {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 16px;
  }
  .video-card-page {
    border-radius: 12px;
  }
  .video-card-title {
    font-size: 15px;
    line-height: 1.35;
  }
  .video-card-body {
    padding: 12px 14px 14px 14px;
  }
  .video-card-play {
    bottom: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
  }
}

/* Clean Reading Mode / Toza o'qish styling */
.article-page.clean-read-active {
  background-color: #fdf6e3 !important;
  color: #2c2c2c !important;
  transition: background-color 0.3s, color 0.3s;
}
[data-theme="dark"] .article-page.clean-read-active {
  background-color: #151515 !important;
  color: #e0e0e0 !important;
}
.clean-read-active .article-body-text {
  text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 19px !important;
  line-height: 1.8 !important;
  max-width: 720px;
  margin: 0 auto;
}
.clean-read-active .article-main-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.clean-read-active .article-main-lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.clean-read-active .article-inline-image-wrap {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.clean-read-active .comments-section,
.clean-read-active .article-related {
  display: none !important;
}

/* --- Admin 2-Column Premium Layout --- */
.adm-2col-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .adm-2col-layout {
    grid-template-columns: 1fr;
  }
}

.adm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.adm-card-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* iOS Style Toggle Switches */
.adm-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.adm-toggle-wrapper:last-child {
  border-bottom: none;
}

.adm-toggle-label-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.adm-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.adm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.adm-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--line);
  transition: .3s;
  border-radius: 24px;
}

.adm-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.adm-toggle input:checked + .adm-toggle-slider {
  background-color: #3b82f6; /* Premium blue */
}

.adm-toggle input:checked + .adm-toggle-slider:before {
  transform: translateX(20px);
}

@media (max-width: 900px) {
  .desktop-search {
    display: none !important;
  }
}

.article-body-text p:not([style*="text-align"]):not([class*="align"]):not([class*="text-"]):not([align]), 
.article-body-text div:not([style*="text-align"]):not([class*="align"]):not([class*="text-"]):not([align]) { 
  text-align: left; 
  word-break: normal; 
  overflow-wrap: break-word; 
}

.article-tags-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0 24px;
}

.article-tag-item { 
  display: inline-flex;
  align-items: center;
  padding: 6px 14px; 
  background: rgba(37, 99, 235, 0.07); 
  color: #1d4ed8; 
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px; 
  font-size: 13.5px; 
  font-weight: 600; 
  text-decoration: none; 
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease; 
}
.article-tag-item:hover { 
  background: #1d4ed8; 
  color: #ffffff !important; 
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22);
}
[data-theme="dark"] .article-tag-item {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.28);
}
[data-theme="dark"] .article-tag-item:hover {
  background: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
}
