/* TiziLab Hugo Coder Theme Inspired Aesthetic */
:root {
  --bg-color: #ffffff;
  --text-color: #212121;
  --text-muted: #666666;
  --primary-color: #1a73e8;
  --primary-hover: #1557b0;
  --border-color: #e0e0e0;
  --card-bg: #fdfdfd;
  --code-bg: #f5f5f5;
  --badge-bg: #e8f0fe;
  --badge-text: #1967d2;
  --success-color: #0d904f;
  --container-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --text-muted: #9e9e9e;
    --primary-color: #8ab4f8;
    --primary-hover: #aecbfa;
    --border-color: #2d2d2d;
    --card-bg: #1e1e1e;
    --code-bg: #262626;
    --badge-bg: #172b4d;
    --badge-text: #8ab4f8;
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.5);
  }
}

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

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}

code {
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-word;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Site Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  padding-left: 12px;
}

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

.btn-header-cta {
  background: var(--primary-color);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-header-cta:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 14px;
}

/* Nav Bar */
.nav-bar {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  margin: 0 8px;
}

/* Hero Section */
.hero {
  padding: 48px 0 36px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 880px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  background: var(--card-bg);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}

.hero-meta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  margin: 40px 0 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.section-header .section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Provider Cards Grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.provider-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.provider-card.primary-rank-1 {
  border-color: var(--primary-color);
}

.card-rank-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-suitable {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  min-height: 38px;
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.card-traffic {
  font-size: 13px;
  color: var(--text-muted);
}

.card-coupon-box {
  background: var(--code-bg);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coupon-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--success-color);
}

.btn-copy {
  background: none;
  border: 1px solid var(--border-color);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-color);
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn-review {
  flex: 1;
  text-align: center;
  border: 1px solid var(--border-color);
  padding: 8px 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
}

.card-actions .btn-cta {
  flex: 1;
  text-align: center;
  background: var(--primary-color);
  color: #fff !important;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.card-actions .btn-cta:hover {
  text-decoration: none;
  background: var(--primary-hover);
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 36px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

table.comparison-table th, table.comparison-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  vertical-align: middle;
}

table.comparison-table th {
  background: var(--code-bg);
  font-weight: 600;
  white-space: nowrap;
}

table.comparison-table td.cell-desc {
  white-space: nowrap;
}

.table-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-table-review {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-color);
  background: var(--card-bg);
  white-space: nowrap;
  text-decoration: none;
}

.btn-table-review:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
}

.btn-table-site {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-color);
  color: #ffffff !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-table-site:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

.btn-official-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin: 16px 0;
  box-shadow: 0 2px 6px rgba(26,115,232,0.3);
}

.btn-official-site:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

/* Article Cards Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.article-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-card-footer {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Single Article Layout */
.article-layout {
  display: flex;
  gap: 40px;
  padding: 30px 0;
}

.article-main {
  flex: 1;
  max-width: 780px;
}

.article-sidebar {
  width: 280px;
}

.article-content {
  line-height: 1.85;
  font-size: 16px;
}

.article-content h1 {
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 22px;
  margin: 32px 0 16px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.article-content h3 {
  font-size: 18px;
  margin: 24px 0 12px 0;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

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

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--code-bg);
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 0 4px 4px 0;
}

.article-meta-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* TOC Box */
.toc-box {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 28px;
}

.toc-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
}

.toc-list li {
  margin-bottom: 6px;
}

/* FAQ Details */
.faq-accordion {
  margin-bottom: 36px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--card-bg);
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 14px 18px 18px 18px;
  border-top: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}

.page-btn {
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-color);
}

