﻿@font-face{font-family:"titillium-web";src:url("/assets/forum_ui/af/f10931/00000000000000007735c196/30/l") format("woff2"),url("/assets/forum_ui/af/f10931/00000000000000007735c196/30/d") format("woff"),url("/assets/forum_ui/af/f10931/00000000000000007735c196/30/a") format("opentype");font-display:auto;font-style:normal;font-weight:400;font-stretch:normal}
@font-face{font-family:"titillium-web";src:url("/assets/forum_ui/af/09c670/00000000000000007735c198/30/l") format("woff2"),url("/assets/forum_ui/af/09c670/00000000000000007735c198/30/d") format("woff"),url("/assets/forum_ui/af/09c670/00000000000000007735c198/30/a") format("opentype");font-display:auto;font-style:normal;font-weight:600;font-stretch:normal}
@font-face{font-family:"titillium-web";src:url("/assets/forum_ui/af/21fd37/00000000000000007735c19c/30/l") format("woff2"),url("/assets/forum_ui/af/21fd37/00000000000000007735c19c/30/d") format("woff"),url("/assets/forum_ui/af/21fd37/00000000000000007735c19c/30/a") format("opentype");font-display:auto;font-style:normal;font-weight:700;font-stretch:normal}

/* =============================================================
   COFFEE FORUM - Clorofile Community Forum Layout
   ============================================================= */

/* Forum body font */
body { font-family: "titillium-web", ui-sans-serif, system-ui, sans-serif !important; padding-top: 52px; }

/* Color tokens */
:root {
  --color-primary:   #ed1c24;   /* we use coffee brand color */
  --cf-primary:      #0082C6;   /* blue accent in nav */
  --cf-brand:        #0082C6;
  --cf-bg:           #f5f5f5;   /* page bg */
  --cf-white:        #ffffff;
  --cf-border:       #e5e7eb;   /* border/divider */
  --cf-text-primary: #202020;
  --cf-text-secondary:#6b7280;
  --cf-text-tertiary: #9ca3af;
  --cf-surface-secondary:#f3f4f6;
  --cf-surface-tertiary: #e9edf2;
  /* Coffee brand colors */
  --coffee:          #FA6430;
  --coffee-dark:     #c94f18;
  --cf-topbar-height: 52px;
}

/* Layout widths */
.cf-wrap         { max-width: 1440px; margin: 0 auto; }
.cf-sidebar-left { width: 266px; flex-shrink: 0; }
.cf-content-main { width: 970px; flex-shrink: 0; }
.cf-sidebar-right{ width: 336px; flex-shrink: 0; }

/* ---- TOP NAV ---- */
.cf-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background: #fff;
  border-bottom: 1px solid var(--cf-border);
  height: 52px;
}
.cf-mobile-topbar {
  position: relative;
  z-index: 9999;
}
.cf-mobile-fixed-header { display: none; }
.cf-navbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  height: 52px;
}
.cf-navbar__left  { display: flex; align-items: center; gap: 0; }
.cf-navbar__center{ flex: 1; max-width: 480px; margin: 0 auto; }
.cf-navbar__right { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* Hamburger */
.cf-burger {
  position: relative; margin: 0 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 8px; padding: 8px;
  color: #6b7280;
}
.cf-burger:hover { background: var(--cf-surface-secondary); }

/* Logo */
.cf-logo { display: flex; align-items: center; gap: 6px; margin-right: 8px; text-decoration: none; min-width: 0; overflow: hidden; }
.cf-logo img { width: 24px; height: 24px; flex-shrink: 0; }
.cf-logo-icon { display: flex; align-items: center; flex-shrink: 0; margin-right: 6px; text-decoration: none; }
.cf-logo-icon img { width: 24px; height: 24px; display: block; }
.cf-logo-icon:hover img { opacity: 0.75; }
.cf-logo__channel { display: inline-block; font-weight: 700; font-size: 16px; color: var(--cf-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; text-decoration: none; }
.cf-logo__channel {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 400;
  color: #3b3939;
}
.cf-logo__channel:hover { color: #3b3939; }

/* Search */
.cf-search {
  display: flex; align-items: center; gap:8px; width: 100%;
}
.cf-search__input {
  position: relative; flex:1; display:flex; align-items:center;
  height: 36px; padding: 0 8px;
  border: 1px solid var(--cf-border);
  border-radius: 6px;
  background: var(--cf-surface-secondary);
  font-size: 14px; color: var(--cf-text-primary);
}
.cf-search__input input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 14px; color: var(--cf-text-primary);
  font-family: inherit;
}
.cf-search__input input::placeholder { color: var(--cf-text-tertiary); }

/* Buttons */
.cf-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 16px; border-radius: 4px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; font-family: inherit;
  white-space: nowrap;
}
.cf-btn-secondary {
  background: var(--cf-surface-secondary); color: var(--cf-text-primary);
  border: 1px solid var(--cf-border);
}
.cf-btn-secondary:hover { background: var(--cf-surface-tertiary); }
.cf-btn-primary {
  background: var(--coffee); color: #fff;
}
.cf-btn-primary:hover { background: var(--coffee-dark); }

/* Divider in nav */
.cf-nav-divider { width: 1px; height: 32px; background: #e5e7eb; margin: 0 8px; }

/* ---- BODY LAYOUT ---- */
.cf-body {
  background: var(--cf-bg);
  display: flex; width: 100%; flex-wrap: wrap;
  padding-bottom: 16px;
}
.cf-body__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 52px);
  width: 100%;
}

/* ---- LEFT SIDEBAR ---- */
.cf-left {
  width: 266px; flex-shrink: 0;
  position: sticky; top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 32px 24px 16px 32px;
  background: #fff;
  border-right: 1px solid var(--cf-border);
  display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: none;
}
.cf-left::-webkit-scrollbar { display: none; }

.cf-left__section { display: flex; flex-direction: column; gap: 16px; }
.cf-left__section-title {
  font-size: 14px; font-weight: 600; color: var(--cf-text-secondary);
  display: flex; justify-content: space-between; align-items: center;
}
.cf-left__divider { height: 1px; background: var(--cf-border); margin: 4px 0; }

.cf-left__nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 24px;
  cursor: pointer; text-decoration: none; color: var(--cf-text-secondary);
  font-size: 12px; font-weight: 500;
  transition: background .15s;
  user-select: none;
}
.cf-left__nav-item:hover { background: var(--cf-surface-secondary); }
.cf-left__nav-item.active { background: var(--cf-surface-tertiary); font-weight: 600; }
.cf-left__nav-item i { font-size: 16px; width: 20px; text-align: center; }
.cf-left__nav-item .cf-tag-icon {
  width: 20px; height: 20px; background-size: contain; background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ---- TERAKHIR DIKUNJUNGI ---- */
.cf-recent-toggle:hover { background: var(--cf-surface-secondary); border-radius:8px; }
.cf-recent-toggle p { flex:1; }

/* ---- MAIN CONTENT ---- */
.cf-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 0;
}

/* ---- BANNER AD (top of main) ---- */
.cf-leaderboard { width: 100%; text-align: center; padding: 16px 0 0; }
.cf-leaderboard img { max-width: 728px; max-height: 90px; }

/* ---- SORT BAR (Hot Threads / Terbaru etc) ---- */
.cf-sortbar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 0; padding: 0;
}
.cf-sortbar__left { display: flex; align-items: center; gap: 8px; }

/* Sort dropdown trigger (rounded pill with icon) */
.cf-sort-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px; border-radius: 6px;
  cursor: pointer; user-select: none;
  background: var(--cf-surface-tertiary);
  color: var(--cf-text-secondary); font-size: 12px; font-weight: 500;
  position: relative;
}
.cf-sort-pill .fa-fire { color: #ef4444; }

/* Switch (big card / compact) - top-right of thread list */
.cf-view-switch { display: flex; gap: 0; border-radius: 4px; overflow: hidden; }
.cf-view-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; border: none; background: transparent;
  color: var(--cf-text-secondary);
}
.cf-view-btn.cf-active {
  background: var(--coffee); color: #fff;
}
body.cf-view-compact .cf-thread-card {
  padding: 12px 14px;
  margin-bottom: 0;
}
body.cf-view-compact .cf-thread-author {
  margin-bottom: 6px;
}
body.cf-view-compact .cf-thread-title {
  font-size: 15px;
  margin-bottom: 2px;
}
body.cf-view-compact .cf-thread-excerpt {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.cf-view-compact .cf-thread-last-reply {
  display: none;
}
body.cf-view-compact .cf-thread-footer {
  margin-top: 8px;
}
body.cf-view-compact .cf-thread-stats {
  gap: 10px;
  flex-wrap: wrap;
}

/* Sort dropdown panel */
.cf-sort-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 100;
  background: #fff; border: 1px solid var(--cf-border); border-radius: 6px;
  min-width: 160px; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  padding: 4px 0;
}
.cf-sort-pill:hover .cf-sort-dropdown,
.cf-sort-pill.open .cf-sort-dropdown { display: block; }
.cf-sort-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; color: var(--cf-text-primary);
  text-decoration: none; white-space: nowrap;
}
.cf-sort-dropdown a:hover { background: var(--cf-surface-secondary); }
.cf-sort-dropdown a.active { font-weight: 700; color: var(--coffee); }

