/* =====================================================================
   OurLogic.in – design system (light + dark, mobile first)
   ===================================================================== */
:root {
  --ol-primary: #4f46e5;
  --ol-primary-2: #2563eb;
  --ol-accent: #06b6d4;
  --ol-green: #10b981;
  --ol-pink: #ec4899;
  --ol-amber: #f59e0b;
  --ol-grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 45%, #06b6d4 100%);
  --ol-grad-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);

  --ol-bg: #f6f7fb;
  --ol-bg-soft: #eef1f8;
  --ol-surface: #ffffff;
  --ol-surface-2: #f8fafc;
  --ol-text: #0f172a;
  --ol-text-2: #475569;
  --ol-muted: #64748b;
  --ol-border: rgba(15, 23, 42, .08);
  --ol-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --ol-shadow: 0 6px 24px -6px rgba(30, 41, 99, .14), 0 2px 6px rgba(15, 23, 42, .04);
  --ol-shadow-lg: 0 24px 48px -12px rgba(30, 41, 99, .25);
  --ol-radius: 20px;
  --ol-radius-sm: 12px;
  --ol-nav-h: 68px;
  --ol-tab-h: 64px;
  --ol-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ol-font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: #3730a3;
  --bs-body-font-family: var(--ol-font);
  --bs-border-radius: .75rem;
  --bs-border-radius-lg: 1rem;
}
[data-bs-theme="dark"] {
  --ol-bg: #0b1020;
  --ol-bg-soft: #111831;
  --ol-surface: #131a2e;
  --ol-surface-2: #182038;
  --ol-text: #e8ecf5;
  --ol-text-2: #b6bfd3;
  --ol-muted: #8d97ad;
  --ol-border: rgba(255, 255, 255, .08);
  --ol-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --ol-shadow: 0 8px 28px -8px rgba(0, 0, 0, .6);
  --ol-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  --bs-body-bg: #0b1020;
  --bs-body-color: #e8ecf5;
  --bs-primary: #818cf8;
  --bs-primary-rgb: 129, 140, 248;
  --bs-link-color: #a5b4fc;
  --bs-link-color-rgb: 165, 180, 252;
  --bs-link-hover-color: #c7d2fe;
  --bs-secondary-color: #a0aabf;
  --bs-border-color: rgba(255, 255, 255, .1);
  --bs-tertiary-bg: #182038;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ol-bg);
  color: var(--ol-text);
  font-family: var(--ol-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: 0;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-5, .ol-head { font-family: var(--ol-font-head); letter-spacing: -.02em; color: var(--ol-text); }
a { color: var(--bs-link-color); text-underline-offset: 3px; }
::selection { background: rgba(79, 70, 229, .2); }
img { max-width: 100%; }
.text-secondary { color: var(--ol-muted) !important; }
.text-dark { color: var(--ol-text) !important; }
.bg-white { background: var(--ol-surface) !important; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }

/* iOS: 16px inputs stop Safari zooming on focus */
.form-control, .form-select { font-size: 16px; border-color: var(--ol-border); background-color: var(--ol-surface); border-radius: var(--ol-radius-sm); min-height: 44px; }
.form-control-sm, .form-select-sm { min-height: 36px; font-size: 14px; }
@media (min-width: 992px) { .form-control, .form-select { font-size: .95rem; } }
.form-control:focus, .form-select:focus { border-color: #818cf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }

/* Buttons */
.btn { font-weight: 600; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.btn-sm { min-height: 32px; }
.btn:active { transform: scale(.97); }
.btn-primary { --bs-btn-bg: #4f46e5; --bs-btn-border-color: #4f46e5; --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-grad { background: var(--ol-grad); color: #fff; border: 0; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .75); }
.btn-grad:hover { color: #fff; filter: brightness(1.07); box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .85); }
.btn-soft { background: rgba(79, 70, 229, .1); color: var(--bs-primary); border: 0; }
.btn-soft:hover { background: rgba(79, 70, 229, .18); color: var(--bs-primary); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.btn-success { --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #059669; --bs-btn-hover-border-color: #059669; }

/* ---------- Header ---------- */
.ol-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ol-border);
  padding-top: env(safe-area-inset-top);
}
[data-bs-theme="dark"] .ol-nav { background: rgba(11, 16, 32, .75); }
.ol-nav .navbar { min-height: var(--ol-nav-h); padding: 0; }
.ol-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ol-text); }
.ol-brand img { height: 40px; width: 40px; flex: none; filter: drop-shadow(0 6px 12px rgba(37, 99, 235, .35)); transition: transform .25s ease; }
.ol-brand:hover img { transform: rotate(-6deg) scale(1.05); }
.ol-brand b { font-family: var(--ol-font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; color: var(--ol-text); line-height: 1; }
.ol-brand b i { font-style: normal; background: linear-gradient(90deg, #4f46e5, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-bs-theme="dark"] .ol-brand b i, .ol-footer .ol-brand b i { background-image: linear-gradient(90deg, #a5b4fc, #67e8f9); }
.ol-footer .ol-brand b { color: #fff; }
.ol-brand small { display: block; font-size: .6rem; color: var(--ol-muted); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.ol-menu { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.ol-menu a, .ol-menu button.nav-link { display: flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 999px; color: var(--ol-text-2); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; border: 0; background: none; }
.ol-menu a:hover, .ol-menu button.nav-link:hover { color: var(--ol-text); background: var(--ol-bg-soft); }
.ol-menu a.active { color: var(--bs-primary); background: rgba(79, 70, 229, .1); }
.ol-search { position: relative; }
.ol-search input { padding-left: 2.4rem; border-radius: 999px; background: var(--ol-bg-soft); border: 1px solid transparent; min-height: 40px; width: 220px; transition: width .2s ease; }
.ol-search input:focus { width: 280px; background: var(--ol-surface); }
.ol-search .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ol-muted); pointer-events: none; }
.ol-iconbtn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--ol-text-2); font-size: 1.15rem; position: relative; }
.ol-iconbtn:hover { background: var(--ol-bg-soft); color: var(--ol-text); }
.ol-iconbtn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ol-user { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--ol-border); border-radius: 999px; padding: 3px 10px 3px 3px; background: var(--ol-surface); color: var(--ol-text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.dropdown-menu { border: 1px solid var(--ol-border); border-radius: 16px; box-shadow: var(--ol-shadow-lg); padding: .4rem; background: var(--ol-surface); }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 500; }
.ol-mega { width: min(560px, 92vw); }
.ol-mega .dropdown-item { display: flex; align-items: center; gap: .6rem; white-space: normal; }
.ol-mega .ic { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }

/* Offcanvas mobile menu */
.offcanvas { background: var(--ol-surface); border: 0 !important; }
.offcanvas-header { padding-top: calc(1rem + env(safe-area-inset-top)); }
.ol-drawer-link { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; color: var(--ol-text); text-decoration: none; font-weight: 600; }
.ol-drawer-link:hover, .ol-drawer-link.active { background: rgba(79, 70, 229, .1); color: var(--bs-primary); }
.ol-drawer-link .bi { font-size: 1.2rem; width: 24px; text-align: center; }

/* Bottom tab bar (phones) */
.ol-tabbar { display: none; }
@media (max-width: 991.98px) {
  body.has-tabbar { padding-bottom: calc(var(--ol-tab-h) + env(safe-area-inset-bottom)); }
  .ol-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    height: calc(var(--ol-tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--ol-border);
  }
  [data-bs-theme="dark"] .ol-tabbar { background: rgba(11, 16, 32, .88); }
  .ol-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--ol-muted); text-decoration: none; }
  .ol-tabbar a .bi { font-size: 1.3rem; line-height: 1; }
  .ol-tabbar a.active { color: var(--bs-primary); }
  .ol-tabbar a.active .bi::before { transform: translateY(-1px); }
  .ol-footer { padding-bottom: 1rem; }
}

/* ---------- Layout helpers ---------- */
.ol-section { padding: 3rem 0; }
@media (max-width: 767.98px) { .ol-section { padding: 2rem 0; } }
.ol-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-primary); }
.section-title { font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin: 0; }
.section-title small { font-weight: 500; color: var(--ol-muted); font-size: .9rem; font-family: var(--ol-font); letter-spacing: 0; }
.ol-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.ol-sec-head .more { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.ol-meta { font-size: .8rem; color: var(--ol-muted); }

/* Horizontal scroller (mobile carousels) */
.ol-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 80%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: .25rem .25rem 1rem; margin: 0 -.25rem; scrollbar-width: none; }
.ol-scroller::-webkit-scrollbar { display: none; }
.ol-scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) { .ol-scroller { grid-auto-columns: minmax(280px, 42%); } }
@media (min-width: 1200px) { .ol-scroller.grid-xl { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* ---------- Cards ---------- */
.card { background: var(--ol-surface); border: 1px solid var(--ol-border); border-radius: var(--ol-radius); box-shadow: var(--ol-shadow-sm); color: var(--ol-text); }
.card-hover { transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--ol-shadow); border-color: rgba(79, 70, 229, .25); }
.ol-post { overflow: hidden; }
.ol-post .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ol-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-hover:hover .ol-cover { transform: scale(1.05); }
.ol-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; position: relative; overflow: hidden; }
.ol-cover-ph::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -60px; right: -40px; }
.ol-cover-ph::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); bottom: -50px; left: -20px; }
.ol-cover-ph .bi { position: relative; z-index: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }
.ol-post .card-body { padding: 1.1rem 1.2rem 1.2rem; }
.ol-post h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: .45rem 0 .4rem; }
.ol-post h3 a { color: var(--ol-text); text-decoration: none; }
.ol-post p { font-size: .9rem; color: var(--ol-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .9rem; }
.ol-post .badges { position: absolute; left: .75rem; top: .75rem; display: flex; gap: .35rem; z-index: 2; flex-wrap: wrap; }
.ol-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .28rem .6rem; background: var(--ol-bg-soft); color: var(--ol-text-2); line-height: 1.1; }
.ol-badge.glass { background: rgba(255, 255, 255, .88); color: #0f172a; backdrop-filter: blur(6px); }
.ol-badge.gold { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; }
.ol-cat-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .28rem .65rem; color: #fff; text-decoration: none; line-height: 1.1; }
.ol-cat-badge:hover { color: #fff; filter: brightness(1.08); }

/* ---------- Hero ---------- */
.ol-hero { position: relative; overflow: hidden; background: #0b1020; color: #fff; }
.ol-hero::before {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(79, 70, 229, .75), transparent 60%),
    radial-gradient(35% 35% at 80% 20%, rgba(6, 182, 212, .55), transparent 60%),
    radial-gradient(35% 40% at 70% 85%, rgba(236, 72, 153, .45), transparent 60%);
  filter: blur(20px);
  animation: olFloat 18s ease-in-out infinite alternate;
}
.ol-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes olFloat { to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .ol-hero::before { animation: none; } * { scroll-behavior: auto !important; } }
.ol-hero > .container { position: relative; z-index: 1; }
.ol-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.ol-hero h1 .grad { background: linear-gradient(90deg, #a5b4fc, #67e8f9 50%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ol-hero .lead { color: rgba(255, 255, 255, .78); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 560px; }
.ol-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .82rem; font-weight: 600; backdrop-filter: blur(8px); }
.ol-pill span { background: var(--ol-grad-warm); padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; }
.ol-hero-search { display: flex; gap: .5rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: .4rem; border-radius: 999px; backdrop-filter: blur(12px); max-width: 560px; }
.ol-hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0 1rem; font-size: 16px; outline: none; }
.ol-hero-search input::placeholder { color: rgba(255, 255, 255, .6); }
.ol-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ol-hero-chips a { font-size: .8rem; color: rgba(255, 255, 255, .85); text-decoration: none; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); }
.ol-hero-chips a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.ol-hero-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.ol-hero-stats b { display: block; font-family: var(--ol-font-head); font-size: 1.6rem; line-height: 1; }
.ol-hero-stats span { font-size: .8rem; color: rgba(255, 255, 255, .65); }
.ol-hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 24px; padding: .8rem; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.ol-hero-card .card { box-shadow: none; }
.ol-float { animation: olBob 6s ease-in-out infinite; }
@keyframes olBob { 50% { transform: translateY(-8px); } }

/* Page header (inner pages) */
.ol-page-head { background: linear-gradient(180deg, var(--ol-bg-soft), var(--ol-bg)); border-bottom: 1px solid var(--ol-border); padding: 2.25rem 0 1.75rem; margin: -1.5rem 0 1.75rem; }
.ol-page-head h1 { font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }

/* ---------- Category tiles ---------- */
.ol-cat-tile { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; background: var(--ol-surface); border: 1px solid var(--ol-border); border-radius: 16px; text-decoration: none; color: var(--ol-text); height: 100%; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.ol-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--ol-shadow); border-color: transparent; color: var(--ol-text); }
.ol-cat-tile .ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; flex: none; box-shadow: 0 8px 16px -8px currentColor; }
.ol-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
.ol-chips::-webkit-scrollbar { display: none; }
.ol-chip-lg { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: var(--ol-surface); border: 1px solid var(--ol-border); color: var(--ol-text); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.ol-chip-lg:hover, .ol-chip-lg.active { border-color: var(--bs-primary); color: var(--bs-primary); }

/* ---------- Videos ---------- */
.ol-video { overflow: hidden; }
.ol-video .thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; display: block; }
.ol-video .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.ol-video:hover .thumb img { transform: scale(1.05); opacity: .9; }
.ol-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ol-play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #ef4444; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; padding-left: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.ol-video:hover .ol-play span, .ol-player:hover .ol-play span { transform: scale(1.1); }
.ol-video .dur { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0, 0, 0, .75); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; }
.ol-video .card-body { padding: .9rem 1rem 1rem; }
.ol-video h3 { font-size: .98rem; font-weight: 700; line-height: 1.35; margin: 0 0 .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ol-video h3 a { color: var(--ol-text); text-decoration: none; }
.ol-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--ol-radius); overflow: hidden; cursor: pointer; box-shadow: var(--ol-shadow-lg); }
.ol-player.short { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.ol-player img { width: 100%; height: 100%; object-fit: cover; }
.ol-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ol-player .ol-play span { width: 78px; height: 78px; font-size: 2.4rem; }
.ol-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); pointer-events: none; }
.ol-player.playing::after { display: none; }
.ol-player .cap { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; color: #fff; z-index: 2; pointer-events: none; }
.ol-player .cap b { font-family: var(--ol-font-head); font-size: clamp(1rem, .9rem + .6vw, 1.4rem); display: block; line-height: 1.25; }
.ol-video-band { background: linear-gradient(180deg, #0b1020, #121a36); color: #e8ecf5; }
.ol-video-band .section-title, .ol-video-band h3 a { color: #fff; }
.ol-video-band .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); color: #e8ecf5; }
.ol-video-band .ol-meta, .ol-video-band .text-secondary { color: #9aa4bd !important; }
.ol-yt-btn { background: #ff0033; color: #fff; border: 0; }
.ol-yt-btn:hover { background: #e0002d; color: #fff; }
.ol-mini-video { display: flex; gap: .75rem; text-decoration: none; color: inherit; padding: .5rem; border-radius: 14px; }
.ol-mini-video:hover { background: var(--ol-bg-soft); }
.ol-video-band .ol-mini-video:hover { background: rgba(255, 255, 255, .06); }
.ol-mini-video .t { width: 140px; flex: none; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; background: #000; }
.ol-mini-video .t img { width: 100%; height: 100%; object-fit: cover; }
.ol-mini-video .t .bi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ol-mini-video b { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- News list ---------- */
.ol-news-item { display: block; padding: .85rem 0; border-bottom: 1px solid var(--ol-border); text-decoration: none; color: var(--ol-text); }
.ol-news-item:last-child { border-bottom: none; }
.ol-news-item:hover .t { color: var(--bs-primary); }
.ol-news-item .t { font-weight: 600; line-height: 1.4; font-size: .95rem; }
.ol-news-num { counter-reset: n; }
.ol-news-num .ol-news-item { counter-increment: n; position: relative; padding-left: 2.4rem; }
.ol-news-num .ol-news-item::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .9rem; font-family: var(--ol-font-head); font-weight: 800; font-size: 1.1rem; background: var(--ol-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Article ---------- */
.ol-article { font-size: 1.06rem; line-height: 1.8; color: var(--ol-text); overflow-wrap: anywhere; }
.ol-article h2, .ol-article h3 { margin-top: 1.8rem; font-weight: 700; }
.ol-article pre { background: #0f172a; color: #e2e8f0; padding: 1rem 1.1rem; border-radius: 14px; overflow-x: auto; font-size: .88rem; -webkit-overflow-scrolling: touch; }
.ol-article code { background: rgba(79, 70, 229, .1); color: #4338ca; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[data-bs-theme="dark"] .ol-article code { color: #c7d2fe; }
.ol-article pre code { background: transparent; color: inherit; padding: 0; }
.ol-article blockquote { border-left: 4px solid var(--ol-green); padding: .6rem 1rem; background: rgba(16, 185, 129, .08); border-radius: 0 12px 12px 0; }
.ol-article img { max-width: 100%; height: auto; border-radius: 14px; }
.ol-article table { width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.ol-article th, .ol-article td { border: 1px solid var(--ol-border); padding: 8px 10px; }
.ol-article .qa { background: var(--ol-surface-2); border: 1px solid var(--ol-border); border-left: 4px solid var(--bs-primary); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.ol-article .qa h3 { margin-top: 0; font-size: 1.1rem; }
.ol-article .qa p:last-child { margin-bottom: 0; }
.ol-paywall { position: relative; max-height: 520px; overflow: hidden; }
.ol-paywall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--ol-surface)); }
.ol-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--ol-grad); z-index: 1040; width: 0; }

.btn-like.liked { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.ol-stars .bi, .ol-stars i { color: var(--ol-amber); }
.ol-rating input { position: absolute; opacity: 0; pointer-events: none; }
.ol-rating label { font-size: 1.6rem; color: #cbd5e1; cursor: pointer; padding: 0 2px; }
.ol-rating input:checked ~ label, .ol-rating label:hover, .ol-rating label:hover ~ label { color: var(--ol-amber); }
.ol-rating { display: inline-flex; flex-direction: row-reverse; }

/* ---------- Polls ---------- */
.ol-poll-bar { min-height: 42px; border-radius: 12px; background: var(--ol-bg-soft); position: relative; overflow: hidden; }
.ol-poll-bar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(79,70,229,.25), rgba(6,182,212,.3)); border-radius: 12px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.ol-poll-bar.mine .fill { background: linear-gradient(90deg, rgba(16,185,129,.3), rgba(16,185,129,.45)); }
.ol-poll-bar .lbl { position: relative; z-index: 1; padding: .6rem .9rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .92rem; font-weight: 500; }
.ol-poll-opt { display: block; position: relative; }
.ol-poll-opt input { position: absolute; opacity: 0; }
.ol-poll-opt span { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1.5px solid var(--ol-border); border-radius: 12px; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; min-height: 44px; }
.ol-poll-opt span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ol-muted); flex: none; transition: all .15s; }
.ol-poll-opt input:checked + span { border-color: var(--bs-primary); background: rgba(79, 70, 229, .07); }
.ol-poll-opt input:checked + span::before { border-color: var(--bs-primary); background: radial-gradient(circle, var(--bs-primary) 45%, transparent 50%); }
.ol-poll-opt input:focus-visible + span { outline: 3px solid rgba(79, 70, 229, .4); }

/* ---------- Discussions ---------- */
.ol-vote { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.ol-vote button { border: none; background: none; color: var(--ol-muted); font-size: 1.25rem; line-height: 1; width: 40px; height: 32px; border-radius: 8px; }
.ol-vote button.on, .ol-vote button:hover { color: var(--bs-primary); background: rgba(79, 70, 229, .08); }
.ol-vote .score { font-weight: 800; font-family: var(--ol-font-head); }
.ol-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; background: var(--bs-primary); flex: none; }
.ol-topic { display: flex; gap: .9rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--ol-border); }
.ol-topic:last-child { border-bottom: 0; }

/* ---------- Pro / CTA ---------- */
.ol-pro { background: var(--ol-grad); color: #fff; border-radius: 28px; position: relative; overflow: hidden; border: 0; }
.ol-pro::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -120px; top: -160px; }
.ol-pro::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); left: -80px; bottom: -140px; }
.ol-pro > * { position: relative; z-index: 1; }
.ol-pro h1, .ol-pro h2, .ol-pro h3 { color: #fff; }
.ol-pro .btn-light { color: #3730a3; font-weight: 800; }
.ol-stat { background: var(--ol-surface); border: 1px solid var(--ol-border); border-radius: 16px; padding: 14px 16px; }
.ol-stat b { font-size: 1.35rem; display: block; font-family: var(--ol-font-head); }

/* ---------- Footer ---------- */
.ol-footer { background: #070b18; color: #94a3b8; margin-top: 4rem; position: relative; }
.ol-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ol-grad); opacity: .7; }
.ol-footer h6 { color: #fff; font-family: var(--ol-font-head); font-weight: 700; margin-bottom: .9rem; }
.ol-footer a { color: #cbd5e1; text-decoration: none; }
.ol-footer a:hover { color: #fff; }
.ol-footer li { margin-bottom: .45rem; }
.ol-social { width: 40px; height: 40px; border-radius: 12px; background: #131a2e; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background .2s, transform .2s; }
.ol-social:hover { background: #4f46e5; transform: translateY(-2px); }
.ol-chip { background: #131a2e; font-weight: 500; color: #cbd5e1 !important; padding: .4rem .7rem; }

/* ---------- Misc components ---------- */
.nav-pills .nav-link { border-radius: 999px; font-weight: 600; color: var(--ol-text-2); }
.nav-pills .nav-link.active { background: var(--bs-primary); }
.nav-tabs { border-color: var(--ol-border); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-tabs .nav-link { white-space: nowrap; font-weight: 600; color: var(--ol-text-2); }
.pagination .page-link { border-radius: 10px !important; margin: 0 3px; border: 1px solid var(--ol-border); min-width: 40px; text-align: center; }
.alert { border-radius: 14px; border: 0; }
.breadcrumb { font-size: .82rem; }
.table { --bs-table-bg: transparent; }
.ol-empty { text-align: center; padding: 3rem 1rem; color: var(--ol-muted); }
.ol-empty .bi { font-size: 2.6rem; display: block; margin-bottom: .6rem; opacity: .6; }
.js .ol-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.ol-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ol-reveal { opacity: 1; transform: none; } }
.ol-toast-wrap { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1080; }
@media (max-width: 991.98px) { .ol-toast-wrap { bottom: calc(var(--ol-tab-h) + 1rem + env(safe-area-inset-bottom)); left: 1rem; } }

/* ---------- Admin ---------- */
.ol-admin-side { background: #0b1020; min-height: calc(100vh - 66px); }
.ol-admin-side .nav-link { color: #cbd5e1; border-radius: 10px; font-weight: 500; }
.ol-admin-side .nav-link.active, .ol-admin-side .nav-link:hover { background: #1b2340; color: #fff; }
.ol-kpi { border-radius: 16px; padding: 16px; background: var(--ol-surface); border: 1px solid var(--ol-border); }
.ol-kpi b { font-size: 1.5rem; display: block; font-family: var(--ol-font-head); }
.table td, .table th { vertical-align: middle; }
#editor { min-height: 340px; background: var(--ol-surface); font-size: 1rem; }
.ql-toolbar.ql-snow { border-radius: 12px 12px 0 0; background: var(--ol-surface); border-color: var(--ol-border) !important; }
.ql-container.ql-snow { border-radius: 0 0 12px 12px; border-color: var(--ol-border) !important; }
[data-bs-theme="dark"] .ql-snow .ql-stroke { stroke: #cbd5e1; }
[data-bs-theme="dark"] .ql-snow .ql-fill, [data-bs-theme="dark"] .ql-snow .ql-picker-label { fill: #cbd5e1; color: #cbd5e1; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .card.p-4, .card.p-md-5 { padding: 1.15rem !important; }
  .ol-hero-stats { gap: 1.2rem; }
  .ol-hero-stats b { font-size: 1.3rem; }
  .ol-player .ol-play span { width: 64px; height: 64px; font-size: 2rem; }
  .ol-mini-video .t { width: 120px; }
  h1.fw-bold { font-size: 1.6rem; }
}
.ol-logo { height: 36px; width: auto; border-radius: 10px; background: #fff; padding: 2px; }
.min-w-0 { min-width: 0; }
.ol-brand small, .ol-nav .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .ol-menu a, .ol-menu button.nav-link { padding: .45rem .55rem; font-size: .88rem; } .ol-brand small { display: none; } }
