/*
Theme Name: Cryptalin Pro
Theme URI: https://cryptalin.com
Author: Cryptalin
Author URI: https://cryptalin.com
Description: Cryptalin Pro – A professional dark-mode theme for crypto, tech and business blogs. English LTR version.
Version: 2.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cryptalin-pro
Tags: dark, blog, custom-logo, featured-images
*/
:root {
  --surface:   #ffffff;
  --surface-2: #F8F5F2;
  --surface-3: #EDE8DF;
  --border:    #E0D9CF;
  --text-main: #1A1A1A;
  --text-muted:#6B6660;
}

[data-theme="dark"] .article-layout,
[data-theme="dark"] .article-main,
[data-theme="dark"] .comments-section,
[data-theme="dark"] .sidebar-widget {
  --surface:   #1e293b00;
  --surface-2: #4a4a4c00;
  --surface-3: #162032;
  --border:    rgba(255,255,255,.1);
  --text-main: #e2e8f0;
  --text-muted:#94a3b8;
}

[data-theme="dark"] .article-layout    { background: #1e293b; }
[data-theme="dark"] .article-main      { background: #1e293b; }
[data-theme="dark"] .comments-section  { background: #0f1729 !important; }
[data-theme="dark"] #main-content.container { background: #0f172a; }

[data-theme="dark"] .article-content,
[data-theme="dark"] .article-content p,
[data-theme="dark"] .article-content li  { color: #e2e8f0; }
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .article-content h4  { color: #f1f5f9; }
[data-theme="dark"] .article-content blockquote   { background: #0f172a; }
[data-theme="dark"] .article-content blockquote p { color: #f1f5f9; }
[data-theme="dark"] .article-content code  { background: #162032; color: #e2e8f0; }
[data-theme="dark"] .article-content td   { border-bottom-color: rgba(255,255,255,.1); }
[data-theme="dark"] .article-content tr:nth-child(even) td { background: #0f172a; }

[data-theme="dark"] .toc-box    { background: #0f172a; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .toc-list a  { color: #e2e8f0; }

[data-theme="dark"] .tag-link   { background: #0f172a; border-color: rgba(255,255,255,.1); color: #e2e8f0; }
[data-theme="dark"] .share-copy { background: #0f172a; border-color: rgba(255,255,255,.1); color: #e2e8f0; }

[data-theme="dark"] .author-box        { background: #0f172a; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .author-box-name a { color: #f1f5f9; }
[data-theme="dark"] .author-box-bio    { color: #94a3b8; }
[data-theme="dark"] .author-social a   { background: rgba(255,255,255,.08); color: #e2e8f0; }

[data-theme="dark"] .spn-card  { background: #0f172a; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .spn-title { color: #e2e8f0; }

[data-theme="dark"] .article-rating { background: #0f172a; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .rating-thumb   { background: #1e293b; border-color: rgba(255,255,255,.1); color: #94a3b8; }

[data-theme="dark"] .comment             { border-bottom-color: rgba(255,255,255,.1); }
[data-theme="dark"] .comment-text,
[data-theme="dark"] .comment-author-name { color: #e2e8f0; }
[data-theme="dark"] .comment-date        { color: #94a3b8; }
[data-theme="dark"] .comment-form-wrap   { background: #0f172a; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .comment-form-title,
[data-theme="dark"] .comment-form-title a { color: #f1f5f9; }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea       { background: #1e293b; border-color: rgba(255,255,255,.1); color: #e2e8f0; }
[data-theme="dark"] .form-label          { color: #94a3b8; }
[data-theme="dark"] .comments-title      { color: #f1f5f9; }

[data-theme="dark"] .sidebar-widget  { background: #1e293b; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .widget-title    { color: #94a3b8; border-bottom-color: rgba(255,255,255,.1); }
[data-theme="dark"] .post-item-title { color: #e2e8f0; }
[data-theme="dark"] .cat-item a      { color: #e2e8f0; }
[data-theme="dark"] .cat-count       { background: #162032; color: #94a3b8; }
[data-theme="dark"] .post-card       { background: #1e293b; border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .post-card-title { color: #e2e8f0; }
[data-theme="dark"] .post-card-meta  { color: #94a3b8; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #94a3b8;
  cursor: pointer;
  transition: color .25s, transform .25s, background .25s, border-color .25s;
  font-size: 15px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: #FF6B35;
  transform: translateY(-2px);
  background: rgba(255,107,53,.08);
  border-color: rgba(255,107,53,.2);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

:root {
  --primary:        #0a0a0f;
  --primary-soft:   #12121a;
  --primary-mid:    #1a1a2e;
  --accent:         #FF6B35;
  --accent-2:       #E8305A;
  --accent-3:       #7B2FBE;
  --accent-light:   #FF8C5A;
  --accent-glow:    rgba(255,107,53,.18);

  --fox-gradient:   linear-gradient(135deg, #FF6B35 0%, #E8305A 55%, #7B2FBE 100%);
  --fox-gradient-h: linear-gradient(135deg, #FF8C5A 0%, #FF4B7A 55%, #9B4FDE 100%);

  --surface:        #FFFFFF;
  --surface-2:      #F8F5F2;
  --surface-3:      #EDE8DF;

  --dark-surface:   #0a0a0f;
  --dark-surface-2: #12121a;
  --dark-surface-3: #1a1a2e;
  --dark-border:    rgba(255,107,53,.15);

  --text-main:      #1A1A1A;
  --text-muted:     #6B6660;
  --text-light:     #9E9690;
  --text-on-dark:   rgba(255,255,255,.85);
  --text-muted-dark:rgba(255,255,255,.55);

  --border:         #E0D9CF;
  --border-dark:    rgba(255,255,255,.08);

  --shadow-sm:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:      0 4px 20px rgba(0,0,0,.15);
  --shadow-lg:      0 12px 48px rgba(0,0,0,.25);
  --shadow-accent:  0 4px 20px rgba(255,107,53,.3);

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-ui:        'Inter', 'DM Sans', 'Segoe UI', sans-serif;
  --max-w:          1400px;
  --content-w:      760px;
  --transition:     .25s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.8;
  direction: ltr;
  overflow-x: hidden;
}

html[data-theme="light"] body.single {
  background: #ffffff !important;
}

html[data-theme="dark"] body.single {
  background: #1e293b !important;
}

body.archive,
body.category,
body.blog,
body.search {
  background: #0a0a0f;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); }

p { font-size: 1.05rem; margin-bottom: 1.5rem; text-align: justify; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }
.content-container { width: 100%; max-width: var(--content-w); margin-inline: auto; padding-inline: 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-muted { color: var(--text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
  padding: .3rem .85rem; border-radius: 999px;
  background: var(--fox-gradient); color: #fff;
  text-transform: uppercase; letter-spacing: .05em;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-accent);
}
.badge:hover { opacity: .88; }

.skip-link {
  position: absolute; top: -100px; right: 1rem;
  background: var(--accent); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.site-topbar {
  background: var(--dark-surface-2);
  color: var(--text-muted-dark);
  font-family: var(--font-ui);
  font-size: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--dark-border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-date { opacity: .7; }
.topbar-links { display: flex; gap: 1.25rem; }
.topbar-links a {
  color: var(--text-muted-dark); transition: color var(--transition);
}
.topbar-links a:hover { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid var(--dark-border);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.7); }

.cryptalin-header {
  background-color: var(--dark-surface) !important;
  border-bottom: 1px solid var(--dark-border) !important;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 2rem;
}

.site-branding { flex-shrink: 0; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: #fff; letter-spacing: -.02em;
}
.site-title span { background: var(--fox-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-description {
  font-size: .72rem; color: var(--text-muted-dark);
  font-family: var(--font-ui); margin-top: .1rem;
}

.primary-nav { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.primary-nav a {
  font-family: var(--font-ui); font-size: .9rem; font-weight: 600;
  color: var(--text-on-dark); padding: .45rem .85rem; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav a.active { background: var(--dark-surface-2); color: var(--accent); }
.primary-nav .current-menu-item > a { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.search-toggle, .mobile-menu-toggle {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-on-dark);
  transition: background var(--transition), color var(--transition);
}
.search-toggle:hover, .mobile-menu-toggle:hover { background: var(--dark-surface-2); color: var(--accent); }
.mobile-menu-toggle { display: none; }

.header-search {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--dark-surface-2); border-top: 1px solid var(--dark-border);
  padding: 1rem 0; box-shadow: var(--shadow-lg);
  display: none; animation: slideDown .2s ease;
}
.header-search.open { display: block; }
.search-form-inner { display: flex; gap: .75rem; max-width: 640px; margin: 0 auto; }
.search-form-inner input {
  flex: 1; padding: .65rem 1rem;
  border: 1.5px solid var(--dark-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem;
  background: var(--dark-surface-3); color: var(--text-on-dark);
  outline: none; transition: border-color var(--transition);
}
.search-form-inner input::placeholder { color: var(--text-muted-dark); }
.search-form-inner input:focus { border-color: var(--accent); }
.search-form-inner button {
  padding: .65rem 1.25rem; background: var(--fox-gradient); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700; font-family: var(--font-ui);
  transition: opacity var(--transition);
  box-shadow: var(--shadow-accent);
}
.search-form-inner button:hover { opacity: .85; }

.reading-progress {
  position: fixed; top: 0; right: 0; left: 0; z-index: 600;
  height: 3px; background: transparent; pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 0; background: var(--fox-gradient);
  transition: width .1s linear;
}

.breadcrumb-wrap {
  padding: .85rem 0;
  background: #0a0a0f;
  border-bottom: 1px solid var(--dark-border);
}
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .35rem; font-family: var(--font-ui); font-size: .82rem;
  color: var(--text-muted-dark);
}
.breadcrumb a { color: var(--text-muted-dark); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--text-on-dark); font-weight: 600; }

.article-hero {
  position: relative;
  background: #ffffff;
}
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-color: var(--dark-surface-2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,.25) 0%,
    rgba(10,10,15,.55) 50%,
    rgba(10,10,15,.92) 100%
  );
  z-index: 1;
}

.hero-meta-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.article-title,
.hero-title {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
  text-align: justify;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.article-excerpt,
.hero-excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 680px;
  font-style: italic;
  text-align: justify;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  margin-bottom: 0;
}

.hero-byline-bar {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
}

.article-byline {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1.5rem; padding: 1rem 0;
}
.byline-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--accent);
}
.author-name {
  font-family: var(--font-ui); font-size: .88rem; font-weight: 700;
  color: var(--text-on-dark);
}
.author-name a { color: var(--text-on-dark); }
.author-role { font-size: .75rem; color: var(--text-muted-dark); }
.byline-info {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted-dark);
  margin-right: auto;
}
.byline-item { display: flex; align-items: center; gap: .35rem; }
.byline-item svg { opacity: .5; flex-shrink: 0; }
.byline-item a { color: var(--text-muted-dark); }
.byline-item a:hover { color: var(--accent); }

.hero-visual:not([style*="background-image"]) {
  min-height: 280px;
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-3) 100%);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  align-items: start;
  background: var(--surface);
}

.single #main-content,
.page  #main-content { background: var(--surface); }

[data-theme="dark"] .article-layout,
[data-theme="dark"] .single #main-content,
[data-theme="dark"] .page  #main-content,
[data-theme="dark"] .single .site-content,
[data-theme="dark"] .page  .site-content { background: #1e293b; }

.article-sidebar .sidebar-widget { background: var(--surface); }
[data-theme="dark"] .article-sidebar .sidebar-widget { background: #1e293b; }

:root .article-main,
:root .single .article-layout,
:root .single .article-main,
:root .single .article-content,
[data-theme="light"] .article-main,
[data-theme="light"] .single #main-content,
[data-theme="light"] .single .article-layout,
[data-theme="light"] .single .article-main,
[data-theme="light"] .single .article-content { background: var(--surface); }

.toc-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-right: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: .75rem .9rem;
  margin-bottom: 2rem;
}
.toc-title {
  font-family: var(--font-ui); font-size: .72rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted);
  margin-bottom: .4rem; display: flex; align-items: center; gap: .35rem;
}
.toc-list { display: flex; flex-direction: column; gap: 0; }
.toc-list li { list-style: none; }
.toc-list a {
  font-family: var(--font-ui); font-size: .76rem;
  color: var(--text-main); padding: .12rem .4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: baseline;
  gap: .4rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-list a::before {
  content: none;
}
.toc-list a:hover,
.toc-list a.active {
  background: var(--fox-gradient); color: #fff; font-weight: 600;
  white-space: normal;
}
.toc-list a:hover::before,
.toc-list a.active::before { }
.toc-list .toc-h3 { padding-right: 1rem; font-size: .72rem; opacity: .75; }
.toc-list .toc-h3::before { width: 3px; height: 3px; opacity: .4; }

@media (max-width: 768px) {
  .toc-box { padding: .6rem .75rem; }
  .toc-title {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
    margin-bottom: 0;
  }
  .toc-title::after {
    content: '▾';
    font-size: .8rem;
    transition: transform .2s;
  }
  .toc-title.open::after { transform: rotate(180deg); }
  .toc-list {
    display: none;
    margin-top: .4rem;
  }
  .toc-list.visible { display: flex; }
  .toc-list a {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

.article-content {
  font-size: 1.05rem; line-height: 1.9;
  color: var(--text-main);
  text-align: justify;
}

.article-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 2.75rem 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  position: relative;
  text-align: left;
}
.article-content h2::before {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 60px; height: 2px;
  background: var(--fox-gradient);
}
.article-content h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin: 2rem 0 .75rem; color: var(--primary);
  text-align: left;
}
.article-content h4 { margin: 1.5rem 0 .5rem; text-align: left; }

.article-content p { margin-bottom: 1.6rem; text-align: justify; }

.article-content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.article-content a:hover { border-color: var(--accent); }

.article-content blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  background: var(--surface-2);
  border-right: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}
.article-content blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1;
  color: var(--accent); opacity: .3;
  position: absolute; top: -.5rem; right: 1rem;
}
.article-content blockquote p {
  font-size: 1.1rem; font-style: italic;
  color: var(--primary); margin-bottom: .5rem;
}
.article-content blockquote cite {
  font-family: var(--font-ui); font-size: .85rem;
  color: var(--text-muted); font-style: normal;
}

.article-content ul,
.article-content ol { margin: 1rem 0 1.75rem; padding-right: 1.75rem; }
.article-content ul { list-style: none; padding-right: 0; }
.article-content ul li {
  position: relative; padding-right: 1.5rem; margin-bottom: .6rem;
  text-align: justify;
}
.article-content ul li::before {
  content: '';
  position: absolute; right: 0; top: .65rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fox-gradient);
}
.article-content ol { list-style: decimal; }
.article-content ol li { margin-bottom: .6rem; text-align: justify; }

.article-content code {
  background: var(--surface-3); color: var(--primary);
  padding: .15em .45em; border-radius: 4px;
  font-size: .9em; font-family: 'Courier New', monospace;
}
.article-content pre {
  background: var(--dark-surface); color: #E8F0FE;
  padding: 1.5rem; border-radius: var(--radius-md);
  overflow-x: auto; margin: 2rem 0;
  font-size: .88rem; line-height: 1.7;
  border: 1px solid var(--dark-border);
}
.article-content pre code { background: none; color: inherit; padding: 0; }

.article-content table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
  font-size: .92rem;
}
.article-content th {
  background: var(--dark-surface); color: #fff;
  padding: .75rem 1rem; text-align: left;
  font-family: var(--font-ui); font-weight: 600;
}
.article-content td {
  padding: .7rem 1rem; border-bottom: 1px solid var(--border);
  vertical-align: top; text-align: justify;
}
.article-content tr:nth-child(even) td { background: var(--surface-2); }
.article-content tr:hover td { background: var(--surface-3); }

.article-content figure { margin: 2.5rem 0; }
.article-content figure img {
  width: 100%; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.article-content figcaption {
  text-align: center; font-size: .83rem;
  color: var(--text-muted); margin-top: .75rem;
  font-family: var(--font-ui); font-style: italic;
}

.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-md);
  margin: 2rem 0; font-size: .95rem;
}
.callout-info { background: #EFF6FF; border: 1px solid #BFDBFE; }
.callout-warning { background: #FFFBEB; border: 1px solid #FDE68A; }
.callout-success { background: #F0FDF4; border: 1px solid #BBF7D0; }
.callout-icon { flex-shrink: 0; font-size: 1.2rem; margin-top: .1rem; }

.article-content hr {
  border: none; height: 1px;
  background: linear-gradient(to left, transparent, var(--border), transparent);
  margin: 3rem 0;
}

.article-footer { padding-top: 2.5rem; border-top: 2px solid var(--border); margin-top: 3rem; }

.tags-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.tag-link {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  padding: .3rem .85rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text-main);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.tag-link:hover { background: var(--fox-gradient); border-color: transparent; color: #fff; }

.share-section { margin-bottom: 2.5rem; }
.share-label {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: .85rem;
}
.share-buttons { display: flex; flex-wrap: wrap; gap: .65rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}
.share-btn:hover { opacity: .85; transform: translateY(-2px); }
.share-twitter  { background: #1DA1F2; color: #fff; }
.share-telegram { background: #229ED9; color: #fff; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-copy     { background: var(--surface-2); color: var(--text-main); border: 1px solid var(--border); }

.author-box {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 2rem; background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}
.author-box-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--accent);
}
.author-box-name {
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary); margin-bottom: .2rem;
}
.author-box-role {
  font-size: .82rem; color: var(--accent);
  font-family: var(--font-ui); font-weight: 600;
  margin-bottom: .6rem;
}
.author-box-bio { font-size: .92rem; color: var(--text-muted); line-height: 1.7; text-align: justify; }
.author-social { display: flex; gap: .5rem; margin-top: .85rem; }
.author-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text-main);
  transition: background var(--transition), color var(--transition);
}
.author-social a:hover { background: var(--fox-gradient); color: #fff; }

.simple-post-nav { margin: 2rem 0 2.5rem; }
.spn-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.spn-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.spn-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(255,107,53,.13);
  transform: translateY(-2px);
}
.spn-empty { background: transparent; border-color: transparent; box-shadow: none; pointer-events: none; }
.spn-label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
}
.spn-title {
  font-family: var(--font-ui);
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}
.spn-next { text-align: left; }
@media (max-width: 600px) {
  .spn-inner { grid-template-columns: 1fr; }
  .spn-empty { display: none; }
}

.article-sidebar { position: sticky; top: 96px; }
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}
.widget-title {
  font-family: var(--font-ui); font-size: .82rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  margin-bottom: 1.2rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.widget-title::before {
  content: ''; display: block; width: 3px; height: 14px;
  background: var(--fox-gradient); border-radius: 2px;
}

.pop-post-item {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.pop-post-item:last-child { border-bottom: none; }

.pop-post-header {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.pop-post-icon-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: .1rem;
}
.pop-post-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.pop-post-icon svg { display: block; }
.pop-post-num {
  position: absolute;
  top: -4px; right: -5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .5rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
  line-height: 1;
}
.pop-post-title-link {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  display: block;
  color: var(--text-main);
  transition: color .2s;
}
.pop-post-title-link:hover { color: var(--accent); }
.pop-post-date {
  font-size: .7rem;
  font-family: var(--font-ui);
  color: var(--text-muted);
  padding-right: 1.6rem;
}

[data-theme="dark"] .pop-post-item        { border-bottom-color: rgba(255,255,255,.07); }
[data-theme="dark"] .pop-post-title-link  { color: #e2e8f0; }
[data-theme="dark"] .pop-post-title-link:hover { color: #FF6B35; }
[data-theme="dark"] .pop-post-date        { color: #64748b; }
.post-item { display: flex; gap: .9rem; align-items: flex-start; }
.post-item-thumb {
  width: 70px; height: 70px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.post-item-title {
  font-size: .88rem; font-weight: 600; line-height: 1.5;
  color: var(--primary); margin-bottom: .3rem;
  transition: color var(--transition);
  text-align: justify;
  display: block;
}
.post-item-title:hover { color: var(--accent); }
.post-item-date { font-size: .75rem; color: var(--text-muted); font-family: var(--font-ui); }

.newsletter-widget {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text-on-dark);
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}
.newsletter-widget::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--fox-gradient);
  opacity: .08;
  pointer-events: none;
}
.newsletter-widget::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fox-gradient);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.newsletter-icon { font-size: 2rem; margin-bottom: .5rem; }
.newsletter-title {
  font-size: 1rem; font-weight: 700; margin-bottom: .35rem;
  color: #fff;
}
.newsletter-desc {
  font-size: .82rem; opacity: .7; margin-bottom: 1.25rem; line-height: 1.5;
  color: var(--text-muted-dark);
}
.newsletter-form { display: flex; flex-direction: column; gap: .6rem; }
.newsletter-form input {
  width: 100%; padding: .65rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--dark-border); font-family: var(--font-body); font-size: .9rem;
  outline: none; background: rgba(255,255,255,.07); color: #fff;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: .65rem; border-radius: var(--radius-sm);
  background: var(--fox-gradient); color: #fff;
  font-weight: 700; font-family: var(--font-ui); font-size: .9rem;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-accent);
}
.newsletter-form button:hover { opacity: .85; }

.cat-list { display: flex; flex-direction: column; gap: .5rem; }
.cat-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; padding: .4rem .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.cat-item:hover { background: var(--surface-2); }
.cat-item a { color: var(--text-main); transition: color var(--transition); text-align: justify; }
.cat-item:hover a { color: var(--accent); }
.cat-count {
  background: var(--surface-3); color: var(--text-muted);
  font-size: .75rem; font-weight: 600; font-family: var(--font-ui);
  padding: .15rem .55rem; border-radius: 999px;
}

.ad-widget {
  background: var(--surface-2); border: 1px dashed var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  text-align: center; color: var(--text-muted);
  font-size: .8rem; font-family: var(--font-ui);
}

.related-posts {
  background: var(--dark-surface-2);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 0;
  margin-top: 0;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem;
}
.section-title {
  font-size: 1.45rem; font-weight: 800;
  color: var(--text-on-dark);
}
.section-link {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600;
  color: var(--accent); display: flex; align-items: center; gap: .35rem;
}

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.post-card {
  background: var(--surface); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: 0 8px 32px rgba(255,107,53,.2); transform: translateY(-5px); }

.post-card-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-surface-2), var(--dark-surface-3));
  font-size: 3rem;
}

.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 700;
  background: var(--fox-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .5rem;
}
.post-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.45;
  color: var(--primary); margin-bottom: .75rem;
  transition: color var(--transition);
  text-align: justify;
  flex: 1;
}
.post-card:hover .post-card-title { color: var(--accent); }
.post-card-meta {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--font-ui); font-size: .78rem; color: var(--text-muted);
  margin-top: auto;
}

.archive #main-content.container,
.category #main-content.container,
.blog #main-content.container,
.search #main-content.container {
  background: #0a0a0f !important;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

body.archive,
body.category,
body.blog,
body.search { background: #0a0a0f !important; }

.cryptalin-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  font-family: var(--font-ui);
}

.page-numbers-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pag-item a,
.pag-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  border: 1px solid var(--dark-border);
  color: var(--text-on-dark);
  background: var(--dark-surface-2);
  text-decoration: none;
  cursor: pointer;
}

.pag-item:not(.pag-current):not(.pag-dots) a:hover {
  background: var(--fox-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.pag-item.pag-current span {
  background: var(--fox-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.pag-item.pag-dots span {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted-dark);
  cursor: default;
  min-width: 24px;
}

.pag-item.pag-arrow a {
  font-size: 1rem;
  min-width: 42px;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2rem;
  font-family: var(--font-ui);
  list-style: none;
  padding: 0;
}
.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .7rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--dark-border);
  color: var(--text-on-dark);
  background: var(--dark-surface-2);
  text-decoration: none;
  transition: all var(--transition);
}
.page-numbers a:hover { background: var(--fox-gradient); border-color:transparent; color:#fff; }
.page-numbers .current { background: var(--fox-gradient); border-color:transparent; color:#fff; }
.page-numbers .dots { background:transparent; border-color:transparent; color:var(--text-muted-dark); }

.comments-pagination .page-numbers,
.comment-navigation .nav-links {
  justify-content: center;
}

.comments-section {
  padding: 3.5rem 0 0;
  background: var(--surface);
}
#comments-wrap {
  background: var(--surface);
}
.comments-title { margin-bottom: 2rem; font-size: 1.45rem; text-align: justify; }

.comment {
  display: flex; gap: 1rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.comment-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.comment-author-name { font-weight: 700; font-size: .9rem; margin-bottom: .15rem; }
.comment-date { font-size: .78rem; color: var(--text-muted); font-family: var(--font-ui); }
.comment-text { font-size: .92rem; color: var(--text-main); margin-top: .6rem; line-height: 1.7; text-align: justify; }
.comment-reply {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  margin-top: .5rem; transition: opacity var(--transition);
}
.comment-reply:hover { opacity: .7; }

.comment-form-wrap {
  background: var(--surface-2); border-radius: var(--radius-lg);
  padding: 2rem; margin-top: 2.5rem;
  border: 1px solid var(--border);
}
.comment-form-title { font-size: 1.2rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: span 2; }
.form-label { font-family: var(--font-ui); font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-input, .form-textarea {
  padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .95rem; background: var(--surface); outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 130px; resize: vertical; }
.submit-btn {
  padding: .8rem 2rem; background: var(--fox-gradient); color: #fff;
  border-radius: var(--radius-sm); font-family: var(--font-ui);
  font-weight: 700; font-size: .95rem;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-accent);
}
.submit-btn:hover { opacity: .85; }

.site-footer {
  background: var(--dark-surface); color: var(--text-muted-dark);
  padding: 4rem 0 0;
  border-top: 1px solid var(--dark-border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .site-title { color: #fff; font-size: 1.4rem; }
.footer-brand .site-description { color: var(--text-muted-dark); margin-top: .25rem; }
.footer-about { font-size: .88rem; line-height: 1.75; margin-top: 1rem; opacity: .7; text-align: justify; }
.footer-widget-title {
  color: #fff; font-family: var(--font-ui); font-size: .82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--dark-border);
  position: relative;
}
.footer-widget-title::after {
  content: '';
  position: absolute; bottom: -1px; right: 0;
  width: 40px; height: 1px;
  background: var(--fox-gradient);
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  color: var(--text-muted-dark); font-size: .88rem;
  transition: color var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .2rem 0;
}
.footer-links a:hover { color: var(--accent); }

.footer-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,107,53,.15);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-ui);
  flex-shrink: 0;
}

.footer-network-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}
.footer-network-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-muted-dark);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .25rem .7rem;
  transition: all var(--transition);
  text-decoration: none;
}
.footer-network-links a:hover {
  background: rgba(255,107,53,.12);
  border-color: rgba(255,107,53,.25);
  color: var(--accent);
}
.footer-social { display: flex; gap: .65rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: var(--text-muted-dark);
  transition: background var(--transition), color var(--transition);
  border: 1px solid var(--dark-border);
}
.footer-social a:hover { background: var(--fox-gradient); color: #fff; border-color: transparent; }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .75rem; font-size: .8rem; opacity: .5;
  border-top: 1px solid var(--dark-border);
}

.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 400;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fox-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease forwards; }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .primary-nav.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 490;
    background: var(--dark-surface); padding: 5rem 1.5rem 2rem;
    gap: .5rem;
  }
  .primary-nav.mobile-open a {
    padding: .85rem 1rem; font-size: 1.05rem;
    border-radius: var(--radius-md);
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-on-dark);
  }

  .hero-visual { min-height: 240px; }
  .hero-title-wrap { padding-bottom: 1.25rem; }
  .article-title, .hero-title { font-size: 1.4rem; }
  .article-excerpt, .hero-excerpt { font-size: .9rem; }

  .article-byline { gap: .75rem; padding: .75rem 0; }
  .byline-info { width: 100%; gap: .6rem; }
  .byline-item { font-size: .75rem; }

  .article-layout { padding: 1.25rem 1rem 3rem; gap: 1.5rem; }

  .comment { gap: .65rem; padding: 1rem 0; }
  .comment-avatar { width: 36px; height: 36px; }
  .comment-form-wrap { padding: 1.25rem 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .comments-title { font-size: 1.2rem; margin-bottom: 1.25rem; }

  .author-box { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
  .author-social { justify-content: center; }
  .author-box-bio { text-align: center; }

  .share-buttons { flex-wrap: wrap; gap: .5rem; }
  .share-btn { font-size: .8rem; padding: .45rem .85rem; }

  .rating-feedback { flex-wrap: wrap; }

  .spn-inner { grid-template-columns: 1fr; }
  .spn-empty { display: none; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-network-links { gap: .3rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-social { flex-wrap: wrap; }

  .pag-item a, .pag-item span,
  .page-numbers a,
  .page-numbers span { min-width: 36px; height: 36px; font-size: .82rem; padding: 0 .5rem; }

  .back-to-top { bottom: 1.25rem; left: 1.25rem; width: 40px; height: 40px; }

  #bmGrid > div:first-child { flex-direction: column; align-items: flex-start; }

  .nl-popup { padding: 1.25rem; }
  .nl-popup-form { flex-direction: column; }

  .resume-banner { flex-wrap: wrap; justify-content: center; text-align: center; white-space: normal; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .article-layout { padding: 1rem .75rem 2.5rem; }

  .hero-visual { min-height: 200px; }
  .article-title, .hero-title { font-size: 1.2rem; }
  .hero-meta-bar { padding-top: 1rem; padding-bottom: .5rem; }

  .breadcrumb { font-size: .75rem; }

  .tag-link { font-size: .72rem; padding: .25rem .65rem; }

  .share-btn { flex: 1 1 calc(50% - .25rem); justify-content: center; }

  .rating-star { font-size: 1.75rem; }

  .author-box { padding: 1rem; gap: 1rem; }
  .author-box-avatar { width: 64px; height: 64px; }

  .comment-form-wrap { padding: 1rem .75rem; }

  .footer-social a { width: 34px; height: 34px; }
  .footer-bottom { font-size: .72rem; }

  .page-numbers-list { gap: .25rem; }
  .pag-item a, .pag-item span { min-width: 32px; height: 32px; font-size: .78rem; }

  .post-card-body { padding: 1rem; }
  .post-card-title { font-size: .92rem; }
}

@media print {
  .site-topbar, .site-header, .article-sidebar,
  .related-posts, .comments-section, .site-footer,
  .reading-progress, .back-to-top, .share-section,
  .breadcrumb-wrap { display: none !important; }

  body { font-size: 12pt; color: #000; background: #fff; }
  .article-layout { display: block; padding: 0; background: #fff; }
  a { text-decoration: underline; color: #000; }
  h1, h2, h3 { page-break-after: avoid; }
  img { max-width: 100%; page-break-inside: avoid; }
}

.live-search-wrap { position: relative; }
.live-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--dark-surface-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 600;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.live-search-results.open { display: block; }
.ls-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--dark-border);
  text-decoration: none;
  transition: background var(--transition);
  cursor: pointer;
}
.ls-item:last-child { border-bottom: none; }
.ls-item:hover { background: rgba(255,107,53,.08); }
.ls-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--dark-surface-3);
}
.ls-thumb-placeholder {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--dark-surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ls-info { flex: 1; min-width: 0; }
.ls-title {
  font-family: var(--font-ui); font-size: .88rem; font-weight: 600;
  color: var(--text-on-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.ls-title mark {
  background: rgba(255,107,53,.3);
  color: var(--accent);
  border-radius: 2px;
  padding: 0 2px;
}
.ls-meta {
  font-size: .73rem; color: var(--text-muted-dark);
  font-family: var(--font-ui);
}
.ls-cat {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  background: var(--fox-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: .5rem;
}
.ls-empty, .ls-loading {
  padding: 1.25rem 1rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--text-muted-dark);
}
.ls-loading::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,107,53,.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-left: .5rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ls-all-link {
  display: block;
  text-align: center;
  padding: .65rem;
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--dark-border);
  transition: background var(--transition);
}
.ls-all-link:hover { background: rgba(255,107,53,.08); }

.resume-banner {
  position: fixed;
  bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--dark-surface-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 450;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  font-family: var(--font-ui); font-size: .85rem;
  color: var(--text-on-dark);
  white-space: nowrap;
  max-width: 90vw;
}
.resume-banner.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.resume-banner strong { color: var(--accent); }
.resume-btn {
  padding: .4rem .9rem;
  background: var(--fox-gradient);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: opacity var(--transition);
  white-space: nowrap;
}
.resume-btn:hover { opacity: .85; }
.resume-close {
  background: none; border: none;
  color: var(--text-muted-dark); font-size: 1rem;
  cursor: pointer; padding: 0 .25rem;
  transition: color var(--transition);
}
.resume-close:hover { color: var(--text-on-dark); }

.bookmark-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem;
  background: var(--surface-2); color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.bookmark-btn:hover { border-color: var(--accent); color: var(--accent); }
.bookmark-btn.bookmarked {
  background: var(--fox-gradient); color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.bookmark-btn svg { transition: transform .2s; }
.bookmark-btn.bookmarked svg { transform: scale(1.15); }

.bookmarks-page { max-width: var(--max-w); margin: 3rem auto; padding: 0 1.5rem; }
.bookmarks-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted-dark); font-family: var(--font-ui);
}
.bookmarks-empty svg { opacity: .3; margin: 0 auto 1rem; display: block; }

.post-card { position: relative; }
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--cat-color, var(--fox-gradient));
  z-index: 1;
}

.cat-color-crypto   { --cat-color: linear-gradient(90deg,#FF6B35,#E8305A); }
.cat-color-ai       { --cat-color: linear-gradient(90deg,#7B2FBE,#38bdf8); }
.cat-color-tech     { --cat-color: linear-gradient(90deg,#0ea5e9,#6366f1); }
.cat-color-business { --cat-color: linear-gradient(90deg,#22c55e,#16a34a); }
.cat-color-finance  { --cat-color: linear-gradient(90deg,#f59e0b,#d97706); }
.cat-color-default  { --cat-color: linear-gradient(90deg,#FF6B35,#E8305A,#7B2FBE); }

.nl-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 800;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.nl-popup-overlay.open { opacity: 1; pointer-events: auto; }
.nl-popup {
  position: fixed;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(30px);
  width: min(460px, 94vw);
  background: var(--dark-surface-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 801;
  opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.nl-popup::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--fox-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.nl-popup-overlay.open + .nl-popup,
.nl-popup.open {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nl-popup-close {
  position: absolute; top: .75rem; left: .75rem;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.07); border: none; border-radius: 50%;
  color: var(--text-muted-dark); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.nl-popup-close:hover { background: rgba(255,107,53,.15); color: var(--accent); }
.nl-popup-icon { font-size: 2rem; margin-bottom: .75rem; }
.nl-popup-title {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  margin-bottom: .4rem;
}
.nl-popup-desc { font-size: .85rem; color: var(--text-muted-dark); margin-bottom: 1rem; line-height: 1.6; }
.nl-popup-form { display: flex; gap: .5rem; }
.nl-popup-form input {
  flex: 1; padding: .65rem .9rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid var(--dark-border); border-radius: var(--radius-sm);
  color: #fff; font-family: var(--font-body); font-size: .9rem;
  outline: none;
}
.nl-popup-form input:focus { border-color: var(--accent); }
.nl-popup-form input::placeholder { color: rgba(255,255,255,.3); }
.nl-popup-form button {
  padding: .65rem 1.1rem;
  background: var(--fox-gradient); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 700;
  font-family: var(--font-ui); font-size: .85rem;
  cursor: pointer; transition: opacity var(--transition);
  white-space: nowrap;
}
.nl-popup-form button:hover { opacity: .85; }
.nl-popup-msg { font-size: .82rem; margin-top: .6rem; border-radius: 6px; padding: .4rem .75rem; display: none; }
@media (max-width: 480px) {
  .nl-popup-form { flex-direction: column; }
}

.article-rating {
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 2rem;
}
.rating-title {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.rating-stars {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: .2rem;
  margin-bottom: .85rem;
  direction: ltr;
}
.rating-star {
  font-size: 2rem;
  cursor: pointer;
  color: #d1d5db;
  transition: color .12s, transform .1s;
  background: none; border: none;
  padding: .05rem .1rem;
  line-height: 1;
  display: inline-block;
}

.rating-stars.hovering .rating-star,
.rating-stars .rating-star.fill {
  color: #f59e0b;
}

.rating-stars.hovering .rating-star.dim,
.rating-stars .rating-star.dim {
  color: #d1d5db;
}

.rating-stars.hovering .rating-star.active-hover {
  transform: scale(1.25);
  color: #fbbf24;
}

.rating-stars.done .rating-star.fill {
  color: #f59e0b;
}
.rating-stars.done .rating-star.dim {
  color: #d1d5db;
}
.rating-feedback { display: flex; justify-content: center; gap: .75rem; margin-bottom: .75rem; }
.rating-thumb {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600;
  cursor: pointer; background: var(--surface);
  transition: all var(--transition); color: var(--text-muted);
}
.rating-thumb:hover.up   { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.07); }
.rating-thumb:hover.down { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.07); }
.rating-thumb.active.up  { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,.1); }
.rating-thumb.active.down{ border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.1); }
.rating-score { font-family: var(--font-ui); font-size: .8rem; color: var(--text-muted); }
.rating-score span { color: var(--accent); font-weight: 700; }
.rating-thanks { font-family: var(--font-ui); font-size: .9rem; color: var(--accent); font-weight: 600; display: none; }

.tag-panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 700;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.tag-panel-overlay.open { opacity: 1; pointer-events: auto; }
.tag-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-surface-2);
  border-top: 1px solid var(--dark-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
  z-index: 701;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  max-height: 70vh; overflow-y: auto;
}
.tag-panel.open { transform: translateY(0); }
.tag-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.tag-panel-title {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 700;
  color: var(--text-on-dark);
}
.tag-panel-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: none;
  color: var(--text-muted-dark); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.tag-panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.tag-panel-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; background: rgba(255,255,255,.04);
  border: 1px solid var(--dark-border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-on-dark);
  transition: background var(--transition), border-color var(--transition);
}
.tag-panel-item:hover { background: rgba(255,107,53,.08); border-color: rgba(255,107,53,.25); }
.tag-panel-thumb {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--dark-surface-3);
}
.tag-panel-item-title { font-size: .83rem; font-weight: 600; line-height: 1.4; }
.tag-panel-item-date { font-size: .72rem; color: var(--text-muted-dark); margin-top: .2rem; }
.tag-panel-loading { text-align: center; padding: 2rem; color: var(--text-muted-dark); font-family: var(--font-ui); }

#bmList .post-card-thumb {
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
}
#bmList .bm-remove-btn:hover {
  color: #ef4444 !important;
}

.cryptalin-ad-wrap {
  position: relative;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,107,53,.2);
  background: rgba(255,107,53,.03);
}

.ad-label-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  background: rgba(10,10,15,.82);
  color: rgba(255,255,255,.7);
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  letter-spacing: .05em;
  border: 1px solid rgba(255,107,53,.25);
  pointer-events: none;
}

.ad-grid {
  display: grid;
  gap: 4px;
}
.ad-cols-1 { grid-template-columns: 1fr; }
.ad-cols-2 { grid-template-columns: 1fr 1fr; }
.ad-cols-4 { grid-template-columns: repeat(4, 1fr); }

.ad-item {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/6;   
}
.ad-cols-2 .ad-item  { aspect-ratio: 4/3; }
.ad-cols-4 .ad-item  { aspect-ratio: 1/1; }

.ad-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s;
  display: block;
}
.ad-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.ad-placeholder {
  background: linear-gradient(135deg, var(--dark-surface-2), var(--dark-surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-dark);
  font-family: var(--font-ui);
  font-size: .85rem;
  gap: .4rem;
  min-height: 120px;
}

.cryptalin-ad-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B35, #E8305A, #7B2FBE);
  opacity: .5;
}

.cryptalin-ad-wrap:hover {
  border-color: rgba(255,107,53,.45);
  box-shadow: 0 4px 20px rgba(255,107,53,.1);
}

@media (max-width: 640px) {
  .ad-cols-4 { grid-template-columns: 1fr 1fr; }
  .ad-cols-2 .ad-item { aspect-ratio: 16/9; }
}
@media (max-width: 420px) {
  .ad-cols-4 { grid-template-columns: 1fr 1fr; }
  .ad-cols-4 .ad-item { aspect-ratio: 4/3; }
}