/* Oson Studio — umumiy stil */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --input-bg: #ffffff;
  --text: #16161d;
  --muted: #6b6b7b;
  --border: #e7e7ee;
  --accent: #5b5bd6;
  --accent-2: #8f8ff0;
  --accent-soft: #ecebfb;
  --accent-soft2: #e0dffa;
  --accent-hover: #4a4ac0;
  --ok: #15a26b; --warn: #d97706; --err: #dc2626;
  --ok-bg: #e7f7f0; --warn-bg: #fdf3e3; --err-bg: #fdeaea;
  --hero-1: #16161d;
  --topbar-bg: rgba(255,255,255,.9);
  --backdrop: rgba(16,16,29,.4);
  --shadow: 0 1px 2px rgba(16,16,29,.04), 0 8px 24px rgba(16,16,29,.06);
  --shadow-hover: 0 6px 12px rgba(16,16,29,.05), 0 20px 44px rgba(91,91,214,.16);
  --radius: 14px;
  --maxw: 940px;
  --side-w: 260px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0e0f15;
  --surface: #181a24;
  --input-bg: #12131b;
  --text: #ececf3;
  --muted: #9a9ab2;
  --border: #2a2c3a;
  --accent: #7d7df5;
  --accent-2: #9a9af8;
  --accent-soft: #20223e;
  --accent-soft2: #2a2c50;
  --accent-hover: #9a9af8;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --ok-bg: #102a20; --warn-bg: #2a2210; --err-bg: #2c1518;
  --hero-1: #ececf3;
  --topbar-bg: rgba(18,19,27,.85);
  --backdrop: rgba(0,0,0,.55);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.5);
  --shadow-hover: 0 6px 14px rgba(0,0,0,.4), 0 24px 48px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 500px at 100% -10%, rgba(91,91,214,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(143,143,240,.06), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color .25s ease, color .25s ease;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(1100px 500px at 100% -10%, rgba(125,125,245,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(125,125,245,.07), transparent 55%);
}
body.has-sidebar { padding-left: var(--side-w); }
@media (max-width: 860px) { body.has-sidebar { padding-left: 0; padding-top: 60px; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .brand, .hero h1, .tool-head h1, .fx-settings-title { font-family: var(--font-display); letter-spacing: -.02em; }

.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; text-decoration: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:focus-visible, a:focus-visible, .tool-card:focus-visible, .fx-chip:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(91,91,214,.35);
  flex-shrink: 0;
}
.brand .logo svg { width: 21px; height: 21px; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  z-index: 60;
  transition: transform .25s ease;
}
.sidebar .brand { padding: 0 8px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14.5px; font-weight: 500;
  position: relative;
}
.side-nav a svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }
.side-nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.side-nav a.active {
  background: linear-gradient(135deg, var(--accent), #7a7ae6);
  color: #fff;
  box-shadow: 0 6px 16px rgba(91,91,214,.32);
}
.side-nav a.active svg { stroke: #fff !important; }
.side-foot { padding: 14px 10px 4px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 10px; }

/* Mobile topbar */
.topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  align-items: center; gap: 12px; padding: 0 16px;
  z-index: 55;
}
.topbar .brand { font-size: 17px; }
.nav-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

.backdrop {
  display: none;
  position: fixed; inset: 0;
  background: var(--backdrop);
  z-index: 58;
}
.backdrop.show { display: block; }

@media (max-width: 860px) {
  .topbar { display: flex; }
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .sidebar.open { transform: translateX(0); }
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 20px 30px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px; border-radius: 99px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 14px;
  letter-spacing: -1px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--hero-1) 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto;
}

/* Tool grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px 0 60px;
}
.tool-card {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c, var(--accent));
  opacity: 0; transition: opacity .18s ease;
}
.tool-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-hover);
}
.tool-card:hover::before { opacity: 1; }
.tool-card .ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft2));
  display: grid; place-items: center;
  margin-bottom: 16px;
  transition: transform .18s ease;
}
.tool-card:hover .ic { transform: scale(1.06) rotate(-3deg); }
.tool-card .ic svg { width: 25px; height: 25px; stroke: var(--accent); }
.tool-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Tool page */
.tool-page { padding-top: 32px; padding-bottom: 72px; }
.tool-head { margin-bottom: 22px; }
.tool-head h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; letter-spacing: -.4px; }
.tool-head p { color: var(--muted); margin: 0; max-width: 620px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }

/* Form controls */
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }

input[type=text], input[type=url], input[type=number], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
}
select option { background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 90px; }