/* ---- THREAD CARD - Big Card mode ---- */
.cf-thread-card {
  background: #fff;
  margin-bottom: 16px;
  padding: 16px;
  /* No border-radius - flat white cards with bottom border */
  border-bottom: 1px solid var(--cf-border);
}
.cf-thread-card:last-child { margin-bottom: 0; }

/* Author row */
.cf-thread-author {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.cf-thread-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--cf-surface-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--coffee); overflow: hidden;
}
.cf-thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-user-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.cf-user-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.cf-user-level-badge__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.cf-user-level-badge--hero {
  align-self: center;
}
.cf-user-level-badge--hero .cf-user-level-badge__icon {
  width: 24px;
  height: 24px;
}
.cf-thread-author-name {
  font-size: 14px; font-weight: 700; color: var(--cf-text-primary); line-height: 1.2;
}
.cf-thread-author-meta {
  font-size: 12px; color: var(--cf-text-secondary); display: flex; align-items: center; gap: 4px;
}
/* Title */
.cf-thread-title {
  font-size: 16px; font-weight: 700; color: var(--cf-text-primary);
  line-height: 1.4; margin-bottom: 4px;
}
.cf-thread-title a { color: inherit; text-decoration: none; }
.cf-thread-title a:hover { text-decoration: underline; color: var(--coffee); }

/* Subcategory / tag badge */
.cf-thread-tags { margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.cf-thread-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--cf-text-secondary); border: 1px solid var(--cf-border);
  border-radius: 4px; padding: 1px 6px;
}

/* Thread footer stats */
.cf-thread-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.cf-list-toolbar {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cf-list-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cf-list-toolbar__context {
  font-size: 12px;
  color: var(--cf-text-secondary);
  min-width: 0;
}
.cf-list-toolbar__context a {
  font-size: 11px;
  color: var(--coffee);
}
.cf-thread-stats { display: flex; align-items: center; gap: 12px; }
.cf-thread-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--cf-text-secondary);
}
.cf-thread-stat i { font-size: 13px; }

