/* Ek stiller — formlar, detay sayfaları, panel */

.site-main {
  min-height: 60vh;
}

.flash {
  padding: 12px 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.flash-success {
  background: rgba(0, 166, 81, 0.15);
  color: #00a651;
}

.flash-error {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.featured h1 a,
.hero-side-card h3 a,
.article-body h3 a {
  color: inherit;
  text-decoration: none;
}

.featured h1 a:hover,
.hero-side-card h3 a:hover,
.article-body h3 a:hover {
  text-decoration: underline;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-list-item {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cat-list-item:hover,
.cat-list-item.active {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 32, 91, 0.15);
}

/* Article page — kurumsal */
.read-progress {
  position: fixed;
  top: var(--site-top-h);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 150;
}

.read-progress-bar {
  height: 100%;
  width: 0;
  background: var(--navy-mid);
  transition: width 0.1s linear;
}

.article-page {
  padding-bottom: 48px;
}

.article-page--corp {
  --article-read: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --article-text: 21px;
  --article-lead: 24px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.article-header {
  margin-bottom: 22px;
  padding-bottom: 0;
  border-bottom: none;
}

.article-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.article-kicker:hover {
  background: var(--navy-mid);
  color: #fff;
}

.article-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 20px;
  text-wrap: balance;
}

[data-theme="dark"] .article-title {
  color: #fff;
}

.article-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-meta-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}

.article-byline-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.article-byline-author:hover {
  color: var(--navy-mid);
}

.article-byline-author .author-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.68rem;
  background: var(--navy);
}

.article-byline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.article-byline-meta li + li::before {
  content: "·";
  margin: 0 10px;
  opacity: 0.55;
  font-weight: 400;
}

.article-cover {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-2);
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
}

.article-meta-dot::before {
  content: "·";
  margin-right: 16px;
  opacity: 0.5;
}

.article-meta-dot:first-of-type::before {
  content: none;
  margin: 0;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 2;
  margin-top: 24px;
}

.article-main {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 32px 32px;
}

.article-body {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.article-font-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex-shrink: 0;
}

.article-font-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.article-font-btn:last-child {
  border-right: none;
}

.article-font-btn:hover {
  background: var(--surface);
  color: var(--navy);
}

.article-font-btn-reset {
  font-size: 0.78rem;
}

.breadcrumb a:hover {
  color: var(--navy-mid);
}

.article-section-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

[data-theme="dark"] .article-section-title {
  color: #fff;
  border-bottom-color: var(--green);
}

.article-page--corp .article-lead,
.article-page--corp .article-content,
.article-page--corp .article-content p,
.article-page--corp .article-content li,
.article-page--corp .article-content blockquote,
.article-page--corp .article-content td,
.article-page--corp .article-content th {
  font-family: var(--article-read);
}

.article-page--corp .article-content p,
.article-page--corp .article-content li {
  font-size: inherit;
  line-height: inherit;
}

.article-lead {
  font-size: var(--article-lead);
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 32px;
  padding: 0 0 0 18px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  border-left: 3px solid var(--navy-mid);
}

.article-content {
  font-size: var(--article-text);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: #1e2d45;
  padding: 0;
  max-width: none;
  text-align: justify;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1;
  hyphens: auto;
  -webkit-hyphens: auto;
}

[data-theme="dark"] .article-content {
  color: var(--text);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--article-read);
  color: var(--navy);
  letter-spacing: 0.012em;
}

.article-content h2 {
  font-size: 1.35em;
  font-weight: 700;
  margin: 1.6em 0 0.65em;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.2em;
  font-weight: 500;
  margin: 1.35em 0 0.55em;
  line-height: 1.35;
}

.article-content h4 {
  font-size: 1.08em;
  font-weight: 500;
  margin: 1.15em 0 0.45em;
  line-height: 1.38;
}