.field { margin-bottom: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: filter .14s ease, transform .08s ease, box-shadow .14s ease;
  box-shadow: 0 4px 12px rgba(91,91,214,.25);
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.btn.secondary:hover { background: var(--accent-soft2); filter: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--bg); filter: none; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 12px rgba(220,38,38,.28); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Ekran yozib olish */
.recorder-hint { font-size: 13.5px; color: var(--muted); background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 4px; line-height: 1.6; }
.rec-status { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #ef4444; flex-shrink: 0; animation: recPulse 1s infinite; }
@keyframes recPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.rec-timer { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); }
.rec-text { font-size: 14px; color: var(--muted); }
.rec-video { width: 100%; border-radius: 12px; background: #000; display: block; max-height: 460px; }
.result-meta { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

input[type=range] { width: 100%; accent-color: var(--accent); }

.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; cursor: pointer; user-select: none;
}
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Dropzone */
.drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .14s, background .14s;
  color: var(--muted);
}
.drop:hover, .drop.dragover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.drop strong { color: var(--text); }

/* Status / messages */
.msg { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-top: 14px; display: none; }
.msg.show { display: block; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg.info { background: var(--accent-soft); color: var(--accent); }

.progress { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 14px; display: none; }
.progress.show { display: block; }
.progress .bar { height: 100%; width: 0%; background: var(--accent); transition: width .2s; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Password output */
.pw-out {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 6px 6px 14px;
}
.pw-out code {
  flex: 1; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 18px; word-break: break-all; color: var(--text);
}
.strength { height: 7px; border-radius: 99px; background: var(--border); margin-top: 12px; overflow: hidden; }
.strength .lvl { height: 100%; width: 0; transition: width .25s, background .25s; }
.strength-label { font-size: 13px; margin-top: 6px; color: var(--muted); }

/* Thumbnails */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin-top: 18px; }
.thumb-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.thumb-item img { width: 100%; display: block; background: var(--bg); }
.thumb-item .meta { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thumb-item .meta span { font-size: 13px; color: var(--muted); }

/* Before/After slider */
.compare {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  background: var(--bg);
  touch-action: none;
}
.compare img { display: block; width: 100%; }
.compare .after-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  width: 50%;
}
.compare .after-wrap img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.compare .handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 3px; background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  cursor: ew-resize;
}
.compare .handle::after {
  content: "‹›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 34px; height: 34px;
  background: #fff; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent); font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow);
}
.compare .tag {
  position: absolute; top: 10px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.compare .tag.before { left: 10px; }
.compare .tag.after { right: 10px; }

.preview-img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }

.result-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.kv { font-size: 13px; color: var(--muted); }
.kv b { color: var(--text); }

audio, video { width: 100%; border-radius: 10px; margin-top: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 20px;
  margin-top: 40px;
}
.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer .foot-nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Shaffof fon (checkerboard) */
.checker {
  background-image:
    linear-gradient(45deg, #e2e2ea 25%, transparent 25%),
    linear-gradient(-45deg, #e2e2ea 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e2ea 75%),
    linear-gradient(-45deg, transparent 75%, #e2e2ea 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: #fff;
}

/* Crop / brush canvas stage */
.stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  touch-action: none;
}
.stage canvas, .stage img { max-width: 100%; height: auto; display: block; }
.stage .overlay { position: absolute; top: 0; left: 0; }

.crop-box {
  position: absolute;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
  cursor: move;
  box-sizing: border-box;
}
.crop-box .ch {
  position: absolute; width: 12px; height: 12px;
  background: #fff; border: 2px solid var(--accent); border-radius: 50%;
}
.crop-box .ch.nw { top: -7px; left: -7px; cursor: nwse-resize; }
.crop-box .ch.ne { top: -7px; right: -7px; cursor: nesw-resize; }
.crop-box .ch.sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.crop-box .ch.se { bottom: -7px; right: -7px; cursor: nwse-resize; }

.tools-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.dim-inputs { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dim-inputs .field { margin-bottom: 0; }
.dim-inputs input[type=number] { width: 110px; }

.about-text { color: var(--muted); font-size: 15px; }
.about-text h2 { color: var(--text); font-size: 18px; margin: 22px 0 8px; }
.about-text ul { padding-left: 20px; }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Content sections (Kurslar / Videodarslar / Maqolalar) */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 8px 0 40px; }
.content-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.content-card .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft2)); }
.content-card .body { padding: 16px 18px; }
.content-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.content-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.content-card .meta { margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.card-price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.card-price .cp-now { font-size: 22px; font-weight: 800; font-family: var(--font-display); color: var(--accent); letter-spacing: -.3px; }
.card-price .cp-old { font-size: 13.5px; color: var(--muted); opacity: .75; text-decoration: line-through; }
.card-price .cp-off { background: #22c55e; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.section-empty { text-align: center; color: var(--muted); padding: 52px 20px; border: 1px dashed var(--border); border-radius: 16px; }
.section-empty .big { font-size: 44px; margin-bottom: 10px; }

/* Course detail */
.course-cover { width: 100%; border-radius: 16px; display: block; margin-bottom: 22px; box-shadow: var(--shadow); }
.course-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.course-hero .price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.course-hero .price .now { font-size: 28px; font-weight: 800; font-family: var(--font-display); color: var(--accent); }
.course-hero .price .old { font-size: 18px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.course-hero .price .badge-off { background: #22c55e; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.course-hero .price small { flex-basis: 100%; font-size: 13px; font-weight: 500; color: var(--muted); font-family: system-ui; }
.course-hero .price .soon-price { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; font-family: var(--font-display); color: var(--accent); }
.course-hero .price .soon-price::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.22); }
.modules-title { font-size: 18px; margin: 0 0 16px; }
.modules-soon li { color: var(--muted); }
.modules-soon .soon-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.modules-soon .soon-text::before { content: "🔒"; font-size: 13px; filter: grayscale(.3); }
.modules { counter-reset: m; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.modules li { counter-increment: m; position: relative; padding: 14px 16px 14px 58px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 500; font-size: 15px; }
.modules li::before { content: counter(m); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* SEO content + FAQ */
.seo-content { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted); }
.seo-content h2 { font-size: 20px; color: var(--text); margin: 26px 0 12px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; max-width: 720px; }
.faq { border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; margin-bottom: 10px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 15px; }
.faq p { margin: 10px 0 0; }

/* Course card: narx + muallif yonma-yon */
.course-card { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.course-card .course-hero { flex: 1 1 320px; }
.course-author { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; padding-left: 26px; border-left: 1px solid var(--border); }
@media (max-width: 720px) {
  .course-author { padding-left: 0; padding-top: 20px; border-left: none; border-top: 1px solid var(--border); width: 100%; }
}
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--accent-soft); }
.author-info { display: flex; flex-direction: column; gap: 3px; }
.author-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.author-name { font-size: 19px; font-weight: 700; color: var(--text); font-family: var(--font-display); }

/* Article (maqola) */
.article-body { line-height: 1.8; }
.article-body h2 { font-size: 21px; margin: 30px 0 12px; color: var(--text); }
.article-body p { margin: 0 0 16px; font-size: 16px; color: var(--text); max-width: 760px; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-list { margin: 0 0 18px; padding-left: 4px; list-style: none; max-width: 760px; }
.article-list li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--border); font-size: 15.5px; color: var(--text); }
.article-list li:last-child { border-bottom: none; }
.article-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 0 0 18px; font-weight: 600; color: var(--text); font-size: 15.5px; max-width: 760px; word-break: break-word; }
.note-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 6px; font-weight: 700; }
.formula { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 4px 0 16px; max-width: 760px; text-align: center; font-family: "Cascadia Code", "Consolas", ui-monospace, monospace; font-size: 16px; color: var(--text); overflow-x: auto; }
.formula b { color: var(--accent); font-weight: 800; }
.message-box { background: var(--bg); border: 1px dashed var(--border); border-radius: 14px; padding: 18px 22px; margin: 4px 0 18px; max-width: 760px; position: relative; }
.message-box::before { content: "💬 Tayyor xabar"; display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 10px; }
.message-box p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.message-box p:last-child { margin-bottom: 0; }
.dua { text-align: center; font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.7; color: var(--accent); background: var(--accent-soft); border-radius: 16px; padding: 28px 26px; margin: 26px 0 6px; max-width: 760px; }
.dua::before { content: "🤲"; display: block; font-size: 34px; margin-bottom: 12px; }

/* Theme toggle */
.theme-btn { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--text); flex-shrink: 0; transition: background .14s; }
.theme-btn:hover { background: var(--bg); }
.theme-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; }
/* Footer support button (separate, highlighted) */
.foot-left { display: flex; flex-direction: column; gap: 8px; }
.foot-support {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 14px; flex-shrink: 0;
  transition: transform .12s, background .14s;
}
.foot-support:hover { background: var(--accent-soft2); text-decoration: none; transform: translateY(-1px); }
.foot-support svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.side-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 6px 4px; margin-top: 10px; border-top: 1px solid var(--border); }
.side-foot-row span { font-size: 12px; color: var(--muted); }

/* App footer */
.app-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 26px 20px; }
.app-footer .inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.app-footer a { color: var(--muted); }
.app-footer a:hover { color: var(--accent); }
.app-footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .app-footer { text-align: center; }
  .app-footer .inner { flex-direction: column; justify-content: center; }
  .app-footer .foot-links { justify-content: center; }
}
