:root {
  --bg: #edf2fa;
  --bg-alt: #e6edfb;
  --card-bg: #fff;
  --text: #14213c;
  --text-muted: #51617e;
  --border: #cbd7ec;
  --icon-violet: #2849bd;
  --icon-cyan: #086780;
  --icon-pink: #9e3724;
  --icon-lime: #476b23;
  --cobalt: #2141be;
  --cobalt-light: #b9caff;
  --cobalt-dark: #0a1734;
  --coral: #ffb28e;
}
html[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #18233e;
  --card-bg: #111a30;
  --text: #f2f5ff;
  --text-muted: #b4c2df;
  --border: #2c3b5d;
  --icon-violet: #b4c6ff;
  --icon-cyan: #8cd9f1;
  --icon-pink: #ffb193;
  --icon-lime: #d2ef95;
}
body { background: var(--bg); }
.site-header.teknobu-masthead {
  background: linear-gradient(105deg,#182969,#2143bc 58%,#192d77);
  border-bottom-color: #425bb1;
  box-shadow: 0 9px 22px #07174030;
}
.teknobu-masthead::before { height: 3px; background: linear-gradient(90deg,#759ffc 0 76%,#ffb28e 76%); }
.teknobu-masthead .header-inner > .premium-header-brand { min-height: 78px; }
.site-header.teknobu-masthead .brand { color: #fff; }
.teknobu-masthead .premium-brand-copy small { color: #d1dcff; }
.teknobu-masthead .premium-wide-search {
  background: #101e5e66; border-color: #c2d2ff66; border-radius: 999px; color: #fff;
}
.teknobu-masthead .premium-search-copy strong,.teknobu-masthead .premium-search-icon { color: #e2ebff; }
.teknobu-masthead .premium-wide-search kbd { background: #101f63; color: #d1ddff; border-color: #899fff66; }
.teknobu-masthead .header-actions #themeToggle,
.teknobu-masthead .header-actions .profile-btn,
.teknobu-masthead .header-actions .premium-mobile-search,
.teknobu-masthead .mobile-toggle {
  color: #fff; background: #10266d9c; border-color: #c4d2ff5e;
}
.site-header.teknobu-masthead .main-nav {
  position: relative; isolation: isolate; gap: 12px;
  border-top-color: #c0cfff30; min-height: 66px;
}
.site-header.teknobu-masthead .main-nav a { color: #f1f4ff; background: transparent; font-weight: 800; border-radius: 13px; }
.site-header.teknobu-masthead .main-nav a:is(:hover,.active) { color: #fff; background: #102668a6; border-color: #bccbff50; }
.teknobu-masthead .main-nav .teknobu-premium-icon { width: 39px; height: 39px; border-radius: 12px; background: #263d85; color: #c1cfff; }
.teknobu-masthead .main-nav .teknobu-premium-icon:is(.icon-game,.icon-guide,.icon-shield) { color: #e0f49f; background: #2e4167; }
.teknobu-masthead .main-nav .teknobu-premium-icon:is(.icon-hardware,.icon-app) { color: #a4e8ff; background: #174d7b; }
.teknobu-masthead .main-nav .teknobu-premium-icon:is(.icon-social,.icon-news,.icon-mobile) { color: #ffd1bc; background: #5b3d72; }
.teknobu-masthead .main-nav a.active .teknobu-premium-icon { background: var(--coral); color: #36201e; }

.featured-slider { border: 0; border-radius: 17px; background: #132450; }
.featured-slider .featured-slide::after {
  background: linear-gradient(90deg,#09152efb 1%,#11234df2 37%,#13255666 70%,#111f4c20),
    linear-gradient(0deg,#0a142cbf,transparent 60%);
}
.premium-hero-meta .featured-kicker { background: var(--coral); color: #38231e; border: 0; padding: 6px 11px; }
.premium-live-dot { background: #723927; }
.featured-slider .featured-content h2 { font-weight: 800; letter-spacing: -.055em; }
.featured-slider .featured-content h2 a:is(:hover,:focus-visible) { color: #cbd9ff; }
.featured-slider .featured-cta { background: #c1d2ff; color: #101d43; border-color: #dfebff; box-shadow: none; }
.featured-slider .featured-controls { border-color: #8dabe47a; background: #101e3de8; }
.featured-slider .featured-dot.is-active { background: var(--coral) !important; }

.home-trend-panel .home-trend-box { background: var(--card-bg); border-inline-start: 4px solid var(--icon-pink); border-radius: 14px; }
.premium-hot-card { background: color-mix(in srgb,var(--coral) 11%,var(--card-bg)); border-color: color-mix(in srgb,var(--coral) 30%,var(--border)); }
.premium-hot-card .premium-side-icon { background: var(--coral); color: #492921; }
.premium-hot-tag { background: transparent; border-color: var(--border); }

.rounded-topics, .premium-feed { background: transparent; border: 0; padding: 0; }
.rounded-topics h2,.premium-feed-head h1 { font-weight: 800; }
.rounded-topics a { background: var(--card-bg); border-radius: 15px; min-height: 51px; }
.polish-section-icon { background: var(--icon-violet); color: var(--card-bg); border: 0; }
.premium-feed-head { padding-block: 9px 12px; margin-bottom: 13px; border-bottom: 1px solid var(--border); }
.premium-feed-head h1 { font-size: clamp(21px,2.6vw,31px); }
.premium-feed-list::before { content: none !important; }
.premium-feed-card {
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--icon-violet);
  border-radius: 16px;
  background: var(--card-bg);
}
.premium-feed-card:hover,.premium-feed-card:focus-within { border-color: var(--icon-violet); }
.premium-feed-timeline { border-inline-end: 1px dashed var(--border); padding-inline-end: 4px; }
.premium-feed-timeline > .teknobu-premium-icon { color: #fff; background: #304fb6; box-shadow: none; border-radius: 12px; }
.premium-feed-timeline > span:last-child { background: var(--bg-alt); border: 0; }
.premium-feed-cover { border-radius: 11px; }
.premium-feed-meta a { background: var(--bg-alt); color: var(--icon-violet); }
.premium-feed-copy h2 { font-weight: 800; }
.premium-feed-foot a { background: var(--icon-violet); color: var(--card-bg); border-color: transparent; }
.premium-feed-save[aria-pressed="true"] { background: #2f51c4; color: #fff; }

.sidebar-box:is(.premium-trend-box,.premium-categories-box) { background: var(--card-bg); border-radius: 15px; }
.premium-trend-box .trend-card { background: transparent; border-color: transparent; }
.premium-trend-box .trend-card:first-child { background: var(--bg-alt); border-color: var(--border); }
.premium-trend-box .trend-card:not(:first-child) { border-radius: 0; border-bottom-color: var(--border); }
.premium-trend-box .trend-rank,.premium-trend-box .trend-card:first-child .trend-rank { background: #1e3ea1; color: #fff; border: 0; }
.premium-side-icon.is-trend { background: var(--coral); color: #4b3025; }
.premium-side-icon.is-category { background: var(--icon-violet); color: var(--card-bg); }
.premium-categories-box .category-pills .pill { background: var(--bg-alt); }

.teknobu-drawer-links a[aria-current="page"] .teknobu-premium-icon { background: var(--coral); color: #40241b; }
.premium-search-dialog,.teknobu-drawer { background: var(--card-bg); }
.sp-card .sp-head {
  background: linear-gradient(140deg,color-mix(in srgb,var(--icon-violet) 17%,var(--card-bg)),var(--card-bg) 74%);
}
.sp-card .sp-cat { color: var(--card-bg); background: var(--icon-violet); }
.sp-card .sp-title { letter-spacing: -.052em; }
.sp-card .sp-content h2::after { background: var(--icon-violet); }
.site-footer { background: var(--cobalt-dark); border-top-color: var(--coral); color: #eaf0ff; }
.site-footer .footer-grid { background: transparent; border: 0; }
.site-footer .footer-col h4,.site-footer .brand { color: #f1f5ff; }
.site-footer :is(.footer-links a,.footer-post-title,.footer-post-date,.teknobu-footer-about,.teknobu-copyright,.footer-legal a) { color: #c6d4f8; }
.site-footer .footer-post { background: #152646; border-color: #3b5380; }
.site-footer .polish-back-top { border-color: #577198; color: #d4e4ff; }

@media(max-width:760px) {
  .teknobu-masthead .header-inner > .premium-header-brand { min-height: 66px; }
  .site-header.teknobu-masthead .main-nav { min-height: 53px; gap: 5px; }
  .teknobu-masthead .main-nav .teknobu-premium-icon { width: 29px; height: 29px; border-radius: 9px; }
  .featured-slider .featured-slide::after { background: linear-gradient(0deg,#101d3ef9,#111e41d4 52%,#13244985); }
  .rounded-topics,.premium-feed { padding: 0; }
  .premium-feed-card { border-inline-start-width: 3px; border-radius: 12px; }
}