/* Vote buttons */
.cf-thread-votes { display: flex; align-items: center; gap: 8px; }
.cf-vote-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--cf-text-secondary);
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  border-radius: 4px; font-family: inherit;
}
.cf-vote-btn:hover { background: var(--cf-surface-secondary); color: var(--cf-text-primary); }
.cf-vote-btn.up:hover i { color: #22c55e; }
.cf-vote-btn.down:hover i { color: #ef4444; }
.cf-vote-btn.voted-up   { color: #22c55e !important; font-weight: 700; }
.cf-vote-btn.voted-up i { color: #22c55e !important; }
.cf-vote-btn.voted-down   { color: #ef4444 !important; font-weight: 700; }
.cf-vote-btn.voted-down i { color: #ef4444 !important; }
.cf-vote-btn.cf-voting  { opacity: .5; pointer-events: none; }
.cf-thread-subscribe-btn.is-active { color: var(--coffee); }
.cf-thread-subscribe-btn.is-active i { color: var(--coffee); }
.cf-thread-owner-action.is-disabled { opacity: .55; }
.cf-action-disabled { opacity: .55; cursor: not-allowed !important; }
.cf-action-disabled:hover { background: inherit !important; color: inherit !important; }
.cf-action-hint { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #9a3412; }
.cf-email-verification-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #9a3412;
}
.cf-email-verification-meta-line strong {
  color: #7c2d12;
  word-break: break-word;
}
.cf-email-verification-resend-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.cf-email-verification-resend-status {
  font-size: 12px;
  line-height: 1.5;
  color: #9a3412;
}
.cf-email-verification-resend-btn[disabled] {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
}
.cf-email-verification-resend-btn[disabled]:hover {
  background: #e2e8f0 !important;
  color: #64748b !important;
}
/* Last reply badge */
.cf-thread-last-reply {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--cf-text-secondary);
  background: var(--cf-surface-secondary); border-radius: 20px;
  padding: 4px 12px; white-space: nowrap;
}
.cf-thread-last-reply strong { color: var(--cf-text-primary); }
.cf-thread-last-reply__user {
  display: inline-flex;
  align-items: center;
}

/* Share dropdown */
.cf-share-popup {
  position: fixed; z-index: 9999;
  background: #fff; border: 1px solid var(--cf-border);
  border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 6px; display: flex; flex-direction: column; gap: 4px;
  min-width: 180px;
}
.cf-share-popup button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 7px; border: none;
  background: none; cursor: pointer; font-size: 13px;
  color: var(--cf-text-primary); font-family: inherit; text-align: left; width: 100%;
}
.cf-share-popup button:hover { background: var(--cf-surface-secondary); }
.cf-share-popup button i { width: 16px; text-align: center; }

/* Empty state */
.cf-empty {
  background: #fff; padding: 64px 24px; text-align: center;
  color: var(--cf-text-secondary); border-bottom: 1px solid var(--cf-border);
}
.cf-empty i { font-size: 40px; margin-bottom: 16px; color: var(--cf-text-tertiary); display: block; }

/* ---- PAGINATION ---- */
.cf-pagination {
  display: flex; align-items: center; gap: 4px;
  padding: 16px 16px; background: #fff;
  border-bottom: 1px solid var(--cf-border);
  justify-content: center;
}
.cf-pager {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 6px;
  border-radius: 4px; font-size: 13px; font-weight: 600;
  background: var(--cf-surface-secondary); color: var(--cf-text-primary);
  text-decoration: none; border: 1px solid transparent;
}
.cf-pager:hover { background: var(--cf-surface-tertiary); }
.cf-pager.active { background: var(--coffee); color: #fff; }
.cf-pager.disabled { opacity: .4; pointer-events: none; }

/* ---- RIGHT SIDEBAR ---- */
.cf-right {
  width: 336px; flex-shrink: 0;
  padding: 16px 0 16px 16px;
  display: flex; flex-direction: column; gap: 0;
}

/* Sidebar card (white box) */
.cf-rcard {
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 0;
}

.cf-rcard__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--cf-text-primary);
  margin-bottom: 12px;
}
.cf-rcard__title i { font-size: 20px; }

/* CTA card - used for "Buat Post" */
.cf-cta-card {
  background: var(--cf-surface-secondary);
  padding: 16px; margin-bottom: 16px;
}

/* Popular community item */
.cf-rlist-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--cf-border);
}
.cf-rlist-item:last-child { border-bottom: none; padding-bottom: 0; }
.cf-rlist-avatar {
  width: 36px; height: 36px; border-radius: 4px; flex-shrink: 0;
  background: var(--cf-surface-secondary); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--coffee);
}
.cf-rlist-info { flex: 1; min-width: 0; }
.cf-rlist-name {
  font-size: 14px; font-weight: 600; color: var(--cf-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-rlist-meta { font-size: 12px; color: var(--cf-text-secondary); display: flex; gap: 4px; align-items: center; }

/* Kreator item (auto-scroll marquee) */
@keyframes cf-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cf-kreator-scroll {
  overflow: hidden;
  display: flex;
  width: 100%;
}
.cf-kreator-scroll::-webkit-scrollbar { display: none; }
.cf-kreator-track {
  display: flex;
  gap: 16px;
  animation: cf-marquee 28s linear infinite;
  width: max-content;
}
.cf-kreator-track.paused { animation-play-state: paused; }
.cf-kreator-card {
  width: 160px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--cf-border);
  background: #fff; padding: 12px 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.cf-kreator-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--cf-surface-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--coffee); overflow: hidden; margin-bottom: 8px;
}
.cf-kreator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-kreator-name { font-size: 14px; font-weight: 700; color: var(--cf-text-primary); margin-bottom: 2px; }
.cf-kreator-sub  { font-size: 12px; color: var(--cf-text-secondary); }

/* Sticky right sidebar elements */
.cf-right-sticky { position: sticky; top: 68px; }

/* Ad boxes */
.cf-ad-box { margin-bottom: 16px; text-align: center; }
.cf-ad-box img { width: 100%; max-width: 336px; height: auto; display: block; border-radius: 4px; }

/* ---- MODAL (Login / New Post) ---- */
.cf-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 2000;
  align-items: center; justify-content: center;
}
.cf-modal-overlay.open { display: flex; }
.cf-modal {
  background: #fff; border-radius: 4px;
  width: 100%; max-width: 520px; margin: 20px;
  max-height: 90vh; overflow-y: auto;
}
.cf-modal--write {
  max-width: 760px;
}
.cf-modal--compact {
  max-width: 460px;
}
.cf-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--cf-border);
}
.cf-modal__head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.cf-modal__close { background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; padding: 0; }
.cf-modal__body { padding: 20px; }
.cf-form-group { margin-bottom: 14px; }
.cf-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--cf-text-primary); }
.cf-write-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cf-write-toolbar__btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  background: #fff;
  color: var(--cf-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.cf-write-toolbar__btn:hover,
.cf-write-toolbar__btn.is-active {
  border-color: #fdba74;
  background: #fff7ed;
  color: var(--coffee-dark);
}
.cf-write-poll {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #f8fbff;
}
.cf-write-poll__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cf-write-poll__disable,
.cf-write-poll__add-option {
  border: none;
  background: none;
  color: #0b7cc1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.cf-write-poll__add-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.cf-write-poll__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-write-poll__option-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-write-poll__remove-option {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
}
.cf-write-poll__remove-option:disabled {
  opacity: .45;
  cursor: default;
}
.cf-write-poll__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cf-write-poll__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cf-text-primary);
}
.cf-write-poll__end-wrap {
  min-width: 260px;
  flex: 1;
}
.cf-write-poll__end-wrap label {
  display: block;
  margin-bottom: 4px;
}
.cf-write-actions { display: flex; gap: 10px; }
.cf-write-actions .cf-submit-btn { width: auto; flex: 1; }
.cf-submit-btn.cf-submit-btn-secondary { background: #fff; color: var(--coffee-dark); border: 1px solid #fdba74; }
.cf-submit-btn.cf-submit-btn-secondary:hover { background: #fff7ed; }
.cf-category-guide {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
}
.cf-category-guide__title { font-size: 13px; font-weight: 700; color: #9a3412; }
.cf-category-guide__desc { margin: 6px 0 0; font-size: 12px; line-height: 1.55; color: #9a3412; }
.cf-category-guide__label { margin-top: 10px; font-size: 12px; font-weight: 700; color: #7c2d12; }
.cf-category-guide__topics { margin: 8px 0 0 18px; padding: 0; color: #9a3412; }
.cf-category-guide__topics li { margin-bottom: 4px; font-size: 12px; line-height: 1.5; }
.cf-form-control {
  width: 100%; padding: 8px 12px; border: 1px solid var(--cf-border);
  border-radius: 4px; font-size: 14px; outline: none; font-family: inherit;
}
.cf-form-control:focus { border-color: var(--coffee); }
.cf-form-control.textarea { min-height: 100px; resize: vertical; }
.cf-modal--write .cf-form-control.textarea {
  min-height: 240px;
}
.cf-write-content-meta {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}
.cf-write-content-field.is-over-limit {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, .12) !important;
}
.cf-write-close-confirm__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cf-text-primary);
}
.cf-write-close-confirm__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cf-write-close-confirm__actions .cf-submit-btn {
  width: auto;
  min-width: 110px;
  flex: 0 0 auto;
}
.cf-submit-btn {
  width: 100%; padding: 10px; background: var(--coffee);
  color: #fff; border: none; border-radius: 4px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cf-submit-btn:hover { background: var(--coffee-dark); }

/* Footer */
.cf-footer {
  background: #fff; border-top: 1px solid var(--cf-border);
  text-align: center; padding: 20px; font-size: 12px;
  color: var(--cf-text-secondary); margin-top: 24px;
}
.cf-footer a { color: var(--coffee); }

/* Responsive */
/* Hamburger toggle: active hides sidebar on desktop, shows on mobile */
.cf-left.active { display: none !important; }
@media (max-width: 1200px) {
  .cf-left { display: none; }
  .cf-left.active { display: flex !important; position: fixed; top: 52px; left: 0; z-index: 999; height: calc(100vh - 52px); box-shadow: 4px 0 16px rgba(0,0,0,.12); }
  .cf-body__inner { justify-content: flex-start; }
}
@media (max-width: 900px)  { .cf-right { display: none; } }

/* Mobile search bar (below navbar, hidden by default) */
.cf-mobile-search-bar {
  display: none;
  position: sticky; top: 52px; z-index: 49;
  background: #fff; border-bottom: 1px solid var(--cf-border);
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cf-mobile-search-bar.open { display: flex; }
.cf-mobile-search-bar form { width: 100%; }
.cf-mobile-search-bar .cf-search__input { width: 100%; }
.cf-mobile-drawer-backdrop { display: none; }

/* Mobile search toggle button (hidden on desktop) */
.cf-mobile-search-btn { display: none; }

@media (max-width: 900px) {
  body { padding-top: 52px !important; }

  .cf-modal--write {
    max-width: none;
    width: calc(100% - 24px);
    margin: 12px;
  }

  .cf-modal--write .cf-form-control.textarea {
    min-height: 220px;
  }

  .cf-write-poll__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .cf-write-poll__end-wrap {
    min-width: 0;
    width: 100%;
  }

  .cf-mobile-topbar { display: none !important; }

  .cf-mobile-fixed-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid var(--cf-border);
    z-index: 10000;
    box-sizing: border-box;
  }
  .cf-mobile-fixed-header__left,
  .cf-mobile-fixed-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .cf-mobile-fixed-header__right {
    gap: 6px;
  }
  .cf-mobile-fixed-header__left { flex: 1; }
  .cf-mobile-fixed-header__title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
  }
  .cf-mobile-fixed-header__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
  }
  .cf-mobile-fixed-header__title--home {
    gap: 0;
  }
  .cf-mobile-fixed-header__title img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .cf-mobile-fixed-header__title--home img {
    width: auto;
    height: 28px;
    max-width: 160px;
  }
  .cf-mobile-fixed-header__title span {
     font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
     font-size: 14px;
     font-weight: 400;
     color: #3b3939;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cf-mobile-fixed-header__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    background: var(--cf-surface-secondary);
    color: var(--cf-text-secondary);
    cursor: pointer;
  }
  .cf-mobile-fixed-header__icon:hover { background: var(--cf-surface-tertiary); }
  .cf-mobile-fixed-header .cf-btn-primary {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
  }
  .cf-mobile-fixed-header .cf-btn-primary span { display: inline; }
  .cf-mobile-fixed-header .cf-btn-primary i { display: none; }
  .cf-mobile-fixed-header .cf-nav-user__avatar {
    width: 36px;
    height: 36px;
  }

  body.cf-mobile-search-open {
    padding-top: calc(var(--cf-topbar-height) + 52px) !important;
  }
  .cf-navbar__inner { padding: 0 8px; gap: 0; }
  .cf-navbar__left { flex: 1; min-width: 0; overflow: hidden; }
  .cf-burger { margin: 0 6px; padding: 6px; }

  /* Logo: truncate long forum names */
  .cf-logo { max-width: 180px; margin-right: 0; }
  .cf-logo-icon { margin-right: 4px; }
  .cf-logo__channel { font-size: 14px; max-width: 130px; }

  /* Hide center search — replaced by icon button */
  .cf-navbar__center { display: none; }

  /* Navbar right: compact */
  .cf-navbar__right { gap: 4px; margin-left: 4px; flex-shrink: 0; }
  .cf-lang-toggle { display: none; }
  .cf-nav-divider { display: none; }
  .cf-btn-create-post { display: none; }
  .cf-btn-primary { padding: 6px 12px; font-size: 13px; }

  /* Show mobile search button */
  .cf-mobile-search-btn { display: flex; }

  /* Mobile search bar sits under fixed mobile header */
  .cf-mobile-search-bar {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  .cf-mobile-drawer-backdrop {
    position: fixed;
    top: var(--cf-topbar-height, 52px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, .38);
    z-index: 10000;
  }
  .cf-mobile-drawer-backdrop.open { display: block; }
  body.cf-mobile-drawer-open { overflow: hidden; }

  /* Body: stack vertically, full width */
  .cf-body__inner { flex-direction: column; }
  .cf-main { width: 100%; max-width: 100% !important; padding: 0; }
  .cf-left.active {
    display: flex !important;
    position: fixed;
    top: var(--cf-topbar-height, 52px);
    left: 0;
    z-index: 10001;
    width: min(86vw, 320px);
    max-width: 320px;
    height: calc(100vh - var(--cf-topbar-height, 52px));
    padding: 24px 18px 16px;
    box-shadow: 8px 0 28px rgba(0,0,0,.18);
  }
  .cf-left .cf-sidebar-lang { display: block; }
  .cf-left .cf-sidebar-lang .cf-left__section-title {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .cf-left .cf-sidebar-lang .cf-left__section-title p {
    margin: 0;
    flex: 0 0 auto;
  }
  .cf-left .cf-sidebar-lang .cf-lang-toggle {
    display: inline-flex;
    width: auto;
    justify-content: flex-end;
    border-radius: 10px;
    padding: 3px;
    margin-left: auto;
  }
  .cf-left .cf-sidebar-lang .cf-lang-btn {
    min-width: 48px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  /* Thread cards: reduce padding */
  .cf-thread-card { padding: 12px; margin-bottom: 8px; }
  .cf-thread-author { flex-wrap: wrap; }
  .cf-thread-title { font-size: 15px; }
  .cf-thread-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cf-thread-stats {
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
  }
  .cf-thread-last-reply {
    width: 100%;
    white-space: normal;
    line-height: 1.45;
    border-radius: 12px;
  }

  .cf-list-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .cf-list-toolbar__left {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .cf-list-toolbar__context {
    flex: 1 1 100%;
    padding-left: 2px;
    line-height: 1.45;
  }
  .cf-view-switch { margin-left: auto; }

  .cf-thread-detail { padding: 16px; }
  .cf-thread-detail__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .cf-thread-detail__body {
    font-size: 14px;
    line-height: 1.7;
  }
  .cf-thread-detail__footer { gap: 8px; }
  .cf-replies__header { padding: 14px 16px 12px; }
  .cf-reply-item {
    gap: 10px;
    padding: 14px 16px;
  }
  .cf-reply-nested { margin-left: 20px; }
  .cf-reply-nested .cf-reply-item { padding: 10px 12px; }
  .cf-inline-reply-form {
    margin-left: 20px;
    padding: 12px;
  }
  .cf-reply-box { padding: 16px; }

  /* Sort bar */
  .cf-sort-pill { padding: 6px; }

  /* Empty state */
  .cf-empty { padding: 40px 16px; }

  /* Pagination */
  .cf-pagination {
    padding: 14px 12px;
    flex-wrap: wrap;
  }

  /* Footer */
  .cf-footer { padding: 16px 12px; font-size: 11px; }
}

/* ---- Language toggle ---- */
.cf-lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--cf-surface-secondary);
  border: 1px solid var(--cf-border);
  border-radius: 4px; padding: 2px;
  overflow: hidden;
}
.cf-lang-btn {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  min-width: 38px;
  padding: 4px 9px; border-radius: 3px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: none; background: transparent;
  color: var(--cf-text-secondary); font-family: inherit;
  transition: background .15s, color .15s;
  line-height: 1;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.cf-lang-btn.active {
  background: var(--coffee); color: #fff;
}
.cf-sidebar-lang { display: none; }

/* ---- THREAD DETAIL VIEW ---- */
.cf-thread-detail { background: #fff; padding: 24px; border-bottom: 1px solid var(--cf-border); }
.cf-thread-detail__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--cf-text-secondary); text-decoration: none;
  margin-bottom: 16px; padding: 6px 0;
}
.cf-thread-detail__back:hover { color: var(--coffee); }
.cf-thread-detail__breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--cf-text-secondary); margin-bottom: 16px;
}
.cf-thread-detail__breadcrumb a { color: var(--coffee); text-decoration: none; }
.cf-thread-detail__breadcrumb a:hover { text-decoration: underline; }
.cf-thread-detail__title {
  font-size: 22px; font-weight: 700; color: var(--cf-text-primary);
  line-height: 1.35; margin-bottom: 16px;
}
.cf-thread-detail__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.cf-thread-detail__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--cf-surface-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--coffee); overflow: hidden;
}
.cf-thread-detail__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-thread-detail__author-name { font-size: 14px; font-weight: 700; color: var(--cf-text-primary); }
.cf-thread-detail__author-time { font-size: 12px; color: var(--cf-text-secondary); }
.cf-thread-detail__body {
  font-size: 15px; line-height: 1.75; color: var(--cf-text-primary);
  white-space: normal; margin-bottom: 20px;
}
.cf-thread-detail__footer {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 0; border-top: 1px solid var(--cf-border);
  flex-wrap: wrap;
}