[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3 {
  color: #fff;
}

.article-content p {
  margin-bottom: 1.2em;
  text-align: justify;
}

.article-content[data-font-step="0"] { --article-text: 19px; font-size: 19px; }
.article-content[data-font-step="1"] { --article-text: 21px; font-size: 21px; }
.article-content[data-font-step="2"] { --article-text: 23px; font-size: 23px; }
.article-content[data-font-step="3"] { --article-text: 25px; font-size: 25px; }
.article-content[data-font-step="4"] { --article-text: 27px; font-size: 27px; }

.article-content ul,
.article-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 0.45em;
}

.article-content a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--green);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  margin: 1.5em 0;
  border: 1px solid var(--line);
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--navy-mid);
  background: var(--surface-2);
  border-radius: 0;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.article-content strong {
  font-weight: 600;
}

.article-suggested {
  margin: 36px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.article-suggested-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-suggested-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.article-suggested-card:hover {
  border-color: var(--navy-mid);
  background: var(--surface-2);
}

.article-suggested-card img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}

.article-suggested-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-suggested-cat {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.article-suggested-body strong {
  font-family: var(--font);
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 32px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.article-share-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.share-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 0;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.share-btn:hover {
  border-color: var(--navy-mid);
  color: var(--navy);
  background: var(--surface-2);
}

.share-wa:hover { border-color: #25d366; color: #25d366; }
.share-x:hover { border-color: #14171a; color: #14171a; }
.share-fb:hover { border-color: #1877f2; color: #1877f2; }
.share-li:hover { border-color: #0a66c2; color: #0a66c2; }

.share-copy.copied {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.share-print:hover {
  border-color: var(--muted);
  color: var(--navy);
}

.article-print-header {
  display: none;
}

@media print {
  @page {
    margin: 1.8cm 2cm;
  }

  body {
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  .site-top,
  .header,
  .footer,
  .footer-bist-fixed,
  .footer-bist-spacer,
  .flash,
  .cookie-banner,
  .search-overlay,
  .ticker,
  .read-progress,
  .article-sidebar,
  .article-cover,
  .article-share-bar,
  .article-font-toolbar,
  .article-suggested,
  .comments-section,
  .ad-banner,
  .breadcrumb,
  .article-breadcrumb,
  .article-kicker,
  .article-meta-strip,
  .article-lead {
    display: none !important;
  }

  .article-print-header {
    display: block !important;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid #ccc;
  }

  .article-print-header .site-logo--dark {
    display: none !important;
  }

  .article-print-header .site-logo--light {
    display: block !important;
    height: 44px;
    width: auto;
    max-width: 220px;
  }

  .article-page,
  .article-layout,
  .article-main,
  .article-header,
  .article-body {
    display: block !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .article-main {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .article-header {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: none !important;
  }

  .article-body {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .article-title {
    font-size: 20pt !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #000 !important;
    margin: 0 0 16px !important;
  }

  .article-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: "Open Sans", system-ui, sans-serif !important;
    font-size: 12pt !important;
    line-height: 1.65 !important;
    color: #000 !important;
    text-align: left !important;
  }

  .article-content h2,
  .article-content h3 {
    color: #000 !important;
    page-break-after: avoid;
  }

  .article-content p,
  .article-content li {
    orphans: 3;
    widows: 3;
  }

  .article-content img,
  .article-content iframe,
  .article-content video {
    display: none !important;
  }

  .article-content a {
    color: #000 !important;
    text-decoration: none !important;
  }
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-layout {
    margin-top: 12px;
  }

  .article-main {
    padding: 20px 18px 24px;
  }

  .article-header {
    margin-bottom: 16px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-byline-meta li + li::before {
    margin: 0 8px;
  }

  .article-cover {
    margin-bottom: 20px;
  }

  .article-cover img {
    max-height: 240px;
  }

  .article-body {
    padding-top: 20px;
  }

  .article-page--corp {
    --article-text: 19px;
    --article-lead: 22px;
  }

  .article-lead {
    margin-bottom: 24px;
  }

  .article-content[data-font-step="0"] { font-size: 17px; }
  .article-content[data-font-step="1"] { font-size: 19px; }
  .article-content[data-font-step="2"] { font-size: 21px; }
  .article-content[data-font-step="3"] { font-size: 23px; }
  .article-content[data-font-step="4"] { font-size: 25px; }

  .article-suggested {
    margin-top: 28px;
    padding-top: 22px;
  }

  .article-suggested-grid {
    grid-template-columns: 1fr;
  }

  .article-share-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .share-btn span {
    display: none;
  }

  .share-btn {
    padding: 9px 12px;
  }
}

.sidebar-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.sidebar-link:last-child {
  border-bottom: none;
}

.sidebar-link strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar-link span {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Sidebar modern */
.sidebar-article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-article:last-child {
  border-bottom: none;
}

.sidebar-article img {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-article strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-article span {
  font-size: 0.72rem;
  color: var(--muted);
}

.sidebar-rank {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-rank:last-child {
  border-bottom: none;
}

.sidebar-rank-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-rank strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-rank span {
  font-size: 0.72rem;
  color: var(--muted);
}

.widget-modern,
.widget-corp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 20px;
}

.article-sidebar-corp .sidebar-article img,
.article-sidebar-corp .sidebar-rank-num {
  border-radius: 0;
}

.article-sidebar-corp .sidebar-rank-num {
  background: var(--navy-deep);
}

.article-sidebar-corp .widget,
.article-sidebar-corp .widget-fx-gold {
  border-radius: 0;
  box-shadow: none;
}

.article-sidebar-corp .fx-gold-switch {
  border-radius: 0;
}

.article-sidebar-corp .fx-gold-switch-btn {
  border-radius: 0;
}

/* Comments */
.comments-section {
  margin-top: 32px;
}

.comments-modern,
.comments-corp {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 0 0;
  box-shadow: none;
}

.comments-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.comments-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.comment-form-modern textarea,
.comment-form-corp textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-2);
  margin: 12px 0 14px;
  resize: vertical;
}

.comment-form-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
}

.comment-login-box {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  margin-bottom: 20px;
}

.comment-item-modern,
.comment-item-corp {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comment-item-modern:last-child,
.comment-item-corp:last-child {
  border-bottom: none;
}

.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.comment-author strong {
  font-size: 0.88rem;
}

.comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.comment-top strong {
  font-size: 0.88rem;
}

.comment-top span {
  font-size: 0.72rem;
  color: var(--muted);
}

.comments-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  margin-bottom: 12px;
  outline: none;
}

.comment-form textarea:focus {
  border-color: var(--green);
}

.comment-login-prompt {
  padding: 16px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.comment-login-prompt a {
  color: var(--green);
  font-weight: 700;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.comment-author {
  font-weight: 700;
  font-size: 0.88rem;
}

.comment-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.no-comments {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Döviz & Altın özel şablon */
.fx-page {
  padding-bottom: 32px;
}

.fx-hero {
  background: linear-gradient(135deg, #00102a 0%, #00205b 50%, #003080 100%);
  color: #fff;
  padding: 48px 0;
  margin-bottom: 32px;
  overflow: hidden;
}

.fx-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.fx-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 166, 81, 0.2);
  color: #4ade80;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.fx-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.fx-hero-text p {
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 24px;
}

.fx-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fx-stat {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  min-width: 130px;
}

.fx-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}

.fx-stat span {
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 600;
}

.fx-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.fx-hero-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(251, 191, 36, 0.3);
  animation: fx-spin 12s linear infinite;
}

.fx-hero-coin {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #001540;
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.35);
}

@keyframes fx-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fx-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding-bottom: 48px;
}

.fx-article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fx-article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.fx-article-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.fx-article-body {
  padding: 20px 20px 20px 0;
}

.fx-article-body time {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.fx-article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.4;
}

.fx-article-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.fx-sidebar-note {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
}

.fx-sidebar-note h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.fx-sidebar-note p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .fx-hero-inner,
  .fx-content {
    grid-template-columns: 1fr;
  }

  .fx-hero-visual {
    display: none;
  }

  .fx-article-card {
    grid-template-columns: 1fr;
  }

  .fx-article-body {
    padding: 0 20px 20px;
  }
}

/* Gold panel */
.gold-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.gold-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gold-panel-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.gold-panel-head p {
  font-size: 0.8rem;
  color: var(--muted);
}

.gold-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.gold-quotes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.gold-quote-card {
  padding: 18px;
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: 14px;
}

.gold-quote-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gold-quote-price {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.gold-quote-change {
  font-size: 0.74rem;
  font-weight: 700;
}

.gold-quote-change.up { color: #4ade80; }
.gold-quote-change.down { color: #f87171; }

.gold-products h3,
.gold-calculator h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.gold-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.gold-product-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.gold-product-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.gold-product-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.gold-product-price {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.gold-product-gram {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.gold-calculator {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.gold-calc-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.gold-calc-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.gold-calc-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.gold-calc-field input,
.gold-calc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

.gold-calc-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.gold-calc-result-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.gold-calc-result-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gold-calc-result-item strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.gold-calc-result-main {
  background: var(--green-soft);
  border-color: var(--green);
}

.gold-calc-result-main strong {
  font-size: 1.4rem;
  color: var(--green);
}

.gold-calc-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .gold-quotes-grid,
  .gold-products-grid,
  .gold-calc-form,
  .gold-calc-result {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gold-quotes-grid,
  .gold-products-grid,
  .gold-calc-form,
  .gold-calc-result {
    grid-template-columns: 1fr;
  }

  .gold-panel-head {
    flex-direction: column;
  }
}

/* Category header */
.category-header {
  padding: 40px 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.category-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

[data-theme="dark"] .category-header h1 {
  color: #fff;
}

.category-header p {
  color: var(--muted);
  max-width: 600px;
}

/* Page hero */
.page-hero {
  padding: 40px 0;
  background: var(--navy);
  color: #fff;
  margin-bottom: 32px;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  opacity: 0.8;
}

.page-content {
  padding-bottom: 48px;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

[data-theme="dark"] .form-group label {
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Auth */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
  min-height: 60vh;
}

.auth-page--modern {
  padding: 40px 16px 72px;
  min-height: 70vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(880px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-panel {
  padding: 40px 36px;
}

.auth-panel--login {
  border-right: 1px solid var(--line);
}

.auth-panel-head h1 {
  font-size: 1.65rem;
  font-weight: var(--heading-weight, 800);
  color: var(--navy);
  margin-bottom: 8px;
}

[data-theme="dark"] .auth-panel-head h1 {
  color: #fff;
}

.auth-panel--signup {
  background: linear-gradient(145deg, var(--navy) 0%, #003080 55%, rgba(0, 166, 81, 0.35) 100%);
  color: #fff;
  display: flex;
  align-items: center;
}

.auth-signup-inner {
  width: 100%;
}

.auth-signup-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.auth-panel--signup h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}

.auth-panel--signup p {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.55;
  margin-bottom: 18px;
}

.auth-signup-btn {
  background: #fff !important;
  color: var(--navy) !important;
  border-color: transparent !important;
  font-weight: 800;
}

.auth-signup-btn:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--navy) !important;
}

@media (max-width: 768px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel--login {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .auth-panel {
    padding: 28px 22px;
  }
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

[data-theme="dark"] .auth-card h1 {
  color: #fff;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--green);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}

.info-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 8px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

/* Profile panel */
.profile-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 32px;
}

.profile-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.35);
}

.profile-hero-info {
  flex: 1;
  min-width: 200px;
}

.profile-hero-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-hero-info > p {
  opacity: 0.8;
  margin-bottom: 12px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-badge {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-badge.muted {
  opacity: 0.75;
}

.profile-name-row,
.author-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-stats {
  display: flex;
  gap: 12px;
}

.profile-stat {
  min-width: 80px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-light);
}

.profile-stat span {
  font-size: 0.72rem;
  opacity: 0.75;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-bottom: 48px;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.profile-card-head {
  margin-bottom: 24px;
}

.profile-card-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.profile-card-head p {
  font-size: 0.84rem;
  color: var(--muted);
}

.profile-divider {
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.profile-divider h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-divider p {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-empty {
  text-align: center;
  padding: 40px 20px;
}

.profile-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.profile-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-comment-card {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.profile-comment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-comment-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--navy);
}

.profile-comment-title:hover {
  color: var(--green);
}

.profile-comment-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.profile-comment-card time {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.comment-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.comment-badge.status-approved {
  background: var(--green-soft);
  color: var(--green);
}

.comment-badge.status-pending {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.comment-badge.status-rejected {
  background: var(--red-soft);
  color: var(--red);
}

.status-approved { color: var(--green); }
.status-pending { color: #d97706; }
.status-rejected { color: var(--red); }

.empty-state {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

/* Error */
.error-page {
  text-align: center;
  padding: 80px 16px;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--navy);
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .article-layout,
  .contact-grid,
  .profile-layout,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    width: 100%;
    justify-content: stretch;
  }

  .profile-stat {
    flex: 1;
  }
}

/* Kripto özel şablon */
.crypto-page {
  padding-bottom: 32px;
}

.crypto-hero {
  background: linear-gradient(135deg, #0a0618 0%, #1a0f3c 45%, #2d1b69 100%);
  color: #fff;
  padding: 48px 0;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.crypto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.15), transparent 45%);
  pointer-events: none;
}

.crypto-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.crypto-hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.crypto-currency-toggle--hero {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.crypto-currency-toggle--hero button {
  color: rgba(255, 255, 255, 0.72);
}

.crypto-currency-toggle--hero button.is-active {
  background: #8b5cf6;
  color: #fff;
}

.crypto-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.crypto-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.7);
  animation: pulse-dot 1.5s ease infinite;
}

.crypto-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.crypto-hero-text p {
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 24px;
}

.crypto-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.crypto-stat {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  min-width: 150px;
}

.crypto-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}

.crypto-stat span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 600;
}

.crypto-stat-change {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
  font-style: normal;
}

.crypto-stat-change.up { color: #4ade80; }
.crypto-stat-change.down { color: #f87171; }

.crypto-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.crypto-hero-orbit {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(167, 139, 250, 0.35);
  animation: fx-spin 14s linear infinite;
}

.crypto-hero-coin {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a0f3c;
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.35);
}

.crypto-panel {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.crypto-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.crypto-panel-head h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

[data-theme="dark"] .crypto-panel-head h2 {
  color: #fff;
}

.crypto-panel-updated {
  font-size: 0.72rem;
  color: var(--muted);
}

.crypto-global-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.crypto-global-stat {
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.crypto-global-stat span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.crypto-global-stat strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
}

[data-theme="dark"] .crypto-global-stat strong {
  color: #fff;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.crypto-card {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.crypto-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
}

.crypto-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.crypto-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.crypto-card-symbol {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
}

.crypto-card-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.crypto-card-ticker {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.crypto-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

[data-theme="dark"] .crypto-card-price {
  color: #fff;
}

.crypto-card-change {
  font-size: 0.72rem;
  font-weight: 700;
}

.crypto-card-change.up { color: var(--green); }
.crypto-card-change.down { color: var(--red); }

.crypto-new-section {
  padding: 8px 0 32px;
}

.crypto-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.crypto-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.crypto-currency-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 2px;
}

.crypto-currency-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.crypto-currency-toggle button.is-active {
  background: #8b5cf6;
  color: #fff;
}

.crypto-live-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.crypto-section-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.crypto-section-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

[data-theme="dark"] .crypto-section-head h2 {
  color: #fff;
}

.crypto-section-head p {
  font-size: 0.84rem;
  color: var(--muted);
}

.crypto-new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.crypto-new-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.crypto-new-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
}

.crypto-new-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}

.crypto-new-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crypto-new-fallback {
  font-size: 0.82rem;
  font-weight: 800;
  color: #8b5cf6;
}

.crypto-new-symbol {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #8b5cf6;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.crypto-new-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.crypto-new-body p {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.crypto-new-price {
  font-size: 0.92rem !important;
  font-weight: 800;
  color: var(--navy) !important;
  margin-bottom: 6px;
}

[data-theme="dark"] .crypto-new-price {
  color: #fff !important;
}

.crypto-new-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.crypto-new-change {
  font-size: 0.74rem;
  font-weight: 800;
}

.crypto-new-change.up { color: var(--green); }
.crypto-new-change.down { color: var(--red); }

.crypto-new-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crypto-new-rank {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.crypto-new-card--live {
  border-color: rgba(139, 92, 246, 0.25);
}

.crypto-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.crypto-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding-bottom: 48px;
}

.crypto-featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.crypto-featured-thumb img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.crypto-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crypto-featured-body time {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.crypto-featured-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0 12px;
}

.crypto-featured-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.crypto-article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crypto-article-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.crypto-article-thumb img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.crypto-article-body {
  padding: 16px 16px 16px 0;
}

.crypto-article-body time {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.crypto-article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.4;
}

.crypto-article-body p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.crypto-mover-list {
  list-style: none;
}

.crypto-mover-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.crypto-mover-list li:last-child {
  border-bottom: none;
}

.crypto-mover-name {
  font-weight: 800;
  color: var(--navy);
}

[data-theme="dark"] .crypto-mover-name {
  color: #fff;
}

.crypto-mover-price {
  font-weight: 700;
  text-align: right;
}

.crypto-mover-change {
  font-weight: 700;
  font-size: 0.72rem;
}

.crypto-mover-change.up { color: var(--green); }
.crypto-mover-change.down { color: var(--red); }

.crypto-exchange-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crypto-exchange-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.crypto-exchange-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.crypto-exchange-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 0;
}

.crypto-exchange-logo img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.crypto-exchange-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  color: #8b5cf6;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.crypto-sidebar-note {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
}

.crypto-sidebar-note h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

[data-theme="dark"] .crypto-sidebar-note h4 {
  color: #fff;
}

.crypto-sidebar-note p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .crypto-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .crypto-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .crypto-hero-inner,
  .crypto-content,
  .crypto-featured-article {
    grid-template-columns: 1fr;
  }

  .crypto-hero-visual {
    display: none;
  }

  .crypto-featured-body {
    padding: 20px;
  }

  .crypto-article-card {
    grid-template-columns: 1fr;
  }

  .crypto-article-body {
    padding: 0 16px 16px;
  }
}

@media (max-width: 600px) {
  .crypto-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .crypto-section-actions {
    flex-wrap: wrap;
  }

  .crypto-live-source {
    align-self: flex-start;
  }

  .crypto-grid,
  .crypto-new-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal-page {
  padding: 48px 0 64px;
}

.legal-page-inner {
  max-width: 780px;
}

.legal-page-head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--line);
}

.legal-page-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.legal-page-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-page-head > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-page-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 12px;
}

.legal-page-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 8px;
}

.legal-page-body p,
.legal-page-body li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-page-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-page-body a {
  color: var(--green);
  font-weight: 600;
}

/* Newsletter widget */
.newsletter-widget {
  padding: 20px;
}

.widget-newsletter .newsletter-widget {
  padding: 0;
}

.newsletter-widget-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.newsletter-widget h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.newsletter-widget > p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form-inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
}

.home-newsletter-band .newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-newsletter-band .newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

.newsletter-subscribed-badge {
  padding: 12px 16px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.newsletter-widget-compact {
  padding: 0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}

/* Profile enhancements */
.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar.has-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.profile-avatar.has-image img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-form .profile-avatar-btn {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}

.profile-avatar-form .profile-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.profile-avatar-remove-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.profile-badge.secure {
  background: rgba(59, 130, 246, 0.2);
}

.profile-badge.subscribed {
  background: rgba(0, 166, 81, 0.2);
}

.profile-layout-wide {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.profile-side-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-card-full {
  grid-column: 1 / -1;
}

.profile-subscribe-active,
.profile-2fa-active {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}

.profile-subscribe-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.profile-subscribe-desc,
.profile-2fa-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.profile-2fa-status {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-2fa-setup {
  text-align: center;
}

.profile-2fa-setup > p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.profile-2fa-qr {
  margin-bottom: 12px;
}

.profile-2fa-qr img {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.profile-2fa-secret {
  display: block;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  word-break: break-all;
}

.totp-input {
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-weight: 700;
}

/* Auth extras */
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 12px;
  cursor: pointer;
}

.auth-checkbox input {
  margin-top: 3px;
  accent-color: var(--green);
}

.auth-legal {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-legal a {
  color: var(--green);
  font-weight: 600;
}

.auth-2fa-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Author profile page */
.author-profile-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 48px 0;
  margin-bottom: 36px;
}

.author-profile-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.author-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.author-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 192, 96, 0.2);
  color: var(--green-light);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.author-profile-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.author-profile-info > p {
  opacity: 0.8;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-profile-stats {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 14px;
}

.author-profile-stats strong {
  color: var(--green-light);
}

.author-profile-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.author-profile-social a {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.author-profile-social a:hover {
  background: var(--green);
  border-color: var(--green);
}

.author-articles-section {
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .profile-layout-wide {
    grid-template-columns: 1fr;
  }
}

/* Üye mesajlaşma */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.msg-page-head {
  padding: 28px 0 18px;
}

.msg-page-head h1 {
  margin: 8px 0 6px;
  font-size: 1.65rem;
}

.msg-page-head p {
  margin: 0;
  color: var(--muted);
}

.msg-page-head--compact {
  padding: 16px 0 8px;
}

.msg-back-link {
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.msg-back-link:hover {
  color: var(--green);
}

.msg-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 48px;
  min-height: 520px;
}

.msg-layout--solo .msg-main--empty {
  display: grid;
  place-items: center;
}

.msg-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: calc(var(--site-top-h) + 16px);
}

.msg-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.msg-sidebar-head h2 {
  margin: 0;
  font-size: 1rem;
}

.msg-sidebar-empty {
  padding: 24px 16px;
  text-align: center;
}

.msg-sidebar-empty p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.msg-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 68vh;
  overflow-y: auto;
}

.msg-thread-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.msg-thread-item:hover,
.msg-thread-item.is-active {
  background: var(--surface-2);
}

.msg-thread-item.is-unread strong {
  color: var(--text);
}

.msg-thread-avatar,
.msg-chat-avatar,
.msg-bubble-avatar,
.msg-recipient-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.msg-bubble-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.68rem;
}

.msg-thread-avatar img,
.msg-chat-avatar img,
.msg-bubble-avatar img,
.msg-recipient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-thread-body {
  min-width: 0;
  flex: 1;
}

.msg-thread-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.msg-thread-top strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-thread-top em {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: normal;
  flex-shrink: 0;
}

.msg-thread-preview {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-you {
  color: var(--text);
  font-weight: 600;
}

.msg-thread-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.msg-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.msg-empty-state {
  text-align: center;
  padding: 40px 24px;
  max-width: 360px;
}

.msg-empty-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.msg-empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.msg-empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.msg-chat-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.msg-chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msg-chat-user h1 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-chat-user p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.msg-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--surface-2);
}

.msg-chat-start {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 24px 12px;
}

.msg-bubbles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}

.msg-bubble-row.is-mine {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.msg-bubble-row.is-mine .msg-bubble {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
}

.msg-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-bubble time {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  opacity: 0.72;
}

.msg-compose-form,
.msg-new-form {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.msg-compose-form textarea,
.msg-new-form textarea,
.msg-user-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.msg-compose-form textarea:focus,
.msg-new-form textarea:focus,
.msg-user-search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.msg-compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.msg-compose-hint {
  font-size: 0.74rem;
  color: var(--muted);
}

.msg-compose-page {
  padding-bottom: 48px;
}

.msg-compose-card {
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.msg-recipient-selected {
  margin-bottom: 10px;
}

.msg-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
}

.msg-recipient-clear {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.msg-user-results {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.msg-user-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.msg-user-option:last-child {
  border-bottom: none;
}

.msg-user-option:hover {
  background: var(--surface-2);
}

.msg-user-empty {
  margin: 0;
  padding: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

.author-profile-actions {
  margin-top: 14px;
}

.profile-stat-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.profile-stat-link:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .msg-layout {
    grid-template-columns: 1fr;
  }

  .msg-layout--solo .msg-main--empty {
    display: none;
  }

  .msg-sidebar {
    position: static;
  }

  .msg-main {
    min-height: 460px;
  }
}

/* Header search */
.header-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.header-search-trigger:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.header-search-input {
  width: 140px;
  padding: 6px 10px;
  border: 1px solid var(--border, #dde4ee);
  border-radius: 8px;
  font-size: 0.82rem;
  background: var(--surface, #fff);
  color: var(--text, #1a2b4a);
}

.header-search-form--page {
  margin-top: 16px;
  max-width: 480px;
}

.header-search-form--page .header-search-input {
  flex: 1;
  width: auto;
}

.auth-forgot-link {
  text-align: right;
  margin: -4px 0 12px;
  font-size: 0.85rem;
}

.auth-forgot-link a {
  color: var(--green, #00a651);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 0;
}

.pagination a {
  color: var(--green, #00a651);
  font-weight: 600;
  text-decoration: none;
}

.pagination-info {
  color: var(--muted, #5a6b85);
  font-size: 0.9rem;
}

/* Gold stale state */
.gold-unavailable {
  padding: 32px;
  text-align: center;
  color: var(--muted, #5a6b85);
  background: var(--surface-alt, #f0f3f8);
  border-radius: 12px;
}

.gold-stale-badge {
  color: #d97706;
  font-weight: 700;
  font-size: 0.85rem;
}

.ticker-item-unavailable .ticker-price {
  color: var(--muted, #5a6b85);
  font-style: italic;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: var(--surface);
  animation: searchOverlayFade 0.22s ease;
}

.search-overlay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  padding: max(12vh, 72px) 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: searchOverlaySlide 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay-panel > * {
  width: min(720px, 100%);
}

@keyframes searchOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes searchOverlaySlide {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.search-overlay-close:hover {
  color: var(--navy);
  border-color: var(--green);
  background: var(--green-soft);
}

.search-overlay-eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.search-overlay-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(720px, 100%);
}

.search-overlay-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-overlay-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.12);
}

.search-overlay-field svg {
  flex-shrink: 0;
  color: var(--muted);
}

.search-overlay-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--navy);
  outline: none;
}

.search-overlay-input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.search-overlay-submit {
  align-self: flex-start;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-overlay-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 166, 81, 0.28);
}

.search-overlay-hint {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.search-overlay-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-family: inherit;
}

body.search-open {
  overflow: hidden;
}

[data-theme="dark"] .search-overlay-input {
  color: #fff;
}

[data-theme="dark"] .search-overlay-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .search-overlay-panel {
    padding: 20px 18px 24px;
    animation: searchOverlaySlideMobile 0.24s ease;
  }

  @keyframes searchOverlaySlideMobile {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .search-overlay-submit {
    width: 100%;
    text-align: center;
  }
}