.page-btn.active {
  background: var(--primary-color);
  color: #fff !important;
  border-color: var(--primary-color);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  padding: 48px 0 32px 0;
  margin-top: 60px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-keyword-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-disclosure {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===================================================
   Responsive Mobile Optimization System
   =================================================== */

@media (max-width: 860px) {
  .brand-desc {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 14px;
    background: var(--code-bg);
  }
  .article-layout {
    flex-direction: column;
    gap: 28px;
  }
  .article-main {
    max-width: 100%;
    min-width: 0;
  }
  .article-sidebar {
    width: 100%;
    margin-top: 8px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  /* Header Top & Actions */
  .header-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 10px 0;
  }
  .brand-area {
    flex: 1 1 auto;
  }
  .brand-title {
    font-size: 18px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .btn-header-cta {
    display: none; /* Accessible directly in mobile nav menu */
  }
  .btn-header-tg {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }
  .menu-toggle {
    padding: 6px 12px;
    font-size: 13px;
    height: 36px;
  }

  /* Full-width Touch-Friendly Search on Mobile */
  .header-search-wrapper {
    order: 3;
    width: 100%;
    margin-top: 4px;
  }
  .header-search-input {
    width: 100% !important;
    font-size: 16px; /* 16px prevents iOS Safari automatic page zoom on focus */
    padding: 9px 38px 9px 14px;
    border-radius: 8px;
  }
  .header-search-input:focus {
    width: 100% !important;
  }
  .search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 65vh;
    border-radius: 8px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }

  /* Mobile Nav Menu */
  .nav-bar {
    display: none;
    flex-direction: column;
    padding: 8px 0 16px 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    gap: 0;
  }
  .nav-bar.active {
    display: flex;
  }
  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px dashed var(--border-color);
    display: block;
    width: 100%;
  }
  .nav-link[aria-current="page"]::after {
    display: none;
  }
  .nav-link[aria-current="page"] {
    color: var(--primary-color);
    background: var(--code-bg);
    border-radius: 4px;
    padding-left: 12px;
  }

  /* Hero Section on Mobile */
  .hero {
    padding: 24px 0 20px 0;
  }
  .hero h1 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  .hero-lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 11px 16px;
    font-size: 15px;
    display: block;
  }

  /* Provider Cards & Grids on Mobile */
  .provider-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
  .provider-card {
    padding: 16px;
  }
  .card-name {
    font-size: 18px;
  }
  .card-suitable {
    min-height: auto;
    margin-bottom: 10px;
  }
  .card-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .card-actions a {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Article Grid on Mobile */
  .article-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .article-card {
    padding: 16px;
  }

  /* Responsive Comparison Table */
  .table-responsive {
    position: relative;
    margin-bottom: 24px;
    border-radius: 6px;
    -webkit-overflow-scrolling: touch;
  }
  table.comparison-table {
    font-size: 13px;
  }
  table.comparison-table th, table.comparison-table td {
    padding: 8px 12px;
  }
  .btn-table-review, .btn-table-site {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* Single Article & Review Typography */
  .article-content {
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .article-content h1 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
  }
  .article-content h2 {
    font-size: 18px;
    margin: 24px 0 12px 0;
  }
  .article-content h3 {
    font-size: 16px;
    margin: 18px 0 10px 0;
  }
  .article-meta-header {
    gap: 8px 12px;
    font-size: 12px;
    margin-bottom: 18px;
  }
  .provider-recommend-box {
    padding: 16px 14px;
    margin: 16px 0;
  }
  .provider-box-title {
    font-size: 16px;
  }
  .provider-btn-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .provider-btn-wrap a {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
  .btn-official-site {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 36px 0 24px 0;
    margin-top: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .brand-title {
    font-size: 16px;
  }
  .header-actions {
    gap: 6px;
  }
  .btn-header-tg span {
    display: none; /* Show only TG icon on tiny 320px screens */
  }
  .btn-header-tg {
    padding: 6px 8px;
  }
  .card-actions {
    flex-direction: column;
  }
}

/* Distinct In-Article Provider Recommendation Boxes */
.provider-recommend-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.provider-recommend-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.provider-recommend-box.rank-1 {
  border-left-color: #1a73e8;
}

.provider-recommend-box.rank-2 {
  border-left-color: #0d904f;
}

.provider-recommend-box.rank-3 {
  border-left-color: #e37400;
}

.provider-recommend-box.rank-4 {
  border-left-color: #7b1fa2;
}

.provider-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.provider-box-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 !important;
}

.provider-box-badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.provider-box-content {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 16px;
}

.provider-box-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--code-bg);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}

.provider-btn-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-register-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(26,115,232,0.3);
  transition: background 0.2s, transform 0.1s;
}

.btn-register-action:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Search Bar & Dropdown in Header */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 13px;
  padding: 8px 36px 8px 14px;
  border-radius: 20px;
  width: 220px;
  transition: width 0.3s ease, border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.header-search-input:focus {
  width: 280px;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
  background: var(--card-bg);
}

.search-submit-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.search-submit-btn:hover {
  color: var(--primary-color);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  padding: 8px 0;
}

.search-result-item {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover, .search-result-item.selected {
  background: var(--code-bg);
  text-decoration: none;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-badge {
  font-size: 11px;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: normal;
}

.search-result-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-no-results {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}


/* Telegram Contact Buttons */
.btn-header-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #229ED9;
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-header-tg:hover {
  background: #1a80b0;
  text-decoration: none;
  transform: translateY(-1px);
}

.sidebar-tg-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #229ED9;
  color: #ffffff !important;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(34, 158, 217, 0.25);
  transition: background 0.2s, transform 0.1s;
}

.sidebar-tg-banner:hover {
  background: #1a80b0;
  text-decoration: none;
  transform: translateY(-1px);
}