/* Replies section */
.cf-replies { background: #fff; }
.cf-replies__header {
  padding: 16px 24px 12px; border-bottom: 1px solid var(--cf-border);
  font-size: 14px; font-weight: 700; color: var(--cf-text-primary);
}
.cf-reply-item {
  display: flex; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--cf-border);
}
.cf-reply-item:last-child { border-bottom: none; }
.cf-reply-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--cf-surface-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--coffee); overflow: hidden;
}
.cf-reply-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-reply-body { flex: 1; min-width: 0; }
.cf-reply-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.cf-reply-author { font-size: 14px; font-weight: 700; color: var(--cf-text-primary); }
.cf-reply-time   { font-size: 12px; color: var(--cf-text-secondary); }
.cf-reply-content {
  font-size: 14px; line-height: 1.65; color: var(--cf-text-primary);
  white-space: normal;
}
.cf-inline-underline { text-decoration: underline; }
.cf-inline-image-wrap {
  display: block;
  margin: 14px 0;
}
.cf-inline-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #dbe5ef;
  background: #fff;
}
.cf-inline-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cf-inline-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  color: #0b7cc1;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cf-inline-link--external {
  color: #0b7cc1;
}
.cf-inline-link--suspicious {
  color: #b45309;
}
.cf-inline-link__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.cf-inline-youtube {
  display: block;
  margin: 16px 0;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.cf-inline-youtube__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border: 0;
  background: #000;
}
.cf-poll-block {
  margin-top: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
  padding: 18px;
}
.cf-poll-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-poll-block__title {
  font-size: 13px;
  font-weight: 700;
  color: #0b7cc1;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cf-poll-block__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cf-poll-block__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f2fb;
  color: #35516b;
  font-size: 11px;
  font-weight: 700;
}
.cf-poll-block__question {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cf-text-primary);
}
.cf-poll-block__summary {
  margin-top: 8px;
  font-size: 12px;
  color: var(--cf-text-secondary);
  font-weight: 600;
}
.cf-poll-block__options {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-poll-block__option {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.cf-poll-block__option.is-selected {
  border-color: #8fc5ea;
  background: #f5fbff;
}
.cf-poll-block__option-main {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cf-poll-block__option input {
  margin: 0;
}
.cf-poll-block__option-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.cf-poll-block__option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--cf-text-primary);
}
.cf-poll-block__option-stats {
  font-size: 12px;
  color: var(--cf-text-secondary);
}
.cf-poll-block__option-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8f0f7;
  overflow: hidden;
}
.cf-poll-block__option-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b7cc1 0%, #4aa6df 100%);
}
.cf-poll-block__footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-poll-block__feedback {
  min-height: 18px;
  font-size: 12px;
  color: #b42318;
}
.cf-poll-block__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-poll-block__submit {
  border: 0;
  border-radius: 999px;
  background: #0b7cc1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.cf-poll-block__submit:hover {
  background: #09679f;
}
.cf-poll-block__submit:disabled {
  background: #bfd4e4;
  cursor: not-allowed;
}
.cf-poll-block__badge--closed {
  background: #fff4e5;
  color: #b54708;
}
@media (max-width: 640px) {
  .cf-poll-block__footer {
    align-items: stretch;
  }
  .cf-poll-block__actions,
  .cf-poll-block__submit {
    width: 100%;
  }
}
.cf-translate-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  color: #35516b;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.cf-translate-toggle.is-visible { display: inline-flex; }
.cf-translate-toggle:hover { background: #eef4f8; border-color: #b9c9d8; }
.cf-translate-toggle[disabled] { opacity: .65; cursor: wait; }
.cf-translate-toggle--inline { margin-left: auto; }
.cf-translate-toggle--footer {
  border: none;
  background: none;
  color: var(--cf-text-secondary);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  padding: 4px 6px;
  transition: background .15s, color .15s, opacity .15s;
}
.cf-translate-toggle--footer:hover {
  background: var(--cf-surface-secondary);
  border-color: transparent;
  color: var(--cf-text-primary);
}
.cf-translate-toggle--reply {
  border: 1px solid var(--cf-border);
  background: none;
  color: var(--cf-text-secondary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  line-height: normal;
  padding: 2px 8px;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.cf-translate-toggle--reply:hover {
  background: var(--cf-surface-secondary);
  border-color: var(--cf-border);
  color: var(--coffee);
}
/* reply vote row + balas button */
.cf-reply-vote { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cf-reply-btn {
  background: none; border: 1px solid var(--cf-border); border-radius: 4px;
  font-size: 11px; color: var(--cf-text-secondary); padding: 2px 8px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  transition: background .15s, color .15s;
}
.cf-inline-quote-preview {
  display: none;
  border-left: 3px solid #d0d7de;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.cf-inline-quote-preview.is-visible { display: block; }
.cf-inline-quote-preview__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cf-text-secondary);
  margin-bottom: 4px;
}
.cf-inline-quote-preview__text {
  font-size: 12px;
  color: var(--cf-text-primary);
  line-height: 1.5;
}
.cf-reply-quote {
  border-left: 3px solid #d0d7de;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 10px;
}
.cf-reply-quote__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cf-text-secondary);
  margin-bottom: 4px;
}
.cf-reply-quote__text {
  font-size: 12px;
  color: var(--cf-text-primary);
  line-height: 1.5;
}
.cf-reply-btn:hover { background: var(--cf-surface-secondary); color: var(--coffee); }

/* Nested replies */
.cf-reply-nested {
  margin-left: 48px;
  border-left: 2px solid var(--cf-border);
  background: var(--cf-surface-secondary);
}
.cf-reply-nested .cf-reply-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--cf-border);
}
.cf-reply-nested .cf-reply-item:last-child { border-bottom: none; }
.cf-reply-nested .cf-reply-avatar { width: 28px; height: 28px; font-size: 12px; }
.cf-reply-nested .cf-inline-reply-form { margin-left: 32px; }

/* Inline reply form */
.cf-inline-reply-form {
  display: none;
  margin: 0 0 0 48px;
  padding: 12px 16px;
  background: #f9fafb;
  border-left: 2px solid var(--coffee);
  border-bottom: 1px solid var(--cf-border);
}
.cf-inline-reply-form.open { display: block; }
.cf-inline-reply-form textarea {
  width: 100%; min-height: 72px; padding: 8px 10px;
  border: 1px solid var(--cf-border); border-radius: 6px;
  font-size: 13px; font-family: inherit; resize: vertical; outline: none;
  box-sizing: border-box;
}
.cf-inline-reply-form textarea:focus { border-color: var(--coffee); }
.cf-inline-reply-error { font-size: 12px; color: #ef4444; margin-top: 4px; display: none; }
.cf-inline-reply-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.cf-inline-cancel-btn {
  background: none; border: 1px solid var(--cf-border); border-radius: 5px;
  padding: 5px 14px; font-size: 12px; cursor: pointer; color: var(--cf-text-secondary);
}
.cf-inline-cancel-btn:hover { background: var(--cf-surface-secondary); }
.cf-inline-submit-btn {
  background: var(--coffee); color: #fff; border: none; border-radius: 5px;
  padding: 5px 14px; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.cf-inline-submit-btn:hover { opacity: .88; }
.cf-inline-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.cf-reply-box {
  background: #fff; padding: 20px 24px; border-top: 2px solid var(--cf-border);
}
.cf-reply-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--cf-text-primary); }
.cf-reply-box textarea {
  width: 100%; min-height: 90px; padding: 10px 12px;
  border: 1px solid var(--cf-border); border-radius: 6px;
  font-size: 14px; font-family: inherit; resize: vertical; outline: none; box-sizing: border-box;
}
.cf-reply-box textarea:focus { border-color: var(--coffee); }

/* ---- Navbar user avatar ---- */
.cf-nav-user { position: relative; }
.cf-nav-user__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--coffee);
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; user-select: none; position: relative; overflow: visible;
}
.cf-nav-user__initial {
  display: block; line-height: 1; position: relative; z-index: 1;
}
.cf-nav-user__message-alert {
  position: absolute; top: 0; right: 0; transform: translate(34%, -34%);
  width: 18px; height: 18px;
  border-radius: 50%; background: #ef4444; color: #fff; border: 2px solid #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, .28); z-index: 3; line-height: 1; pointer-events: none;
}
.cf-nav-user__message-alert i {
  display: block; font-size: 9px; line-height: 1;
}
.cf-nav-user__dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--cf-border); border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12); min-width: 200px; z-index: 999;
  padding: 8px 0;
}
.cf-nav-user__dropdown.open { display: block; }
.cf-nav-user__dropdown--profile {
  width: 340px; max-height: min(78vh, 760px); overflow-y: auto;
}
.cf-nav-user__info { padding: 10px 16px 8px; }
.cf-nav-user__info strong { display: block; font-size: 14px; color: var(--cf-text-primary); }
.cf-nav-user__info span  { display: block; font-size: 12px; color: var(--cf-text-secondary); margin-top: 2px; }
.cf-nav-user__divider { height: 1px; background: var(--cf-border); margin: 4px 0; }
.cf-nav-user__section { padding: 8px 0; }
.cf-nav-user__section-title {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px; font-size: 12px; font-weight: 700;
  color: var(--cf-text-secondary); text-transform: uppercase; letter-spacing: .04em;
}
.cf-nav-user__section-title i { width: 18px; text-align: center; font-size: 14px; }
.cf-nav-user__menu-link {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 10px 16px 10px 48px; color: var(--cf-text-primary); font-size: 14px;
}
.cf-nav-user__menu-link:hover { background: var(--cf-surface-secondary); }
.cf-nav-user__menu-link.is-active { background: #fff4ef; color: var(--coffee-dark); font-weight: 600; }
.cf-nav-user__menu-link i { width: 16px; text-align: center; color: var(--cf-text-secondary); }
.cf-nav-user__logout-row { border-top: 1px solid var(--cf-border); margin-top: 6px; padding-top: 6px; }
.cf-nav-user__logout {
  width: 100%; text-align: left; background: none; border: none;
  padding: 8px 16px; font-size: 13px; cursor: pointer; display: flex;
  align-items: center; gap: 8px; color: #ef4444;
}
.cf-nav-user__logout:hover { background: #fef2f2; }
.cf-menu-unread-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.cf-menu-unread-badge.is-hidden {
  display: none;
}
.cf-menu-lock-badge {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; border-radius: 999px; background: #fff7ed; color: #9a3412;
  font-size: 11px; font-weight: 700; line-height: 1;
}

/* ---- Login modal sections ---- */
.cf-login-section { border-bottom: 1px solid var(--cf-border); }
.cf-login-section:last-child { border-bottom: none; }
.cf-login-section--alt { padding: 18px 24px 20px; }
.cf-auth-panel { display: none; }
.cf-auth-panel.is-active { display: block; }
.cf-auth-switch-link {
  color: var(--coffee); text-decoration: none; font-weight: 600;
}
.cf-auth-switch-link:hover { color: var(--coffee-dark); }
.cf-field-note {
  font-size: 12px; line-height: 1.5; margin-top: 6px;
}
.cf-field-note--muted { color: var(--cf-text-secondary); }
.cf-field-note--error { color: #dc2626; }
.cf-field-note--success { color: #15803d; }
.cf-suggestion-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.cf-password-rules {
  margin: 0; padding: 0; list-style: none;
}
.cf-password-rules li {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 4px;
}
.cf-password-rules li:first-child { margin-top: 0; }
.cf-password-rules li::before {
  content: '\2022';
  line-height: 1.2;
}
.cf-password-rules li.is-valid { color: #15803d; }
.cf-password-rules li.is-invalid { color: #dc2626; }
.cf-password-rules li.is-valid::before { content: '\2713'; }
.cf-form-control.is-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}
.cf-form-control.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.cf-suggestion-chip {
  border: 1px solid #fed7aa; background: #fff7ed; color: #9a3412;
  border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.cf-suggestion-chip:hover { background: #ffedd5; }
.cf-legal-copy {
  font-size: 12px; line-height: 1.55; color: var(--cf-text-secondary); margin: 10px 0 14px; text-align: center;
}
.cf-legal-copy a {
  color: var(--coffee); text-decoration: none; font-weight: 600;
}
.cf-legal-copy a:hover { color: var(--coffee-dark); }
.cf-profile-page {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px;
}
.cf-profile-sidebar,
.cf-profile-content {
  background: #fff; border: 1px solid var(--cf-border); border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.cf-profile-sidebar { padding: 18px; position: sticky; top: 74px; align-self: start; }
.cf-profile-usercard {
  display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--cf-border); margin-bottom: 16px;
}
.cf-profile-usercard__avatar {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid #dbe7ef; background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--coffee-dark); overflow: hidden;
}
.cf-profile-usercard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-profile-usercard__meta strong { display: block; font-size: 20px; color: var(--cf-text-primary); }
.cf-profile-usercard__meta span { display: block; font-size: 13px; color: var(--cf-text-secondary); margin-top: 4px; }
.cf-profile-sidegroup { margin-top: 16px; }
.cf-profile-sidegroup__title { font-size: 12px; font-weight: 700; color: var(--cf-text-secondary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.cf-profile-sidegroup__link {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cf-text-primary);
  padding: 10px 12px; border-radius: 12px; font-size: 14px;
}
.cf-profile-sidegroup__link:hover { background: var(--cf-surface-secondary); }
.cf-profile-sidegroup__link.is-active { background: #fff4ef; color: var(--coffee-dark); font-weight: 600; }
.cf-profile-sidegroup__link i { width: 18px; text-align: center; color: var(--cf-text-secondary); }
.cf-profile-content { padding: 24px; }
.cf-profile-header h1 { font-size: 28px; margin: 0 0 6px; color: var(--cf-text-primary); }
.cf-profile-header p { margin: 0; color: var(--cf-text-secondary); line-height: 1.6; }
.cf-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.cf-profile-stat { border: 1px solid var(--cf-border); border-radius: 16px; padding: 16px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
.cf-profile-stat strong { display: block; font-size: 24px; color: var(--cf-text-primary); }
.cf-profile-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--cf-text-secondary); }
.cf-profile-stat--reputation strong { display: inline; font-size: 24px; }
.cf-profile-reputation-summary { display: flex; align-items: center; gap: 16px; min-height: 36px; }
.cf-profile-reputation-summary__item { display: inline-flex; align-items: center; gap: 8px; color: var(--cf-text-primary); }
.cf-profile-reputation-summary__item i { font-size: 20px; }
.cf-profile-reputation-summary__item.is-up i { color: #22c55e; }
.cf-profile-reputation-summary__item.is-down i { color: #ef4444; }
.cf-profile-note-inline { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.6; }
.cf-profile-reputation-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cf-profile-reputation-total { border: 1px solid var(--cf-border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.cf-profile-reputation-total strong { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; color: var(--cf-text-primary); }
.cf-profile-reputation-total strong i { font-size: 18px; }
.cf-profile-reputation-total span { display: block; margin-top: 6px; font-size: 12px; color: var(--cf-text-secondary); }
.cf-profile-reputation-total.is-up strong i { color: #22c55e; }
.cf-profile-reputation-total.is-down strong i { color: #ef4444; }
.cf-profile-reputation-total.is-net strong i { color: var(--coffee); }
.cf-profile-reputation-pill { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cf-profile-reputation-pill__item { display: inline-flex; align-items: center; gap: 6px; }
.cf-profile-reputation-pill__item i { font-size: 13px; }
.cf-profile-reputation-pill__item.is-up i { color: #22c55e; }
.cf-profile-reputation-pill__item.is-down i { color: #ef4444; }
.cf-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.cf-profile-card { border: 1px solid var(--cf-border); border-radius: 16px; padding: 18px; background: #fff; }
.cf-profile-card--full { grid-column: 1 / -1; }
.cf-profile-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--cf-text-primary); }
.cf-profile-card p { margin: 0; color: var(--cf-text-secondary); line-height: 1.6; }
.cf-profile-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cf-profile-list__item { display: flex; justify-content: space-between; gap: 14px; border: 1px solid var(--cf-border); border-radius: 12px; padding: 12px 14px; }
.cf-profile-list__item strong { display: block; font-size: 14px; color: var(--cf-text-primary); }
.cf-profile-list__item span { display: block; font-size: 12px; color: var(--cf-text-secondary); margin-top: 4px; }
.cf-profile-list__item > div { min-width: 0; flex: 1; }
.cf-profile-list__excerpt { color: var(--cf-text-primary) !important; opacity: .78; line-height: 1.55; }
.cf-profile-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff4ef; color: var(--coffee-dark); font-size: 12px; font-weight: 600; }
.cf-profile-pill--plain { padding: 0; background: transparent; color: var(--cf-text-secondary); }
.cf-profile-empty { border: 1px dashed #d7e1e8; border-radius: 16px; padding: 22px; text-align: center; background: #fbfdff; margin-top: 14px; }
.cf-profile-empty i { font-size: 22px; color: var(--cf-text-secondary); }
.cf-profile-empty p { margin-top: 10px; }
.cf-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cf-profile-form .cf-form-group { margin-bottom: 0; }
.cf-profile-form .cf-form-group--full { grid-column: 1 / -1; }
.cf-profile-locked {
  background: #f4f6f8 !important; color: #94a3b8 !important; border-color: #d8e0e7 !important;
  cursor: not-allowed; box-shadow: none !important;
}
.cf-profile-link-disabled {
  opacity: .5; background: #f8fafc; color: #94a3b8; cursor: not-allowed;
}
.cf-profile-link-disabled:hover { background: #f8fafc; }
.cf-profile-link-disabled i { color: #94a3b8 !important; }
.cf-profile-field-help {
  margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--cf-text-secondary);
}
.cf-profile-form--social {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cf-profile-social-input-wrap {
  position: relative;
}
.cf-profile-social-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cf-text-secondary);
  font-size: 15px;
  pointer-events: none;
}
.cf-profile-social-input {
  padding-left: 42px !important;
}
.cf-profile-social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.cf-profile-social-inline--preview {
  margin-top: 0;
}
.cf-profile-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  border: 1px solid #dbe4ec;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.cf-profile-social-link i {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit !important;
  line-height: 1;
}
.cf-profile-social-link.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.cf-profile-social-link.is-active:hover {
  transform: translateY(-1px);
  background: #ffedd5;
}
.cf-profile-social-link.is-empty {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.cf-profile-char-count-wrap {
  margin-top: 6px; display: flex; justify-content: flex-end;
}
.cf-profile-char-count {
  font-size: 12px; line-height: 1.4; color: var(--cf-text-secondary);
}
.cf-profile-char-count.is-over {
  color: #dc2626; font-weight: 700;
}
.cf-profile-bio.is-over-limit {
  border-color: #f87171 !important; box-shadow: 0 0 0 1px rgba(239, 68, 68, .12) !important;
}
.cf-profile-feedback {
  grid-column: 1 / -1; display: none; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5;
}
.cf-profile-feedback.is-success { display: block; background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.cf-profile-feedback.is-error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.cf-profile-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.cf-profile-suggestion-btn {
  border: 1px solid #f59e0b; background: #fff7ed; color: #9a3412; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.cf-profile-suggestion-btn:hover { background: #ffedd5; }
.cf-profile-note { margin-top: 14px; border-radius: 14px; padding: 14px 16px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.6; }
.cf-profile-level-hero {
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #fed7aa;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 55%, #ffffff 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
  gap: 18px;
}
.cf-profile-level-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250, 100, 48, .12);
  color: var(--coffee-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cf-profile-level-hero__main h2 {
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1.08;
  color: #7c2d12;
}
.cf-profile-level-hero__title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cf-profile-level-hero__main p {
  max-width: 620px;
  color: #9a3412;
}
.cf-profile-level-icon {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.cf-profile-level-icon--hero {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 8px 18px rgba(194, 79, 24, .14));
}
.cf-profile-level-icon--scorecard {
  width: 54px;
  height: 54px;
}
.cf-profile-level-icon--tier {
  width: 64px;
  height: 64px;
}
.cf-profile-level-progress {
  margin-top: 16px;
}
.cf-profile-level-progress__head,
.cf-profile-level-metric__foot,
.cf-profile-level-metric__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cf-profile-level-progress__head {
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 13px;
}
.cf-profile-level-progress__head strong,
.cf-profile-level-metric__foot strong {
  color: #7c2d12;
}
.cf-profile-level-progress__bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(194, 79, 24, .12);
  overflow: hidden;
}
.cf-profile-level-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coffee) 0%, #f59e0b 100%);
}
.cf-profile-level-progress__bar.is-compact {
  height: 8px;
}
.cf-profile-level-hero__aside {
  display: grid;
  gap: 12px;
}
.cf-profile-level-scorecard {
  border-radius: 18px;
  border: 1px solid rgba(154, 52, 18, .12);
  background: rgba(255, 255, 255, .8);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-profile-level-scorecard span,
.cf-profile-level-scorecard small {
  color: var(--cf-text-secondary);
}
.cf-profile-level-scorecard strong {
  color: #7c2d12;
  font-size: 30px;
  line-height: 1.1;
}
.cf-profile-level-scorecard__level {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cf-profile-level-scorecard__level strong {
  font-size: 24px;
}
.cf-profile-level-scorecard strong small {
  margin-left: 2px;
  font-size: 16px;
  color: var(--cf-text-secondary);
}
.cf-profile-level-scorecard.is-soft {
  background: rgba(255, 255, 255, .65);
}
.cf-profile-grid--account-level {
  margin-top: 16px;
}
.cf-profile-level-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
}
.cf-profile-level-metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.cf-profile-level-metric__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cf-profile-level-metric__top strong {
  font-size: 15px;
  line-height: 1.35;
}
.cf-profile-level-metric p {
  margin: 10px 0 14px;
  flex: 1 1 auto;
  min-height: 0;
  font-size: 13px;
  line-height: 1.75;
}
.cf-profile-level-metric__meta {
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 12px;
  color: var(--cf-text-secondary);
}
.cf-profile-level-metric__meta span {
  flex: 1 1 120px;
  min-width: 0;
}
.cf-profile-level-metric__foot {
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 12px;
  color: var(--cf-text-secondary);
}
.cf-profile-level-roadmap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cf-profile-level-roadmap__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fffaf2;
}
.cf-profile-level-roadmap__count {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--coffee-dark);
  font-size: 18px;
  font-weight: 700;
  border: 1px solid #fdba74;
}
.cf-profile-level-roadmap__body strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: var(--cf-text-primary);
}
.cf-profile-level-roadmap__body {
  flex: 1 1 auto;
  min-width: 0;
}
.cf-profile-level-roadmap__body span {
  display: block;
  margin-top: 4px;
  color: var(--cf-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.cf-profile-level-tier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.cf-profile-level-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  background: #fff;
}
.cf-profile-level-tier.is-current {
  border-color: #fdba74;
  background: #fff7ed;
  box-shadow: 0 10px 20px rgba(250, 100, 48, .08);
}
.cf-profile-level-tier__body {
  flex: 1 1 auto;
  min-width: 0;
}
.cf-profile-level-tier__body strong {
  display: block;
  font-size: 15px;
}
.cf-profile-level-tier__body span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--cf-text-secondary);
}
.cf-profile-level-tier__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.cf-profile-message-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cf-profile-message-total { border: 1px solid var(--cf-border); border-radius: 14px; padding: 14px 16px; background: #f8fafc; }
.cf-profile-message-total strong { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; color: var(--cf-text-primary); }
.cf-profile-message-total strong i { color: var(--coffee); }
.cf-profile-message-total span { display: block; margin-top: 6px; font-size: 12px; color: var(--cf-text-secondary); }
.cf-profile-sessions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.cf-profile-sessions-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--cf-text-secondary);
}
.cf-profile-sessions-summary strong {
  font-size: 24px;
  color: var(--cf-text-primary);
}
.cf-profile-sessions-summary span {
  font-size: 13px;
}
.cf-profile-sessions-bulk-btn {
  width: auto;
  min-height: 42px;
  padding-inline: 16px;
}
.cf-profile-session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cf-profile-session-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  background: #fff;
}
.cf-profile-session-item.is-current {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
}
.cf-profile-session-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: var(--cf-text-secondary);
  border: 1px solid #e4ecf3;
  font-size: 18px;
}
.cf-profile-session-item__body {
  min-width: 0;
}
.cf-profile-session-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cf-profile-session-item__top strong {
  font-size: 15px;
  color: var(--cf-text-primary);
}
.cf-profile-session-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4ef;
  color: var(--coffee-dark);
  font-size: 11px;
  font-weight: 700;
}
.cf-profile-session-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--cf-text-secondary);
  font-size: 12px;
}
.cf-profile-session-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cf-profile-session-item__agent {
  margin-top: 8px;
  color: var(--cf-text-secondary);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}
.cf-profile-session-item__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cf-profile-session-item__btn {
  width: auto;
  min-height: 40px;
  padding-inline: 16px;
}
.cf-profile-session-item__note {
  max-width: 190px;
  text-align: right;
  color: var(--cf-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.cf-profile-delete-account__lead {
  margin-top: 12px;
  color: var(--cf-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.cf-profile-delete-account__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cf-profile-delete-account__steps span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}
.cf-profile-note--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.cf-profile-delete-account__warning-box,
.cf-profile-delete-account__pending,
.cf-profile-delete-account__final-box {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
}
.cf-profile-delete-account__pending {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}
.cf-profile-delete-account__final-box {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #ecfdf3 0%, #fff 100%);
}
.cf-profile-delete-account__warning-icon,
.cf-profile-delete-account__pending-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid #fdba74;
  color: #9a3412;
  background: #fff;
}
.cf-profile-delete-account__pending-icon {
  border-color: #93c5fd;
  color: #1d4ed8;
}
.cf-profile-delete-account__warning-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--cf-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}
.cf-profile-delete-account__warning-list li + li {
  margin-top: 6px;
}
.cf-profile-delete-account__stage {
  margin-top: 16px;
}
.cf-profile-delete-account__form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.cf-profile-delete-account__form-row .cf-submit-btn {
  width: auto;
  min-height: 42px;
  padding-inline: 16px;
}
.cf-profile-delete-account__phrase-target {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed #fdba74;
  background: #fff7ed;
  color: #9a3412;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
}
.cf-profile-delete-account__otp-input {
  max-width: 220px;
  text-align: center;
  font-size: 24px;
  letter-spacing: .34em;
  font-weight: 700;
}
.cf-profile-delete-account__pending-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: var(--cf-text-secondary);
  font-size: 12px;
}
.cf-profile-delete-account__pending-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cf-profile-message-list { display: flex; flex-direction: column; gap: 0; margin-top: 14px; border: 1px solid var(--cf-border); border-radius: 16px; overflow: hidden; background: #fff; }
.cf-profile-message-row { border-bottom: 1px solid #eef2f6; background: #fff; }
.cf-profile-message-row:last-child { border-bottom: 0; }
.cf-profile-message-row.is-unread,
.cf-profile-message-row.has-reply { background: #fffaf2; }
.cf-profile-message-row__summary {
  width: 100%; display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 14px;
  align-items: center; padding: 14px 16px 10px; border: 0; background: transparent; text-align: left; cursor: pointer;
  appearance: none; font: inherit; color: inherit;
}
.cf-profile-message-row__summary:hover { background: rgba(248, 250, 252, .75); }
.cf-profile-message-row__identity { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-profile-message-row__identity.is-sent .cf-profile-message-row__participant::before { content: 'To '; color: var(--cf-text-secondary); font-weight: 500; }
.cf-profile-message-row__participant { font-size: 13px; font-weight: 700; color: var(--cf-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-profile-message-row__name { font-size: 12px; color: var(--cf-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-profile-message-row__name-btn { color: var(--cf-text-secondary); font-size: 12px; }
.cf-profile-message-row__content { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cf-profile-message-row__subject { font-size: 14px; font-weight: 700; color: var(--cf-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-profile-message-row__subject.is-highlight { color: #ea580c; }
.cf-profile-message-row__preview { font-size: 12px; color: var(--cf-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-profile-message-row__time { font-size: 12px; color: var(--cf-text-secondary); white-space: nowrap; }
.cf-profile-message-row__toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 12px 16px;
}
.cf-profile-message-row__status { display: inline-flex; align-items: center; gap: 6px; color: #c2410c; font-size: 11px; font-weight: 700; }
.cf-profile-message-row__status.is-read { color: #64748b; }
.cf-profile-message-row__link { display: inline-flex; align-items: center; gap: 6px; color: var(--cf-text-secondary); text-decoration: none; font-size: 12px; font-weight: 600; }
.cf-profile-message-row__link:hover { color: var(--coffee-dark); }
.cf-profile-message__detail { margin-top: 12px; border-top: 1px solid var(--cf-border); padding-top: 12px; }
.cf-profile-message__body { white-space: pre-wrap; color: var(--cf-text-primary); line-height: 1.7; }
.cf-profile-message-row .cf-profile-message__detail { margin: 0 16px 14px; }
.cf-profile-thread { display: flex; flex-direction: column; gap: 12px; }
.cf-profile-thread__loading,
.cf-profile-thread__empty { padding: 12px 0; color: var(--cf-text-secondary); font-size: 13px; }
.cf-profile-thread__item { display: flex; flex-direction: column; gap: 6px; max-width: 82%; }
.cf-profile-thread__item.is-mine { margin-left: auto; align-items: flex-end; }
.cf-profile-thread__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--cf-text-secondary); }
.cf-profile-thread__author { color: var(--cf-text-primary); }
.cf-profile-thread__handle { color: #94a3b8; }
.cf-profile-thread__time { white-space: nowrap; }
.cf-profile-thread__user { font-size: 12px; }
.cf-profile-thread__bubble {
  padding: 12px 14px; border-radius: 16px; background: #f8fafc; border: 1px solid #e5edf4;
  color: var(--cf-text-primary); line-height: 1.65; white-space: normal; word-break: break-word;
}
.cf-profile-thread__item.is-mine .cf-profile-thread__bubble {
  background: #fff4ef; border-color: #f8d7c4;
}
.cf-profile-notification-totals {
  margin-bottom: 6px;
}
.cf-profile-notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cf-profile-notification-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.cf-profile-notification-item.is-new {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}
.cf-profile-notification-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff4ef;
  color: var(--coffee-dark);
  border: 1px solid #f7d8c7;
  font-size: 18px;
}
.cf-profile-notification-item__body {
  min-width: 0;
}
.cf-profile-notification-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cf-profile-notification-item__type {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--cf-text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cf-profile-notification-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4ef;
  color: var(--coffee-dark);
  font-size: 11px;
  font-weight: 700;
}
.cf-profile-notification-item__title {
  display: inline-block;
  margin-top: 10px;
  color: var(--cf-text-primary);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}
.cf-profile-notification-item__title:hover {
  color: var(--coffee-dark);
}
.cf-profile-notification-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--cf-text-secondary);
  font-size: 12px;
}
.cf-profile-notification-item__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cf-profile-notification-item__excerpt {
  margin: 10px 0 0;
  color: var(--cf-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.cf-profile-notification-item__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cf-profile-notification-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e6edf3;
  color: var(--cf-text-primary);
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.cf-profile-notification-item__link:hover {
  border-color: #f3c7ac;
  color: var(--coffee-dark);
  background: #fff8f3;
}
.cf-profile-compose-note { margin-top: 14px; border-radius: 12px; padding: 12px 14px; background: #f8fafc; color: var(--cf-text-secondary); font-size: 13px; line-height: 1.6; }
.cf-profile-compose-feedback { display: none; margin-top: 14px; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.cf-profile-compose-feedback.is-success { display: block; background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.cf-profile-compose-feedback.is-error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.cf-user-trigger {
  appearance: none; background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.cf-user-trigger:hover {
  color: var(--coffee-dark); text-decoration: underline;
}
.cf-user-trigger:focus-visible {
  outline: 2px solid rgba(194, 95, 42, .25); outline-offset: 2px; border-radius: 4px;
}
.cf-user-trigger--strong {
  font-weight: 700;
}
.cf-user-preview__feedback {
  display: none; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5;
}
.cf-user-preview__feedback.is-error {
  display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.cf-user-preview-modal {
  width: min(100%, 440px);
  max-width: 440px;
}
.cf-user-preview-modal__body {
  padding: 18px;
}
.cf-user-preview__loading {
  font-size: 13px; color: var(--cf-text-secondary); padding: 10px 2px;
}
.cf-user-preview {
  display: flex; flex-direction: column; gap: 14px;
}
.cf-user-preview__hero {
  border: 1px solid #e8eef3; border-radius: 18px; padding: 14px; background:
  radial-gradient(circle at top right, rgba(194, 95, 42, .12), transparent 32%),
  linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}
.cf-user-preview__identity {
  display: flex; align-items: center; gap: 14px;
}
.cf-user-preview__avatar {
  width: 64px; height: 64px; border-radius: 20px; border: 1px solid #f2d5c7;
  background: linear-gradient(135deg, #fff4ec 0%, #f7dfd2 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 24px; font-weight: 800; color: var(--coffee-dark); flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.cf-user-preview__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.cf-user-preview__social-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.cf-user-preview__social-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cf-text-secondary);
  font-weight: 700;
}
.cf-user-preview__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cf-user-preview__social-link {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #dbe4ec;
  box-sizing: border-box;
}
.cf-user-preview__social-link i {
  color: inherit !important;
}
.cf-user-preview__social-link.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.cf-user-preview__social-link.is-empty {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.cf-user-preview__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border-radius: 999px;
  background: rgba(194, 95, 42, .09); color: var(--coffee-dark); font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px;
}
.cf-user-preview__meta strong {
  display: block; font-size: 24px; line-height: 1.08; color: var(--cf-text-primary);
}
.cf-user-preview__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cf-user-preview__username {
  display: inline-flex; margin-top: 8px; color: var(--cf-text-secondary); font-size: 13px;
  padding: 5px 9px; border-radius: 999px; background: rgba(148, 163, 184, .12);
}
.cf-user-preview__summary {
  margin-top: 10px; color: var(--cf-text-secondary); font-size: 12px; line-height: 1.55;
}
.cf-user-preview__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.cf-user-preview__stat {
  border: 1px solid #e8eef3; border-radius: 14px; padding: 12px 14px; background: #fbfdff;
  min-height: 76px; display: flex; flex-direction: column; justify-content: space-between;
}
.cf-user-preview__stat-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cf-text-secondary);
}
.cf-user-preview__stat-value {
  display: block; margin-top: 8px; font-size: 21px; line-height: 1.05; color: var(--cf-text-primary);
}
.cf-user-preview__actions {
  display: flex; justify-content: flex-end; padding-top: 2px;
}
.cf-user-preview__actions .cf-submit-btn {
  min-width: 160px; min-height: 42px; justify-content: center;
}
.cf-user-preview__actions .cf-submit-btn[disabled] {
  background: #f1f5f9; color: #64748b; border: 1px solid #dbe4ec; cursor: default; box-shadow: none;
}
.cf-user-preview__note {
  margin-top: -2px; font-size: 11px; color: var(--cf-text-secondary); text-align: right;
}
@media (max-width: 1100px) {
  .cf-profile-page { grid-template-columns: 1fr; }
  .cf-profile-sidebar { position: static; }
}
@media (max-width: 720px) {
  .cf-nav-user__dropdown--profile { width: min(92vw, 340px); right: -6px; }
  .cf-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-profile-grid, .cf-profile-form { grid-template-columns: 1fr; }
  .cf-user-inline-badge { gap: 6px; }
  .cf-user-level-badge__icon {
    width: 16px;
    height: 16px;
  }
  .cf-profile-level-hero,
  .cf-profile-level-metrics,
  .cf-profile-level-tier-list { grid-template-columns: 1fr; }
  .cf-profile-level-hero { padding: 18px; }
  .cf-profile-level-hero__title { align-items: flex-start; }
  .cf-profile-level-icon--hero {
    width: 58px;
    height: 58px;
  }
  .cf-profile-level-icon--tier {
    width: 56px;
    height: 56px;
  }
  .cf-profile-level-hero__main h2 { font-size: 28px; }
  .cf-profile-level-roadmap__item { gap: 12px; }
  .cf-profile-level-roadmap__count {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
    font-size: 17px;
  }
  .cf-profile-message-totals { grid-template-columns: 1fr; }
  .cf-profile-notification-item { grid-template-columns: 1fr; }
  .cf-profile-notification-item__action { justify-content: flex-start; }
  .cf-profile-notification-item__title { font-size: 15px; }
  .cf-profile-message-row__summary { grid-template-columns: 1fr; gap: 8px; }
  .cf-profile-message-row__time { order: -1; }
  .cf-profile-message-row__toolbar { flex-direction: column; align-items: flex-start; }
  .cf-profile-sessions-head { flex-direction: column; align-items: stretch; }
  .cf-profile-session-item { grid-template-columns: 1fr; }
  .cf-profile-session-item__action { justify-content: flex-start; }
  .cf-profile-session-item__note { max-width: none; text-align: left; }
  .cf-profile-delete-account__warning-box,
  .cf-profile-delete-account__pending,
  .cf-profile-delete-account__final-box { grid-template-columns: 1fr; }
  .cf-profile-delete-account__form-row { flex-direction: column; }
  .cf-profile-delete-account__form-row .cf-submit-btn { width: 100%; }
  .cf-profile-delete-account__otp-input { max-width: 100%; }
  .cf-user-preview-modal { width: min(100%, 400px); max-width: 400px; }
  .cf-user-preview-modal__body { padding: 16px; }
  .cf-user-preview__hero { padding: 14px; }
  .cf-user-preview__identity { align-items: flex-start; }
  .cf-user-preview__avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 22px; }
  .cf-user-preview__meta strong { font-size: 22px; }
  .cf-user-preview__username { font-size: 13px; }
  .cf-user-preview__stats { grid-template-columns: 1fr; }
  .cf-profile-form--social { grid-template-columns: 1fr; }
  .cf-user-preview__actions .cf-submit-btn { width: 100%; }
  .cf-user-preview__note { text-align: left; }
}
.cf-login-view { display: none; }
.cf-login-view.is-active { display: block; }
.cf-login-choice-screen { padding: 0; }
.cf-modal.cf-login-subview-active .cf-modal__head { justify-content: flex-end; padding: 8px 20px; }
.cf-modal.cf-login-subview-active .cf-modal__head h3 { display: none; }
.cf-login-section__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: none; border: none; cursor: pointer;
  text-align: left; transition: background .15s;
}
.cf-login-section__toggle:hover { background: var(--cf-surface-secondary); }
.cf-login-section__toggle--secondary { border-top: 1px solid var(--cf-border); }
.cf-login-section__toggle-left { display: flex; align-items: center; gap: 12px; }
.cf-login-section__badge {
  width: 36px; height: 36px; border-radius: 8px; background: #fff4ef;
  border: 1px solid #fde0d4; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.cf-login-section__toggle-title { font-size: 14px; font-weight: 700; color: var(--cf-text-primary); }
.cf-login-section__toggle-sub   { font-size: 12px; color: var(--cf-text-secondary); margin-top: 2px; }
.cf-login-section__chevron { font-size: 12px; color: var(--cf-text-secondary); transition: transform .2s; flex-shrink: 0; }
.cf-login-section__chevron.rotated { transform: rotate(180deg); }
.cf-login-section__body { display: none; padding: 0 20px 18px; }
.cf-login-section__body.open { display: block; }
.cf-login-step__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--cf-text-secondary);
  margin-bottom: 12px;
}
.cf-login-step__num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--coffee);
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* Company search */
.cf-company-search-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--cf-border); border-radius: 6px;
  padding: 8px 10px; background: #fff;
}
.cf-company-search-wrap:focus-within { border-color: var(--coffee); }
.cf-company-search-input {
  flex: 1; border: none; outline: none; font-size: 13px;
  font-family: inherit; background: transparent; color: var(--cf-text-primary);
}
.cf-company-list {
  max-height: 180px; overflow-y: auto; border: 1px solid var(--cf-border);
  border-top: none; border-radius: 0 0 6px 6px; background: #fff;
}
.cf-company-item {
  padding: 9px 12px; font-size: 13px; cursor: pointer;
  color: var(--cf-text-primary); transition: background .1s;
  display: flex; align-items: center; gap: 8px;
}
.cf-company-item:hover { background: #fff4ef; color: var(--coffee); }
.cf-company-item i { color: var(--cf-text-secondary); font-size: 12px; flex-shrink: 0; }
.cf-company-loading { padding: 14px; text-align: center; color: var(--cf-text-secondary); font-size: 13px; }
.cf-company-empty   { padding: 14px; text-align: center; color: var(--cf-text-secondary); font-size: 13px; }
/* Back button */
.cf-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--cf-text-secondary); background: none; border: none;
  cursor: pointer; padding: 0; margin-bottom: 12px;
}
.cf-back-btn:hover { color: var(--coffee); }
/* Login error */
.cf-login-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; color: #dc2626; margin-bottom: 10px;
}
/* Login form label */
.cf-form-label { font-size: 13px; font-weight: 600; color: var(--cf-text-primary); margin-bottom: 5px; display: block; }
/* Password toggle button */
.cf-pw-toggle {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--cf-text-secondary);
  padding: 0; line-height: 1; font-size: 14px;
}
.cf-pw-toggle:hover { color: var(--cf-text-primary); }
/* Login divider */
.cf-login-divider {
  display: flex; align-items: center;
  padding: 0 20px; margin: 2px 0;
}
.cf-login-divider::before,.cf-login-divider::after { content:''; flex:1; height:1px; background:var(--cf-border); }
.cf-login-divider span { margin: 0 10px; font-size: 12px; color: #9ca3af; }
