/* ===== DESIGN TOKENS ===== */
:root {
  --hot:       #ff5a1f;
  --hot-deep:  #d63b00;
  --hot-soft:  #fff1e6;
  --ink:       #0e1116;
  --ink2:      #1f2937;
  --bg:        #fafaf7;
  --paper:     #ffffff;
  --line:      #e8e4dc;
  --muted:     #6b6357;
  --mint:      #0e9670;
  --mint-soft: #e6f7f1;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}

/* Logo — text only, カカク ink / メルト orange */
.logo { display: flex; flex-direction: column; align-items: flex-start; flex-shrink: 0; gap: 1px; }
.logo-wordmark {
  display: flex; align-items: baseline; gap: 0;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 900; letter-spacing: -0.04em; line-height: 1;
}
.logo-hot   { font-size: 1.55rem; color: var(--ink); }
.logo-deals { font-size: 1.55rem; color: var(--hot); }
.logo-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}

/* Search */
.search-form {
  flex: 1; display: flex; align-items: center; max-width: 520px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 2px 4px 2px 12px; gap: 4px;
}
.search-form svg { color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1; padding: 9px 8px; font-size: 14px;
  border: none; outline: none; font-family: inherit;
  background: transparent; color: var(--ink);
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  padding: 7px 10px; background: transparent; color: var(--muted);
  border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; transition: color 0.15s, background 0.15s;
}
.search-btn:hover { color: var(--hot); background: var(--hot-soft); }

/* Language switcher */
.lang-switcher {
  display: flex; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px; flex-shrink: 0;
}
.lang-btn {
  padding: 4px 10px; font-size: 12px; font-weight: 700;
  color: var(--muted); background: transparent; border-radius: 6px;
  transition: all 0.15s; white-space: nowrap;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.lang-btn + .lang-btn { border-left: none; }

/* Header buttons */
.header-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.btn {
  padding: 7px 16px; border-radius: 8px; font-size: 13px;
  font-weight: 700; cursor: pointer; border: none;
  font-family: inherit; transition: all 0.15s; display: inline-block;
}
.btn-outline {
  background: transparent; border: 1px solid var(--line);
  color: var(--ink2);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink2); }
.btn-full {
  width: 100%; text-align: center; display: block;
  background: var(--hot); color: #fff; padding: 11px;
  box-shadow: 0 3px 0 var(--hot-deep);
}
.btn-full:hover { background: var(--hot-deep); box-shadow: 0 2px 0 var(--hot-deep); }
.btn-post-header {
  background: var(--hot); color: #fff;
  font-weight: 700; white-space: nowrap;
  box-shadow: 0 2px 0 var(--hot-deep);
}
.btn-post-header:hover { background: var(--hot-deep); }
.btn-lg {
  display: inline-block; padding: 12px 24px; font-size: 15px; font-weight: 700;
  background: var(--hot); color: #fff; border-radius: 10px; margin-top: 16px;
  box-shadow: 0 3px 0 var(--hot-deep);
}
.btn-lg:hover { background: var(--hot-deep); }

/* ===== CATEGORY NAV ===== */
.cat-nav {
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.cat-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 6px; padding: 10px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--ink2); white-space: nowrap; border-radius: 99px;
  transition: all 0.15s;
}
.cat-link:hover { color: var(--ink); background: var(--bg); }
.cat-link.active { background: var(--ink); color: #fff; }

/* ===== PAGE LAYOUT ===== */
.page-wrap {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px;
  padding: 24px 24px 40px;
}
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ===== SORT BAR ===== */
.sort-bar {
  background: var(--paper); border-radius: 12px; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; border: 1px solid var(--line);
  flex-wrap: wrap; gap: 8px;
}
.results-label { font-size: 13px; color: var(--muted); }
.results-label strong { color: var(--ink); font-weight: 800; }
.sort-links { display: flex; align-items: center; gap: 2px; }
.sort-label { font-size: 12px; color: var(--muted); margin-right: 6px; }
.sort-link {
  padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600;
  color: var(--ink2); background: transparent; transition: all 0.15s;
}
.sort-link:hover { color: var(--ink); background: var(--bg); }
.sort-link.active { background: var(--ink); color: #fff; }

/* ===== DEAL CARD ===== */
.deal-card {
  background: var(--paper); border-radius: 14px;
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 84px 190px 1fr;
  overflow: hidden; margin-bottom: 10px;
  transition: box-shadow 0.15s, transform 0.1s;
}
.deal-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-1px); }
.deal-card.deal-hot { border-left: 3px solid var(--hot); }

/* Temperature block */
.temp-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; gap: 6px; min-width: 84px;
  background: var(--bg); border-right: 1px solid var(--line);
}
.vote-btn {
  width: 72px; min-height: 26px; height: auto;
  border-radius: 7px;
  background: transparent; border: 1px solid #e0dbd3;
  cursor: pointer; font-size: 10px; color: #c5bfb7;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 5px 4px;
}
.vote-btn.vote-up:hover  { color: var(--hot);  background: var(--hot-soft);  border-color: var(--hot); }
.vote-btn.vote-down:hover { color: #2563eb; background: #eff6ff; border-color: #93c5fd; }
.temp-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 700; line-height: 1; padding: 2px 0;
}
.temp-hot  { color: var(--hot); }
.temp-warm { color: #f97316; }
.temp-cool { color: #2563eb; }

/* Thumbnail */
.deal-thumb-link { display: block; flex-shrink: 0; position: relative; }
.deal-thumb {
  width: 190px; height: 140px; flex-shrink: 0;
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #f3eee5; padding: 6px;
}
.deal-thumb img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform 0.2s; border-radius: 6px;
}
.deal-card:hover .deal-thumb img { transform: scale(1.04); }

/* Badges */
.badge {
  position: absolute; top: 9px; left: 9px;
  font-size: 10px; font-weight: 800; padding: 3px 8px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-free     { background: var(--mint);     color: #fff; }
.badge-discount { background: var(--hot);      color: #fff; }
.badge-expired  { background: var(--muted);    color: #fff; }
.badge-pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.badge-melt     { background: linear-gradient(135deg, var(--hot), #ff7a00) !important; }
.badge-upcoming { background: #7c3aed; color: #fff; }

/* Deal info */
.deal-info {
  flex: 1; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.deal-meta-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.deal-category {
  font-size: 11px; font-weight: 700; color: var(--hot-deep);
  background: var(--hot-soft); padding: 3px 9px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.deal-merchant { font-size: 12px; color: var(--muted); }
.deal-title {
  font-size: 15px; font-weight: 800; color: var(--ink);
  line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -0.01em;
}
.deal-title:hover { color: var(--hot); }
.deal-desc { font-size: 12px; color: var(--muted); line-height: 1.55; flex: 1; }

/* Price area */
.deal-footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px;
}
.deal-price-block { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.deal-price { font-size: 1.25rem; font-weight: 900; color: var(--hot); letter-spacing: -0.02em; }
.deal-price.free { color: var(--mint); }
.deal-original { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; }
.deal-saving {
  font-size: 11px; font-weight: 700; background: var(--mint); color: #fff;
  padding: 2px 7px; border-radius: 5px;
}
.deal-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stat { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.stat strong { color: var(--ink2); }
.btn-get-deal {
  display: inline-block; padding: 8px 16px; background: var(--hot); color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: background 0.15s; flex-shrink: 0;
  margin-top: 8px; align-self: flex-start;
}
.btn-get-deal:hover { background: var(--hot-deep); color: #fff; }

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement-banner {
  border-radius: 12px; margin: 0 0 14px; padding: 12px 16px;
  border: 1px solid; display: flex; align-items: center;
}
.announcement-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.announcement-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.announcement-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.announcement-inner { display: flex; align-items: flex-start; gap: 10px; width: 100%; }
.announcement-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.announcement-text { flex: 1; font-size: 13px; line-height: 1.5; min-width: 0; }
.announcement-close {
  background: none; border: none; font-size: 16px; cursor: pointer;
  flex-shrink: 0; color: inherit; opacity: 0.6; padding: 0 2px;
  line-height: 1;
}
.announcement-close:hover { opacity: 1; }

/* ===== NO RESULTS ===== */
.no-results {
  background: var(--paper); border-radius: 14px; padding: 40px;
  text-align: center; color: var(--muted); border: 1px solid var(--line);
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-widget {
  background: var(--paper); border-radius: 14px;
  border: 1px solid var(--line); overflow: hidden;
}
.widget-title {
  font-size: 13px; font-weight: 800; padding: 14px 18px;
  border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase;
}
.widget-text { font-size: 13px; color: var(--muted); padding: 14px 18px; line-height: 1.6; }
.widget-text a { color: var(--hot); }
.widget-text a:hover { text-decoration: underline; }

/* Top deals list */
.top-deals-list { padding: 6px 0; }
.top-deal-item {
  display: flex; align-items: center; padding: 9px 18px; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.top-deal-item:last-child { border-bottom: none; }
.top-deal-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.top-deal-img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0; background: var(--bg);
}
.top-deal-title {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink2);
  line-height: 1.35;
}
.top-deal-title:hover { color: var(--hot); }
.top-deal-price {
  display: block; font-size: 12px; font-weight: 700; color: var(--hot); margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.top-deal-price.free { color: var(--mint); }
.top-deal-temp {
  font-size: 12px; font-weight: 700; color: var(--hot); flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* Category list */
.cat-list { padding: 8px 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: none; }
.cat-list-link {
  display: block; padding: 9px 18px; font-size: 13px; font-weight: 600;
  color: var(--ink2); transition: all 0.1s;
}
.cat-list-link:hover, .cat-list-link.active {
  color: var(--hot); background: var(--hot-soft); padding-left: 22px;
}

/* ===== DEAL DETAIL ===== */
.breadcrumb {
  font-size: 12px; color: var(--muted); margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase;
}
.breadcrumb a { color: var(--hot); }
.breadcrumb a:hover { text-decoration: underline; }

.deal-detail {
  background: var(--paper); border-radius: 18px; border: 1px solid var(--line);
  overflow: hidden; margin-bottom: 24px;
}
.deal-detail-header {
  display: flex; gap: 28px; padding: 28px; flex-wrap: wrap;
}
.deal-detail-thumb {
  width: 260px; flex-shrink: 0; position: relative;
  border-radius: 12px; overflow: hidden; background: #f3eee5;
}
.deal-detail-thumb img { width: 100%; height: 260px; object-fit: cover; }
.deal-detail-info { flex: 1; min-width: 0; }
.deal-detail-title {
  font-size: 1.35rem; font-weight: 900; color: var(--ink);
  margin: 8px 0 14px; line-height: 1.25; letter-spacing: -0.02em;
}
.deal-detail-price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.deal-detail-meta {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px;
  color: var(--muted); margin-bottom: 16px;
}
.deal-detail-meta strong { color: var(--ink2); }

.deal-detail-vote {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  padding: 14px 18px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
}
.vote-btn-lg {
  padding: 9px 18px; border: 1px solid; border-radius: 9px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.vote-btn-lg.vote-up { border-color: var(--hot); color: var(--hot); background: var(--hot-soft); }
.vote-btn-lg.vote-up:hover { background: var(--hot); color: #fff; }
.vote-btn-lg.vote-down { border-color: var(--line); color: var(--ink2); background: var(--paper); }
.vote-btn-lg.vote-down:hover { border-color: #93c5fd; color: #2563eb; background: #eff6ff; }
.temp-display .temp-value {
  font-size: 2rem; font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
}

.deal-detail-body { padding: 24px 28px; border-top: 1px solid var(--line); }
.deal-detail-body h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.deal-detail-body p { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* Related deals */
.related-deals { margin-bottom: 24px; }
.section-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.related-card {
  background: var(--paper); border-radius: 12px; border: 1px solid var(--line);
  overflow: hidden; transition: box-shadow 0.15s, transform 0.1s;
}
.related-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-2px); }
.related-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.related-card-info { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.related-title { font-size: 12px; font-weight: 600; color: var(--ink2); line-height: 1.4; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink); color: #9a9388; margin-top: 40px; padding: 32px 24px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-logo {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 900; letter-spacing: -0.04em; font-size: 1.3rem; line-height: 1;
}
.footer-logo .logo-hot   { color: var(--ink2); color: #cfc8b8; }
.footer-logo .logo-deals { color: var(--hot); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-nav a { font-size: 13px; color: #9a9388; transition: color 0.15s; }
.footer-nav a:hover { color: var(--hot); }
.footer-copy { font-size: 12px; color: #6b6357; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.temp-value.voted { animation: pulse 0.3s ease; }

/* ===== USER CHIP (logged-in header) ===== */
.user-chip { display: flex; align-items: center; gap: 7px; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--line); flex-shrink: 0;
}
.user-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--hot); color: #fff;
  font-size: 13px; font-weight: 800;
}
.user-name { font-size: 13px; font-weight: 700; color: var(--ink); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== LOGIN PAGE ===== */
.login-body { background: linear-gradient(135deg, var(--hot-soft) 0%, var(--bg) 100%); min-height: 100vh; }

.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 16px;
}

.login-topbar {
  width: 100%; max-width: 420px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.login-back {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--muted); transition: color 0.15s;
}
.login-back:hover { color: var(--hot); }

.lang-switcher-dark { }
.lang-switcher-dark .lang-btn { color: var(--muted); }
.lang-switcher-dark .lang-btn:hover { color: var(--ink); }
.lang-switcher-dark .lang-btn.active { background: var(--ink); color: #fff; box-shadow: none; }

.login-card {
  background: var(--paper); border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  padding: 40px 36px; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 1px solid var(--line);
}

.login-logo {
  display: flex; align-items: baseline; gap: 0; margin-bottom: 20px;
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 900; letter-spacing: -0.04em; font-size: 1.8rem; line-height: 1;
}
.login-logo .logo-hot   { color: var(--ink); }
.login-logo .logo-deals { color: var(--hot); }

.login-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 28px; }

.login-error {
  width: 100%; background: #fff3cd; border: 1px solid #ffc107;
  color: #856404; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 16px; text-align: center;
}

/* Social buttons */
.social-btn {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 12px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  transition: all 0.15s; cursor: pointer; margin-bottom: 12px;
  border: none;
}
.social-btn-google {
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.social-btn-google:hover { background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,0.10); }
.social-btn-facebook { background: #1877F2; color: #fff; }
.social-btn-facebook:hover { background: #166FE5; }
.social-btn-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.social-icon { width: 20px; height: 20px; flex-shrink: 0; }
.not-configured-tag {
  margin-left: auto; font-size: 11px; font-weight: 800;
  background: rgba(0,0,0,0.10); padding: 2px 6px; border-radius: 4px;
}

.login-divider {
  width: 100%; display: flex; align-items: center; gap: 12px;
  margin: 4px 0 16px; color: var(--line); font-size: 12px;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.login-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.6; }
.login-note a { color: var(--hot); }
.login-note a:hover { text-decoration: underline; }

/* Auth tabs */
.auth-tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px 0; font-size: 14px; font-weight: 700; font-family: inherit;
  background: none; border: none; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tab.active { color: var(--hot); border-bottom-color: var(--hot); }
.auth-tab:hover:not(.active) { color: var(--ink2); }

/* ===== AUTH FORMS ===== */
.auth-form { width: 100%; margin-bottom: 4px; }
.auth-form-group { margin-bottom: 14px; width: 100%; }
.auth-form-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.auth-required { color: var(--hot); }
.auth-form-input {
  display: block; width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--bg); transition: border-color 0.15s;
  box-sizing: border-box;
}
.auth-form-input:focus { outline: none; border-color: var(--hot); background: var(--paper); box-shadow: 0 0 0 3px rgba(255,90,31,0.08); }
.auth-field-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.auth-submit-btn {
  display: block; width: 100%; padding: 12px;
  background: var(--hot); color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.15s; margin-top: 4px;
  box-shadow: 0 3px 0 var(--hot-deep);
}
.auth-submit-btn:hover { background: var(--hot-deep); box-shadow: 0 2px 0 var(--hot-deep); }
.auth-link { color: var(--hot); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* ===== VOTE ACTIVE STATE ===== */
.vote-btn.vote-up.active   { color: var(--hot);  background: var(--hot-soft); border-color: var(--hot); }
.vote-btn.vote-down.active { color: #2563eb; background: #eff6ff; border-color: #93c5fd; }
.vote-btn-lg.vote-up.active   { background: var(--hot); color: #fff; border-color: var(--hot); }
.vote-btn-lg.vote-down.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.vote-btn.vote-muted, .vote-btn-lg.vote-muted { opacity: 0.22; cursor: not-allowed; }

/* ===== PRICE DISPLAY (deal card) ===== */
.price-main-row { display: flex; align-items: center; gap: 6px; }
.postage-line {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--muted); margin-top: 2px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
  background: linear-gradient(135deg, #fff6f0 0%, #fff9f5 60%, #f0fdf4 100%);
  border: 1px solid #ffd0a8; border-radius: 14px;
  margin: 0 0 16px; padding: 18px 20px; position: relative; overflow: hidden;
}
.welcome-banner-inner { display: flex; gap: 14px; align-items: flex-start; }
.welcome-icon { font-size: 26px; flex-shrink: 0; line-height: 1.1; }
.welcome-text { flex: 1; min-width: 0; }
.welcome-text strong { display: block; font-size: 14px; font-weight: 800; color: var(--hot); margin-bottom: 5px; }
.welcome-text p { font-size: 13px; color: var(--ink2); line-height: 1.65; margin: 0 0 3px; }
.welcome-text p:last-child { margin-bottom: 0; }
.welcome-close {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 16px; padding: 0; flex-shrink: 0; line-height: 1;
  transition: color 0.15s; align-self: flex-start;
}
.welcome-close:hover { color: var(--ink); }

/* ===== PLACEHOLDER PICKER ===== */
.placeholder-picker {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
.placeholder-picker-label { font-size: 12px; color: var(--muted); }
.placeholder-color-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s; flex-shrink: 0;
}
.placeholder-color-btn:hover { transform: scale(1.25); border-color: var(--ink); }
.placeholder-color-btn.selected { border-color: var(--ink); transform: scale(1.1); }

/* ===== EXPIRED DEALS ===== */
.deal-expired { opacity: 0.55; }
.deal-expired .deal-title { color: var(--muted); }
.deal-expired .deal-price { color: var(--muted) !important; }
.deal-expired .deal-thumb img { filter: grayscale(60%); }
.expired-banner {
  background: #fff3cd; border: 1px solid #ffc107; color: #856404;
  border-radius: 10px; padding: 10px 16px; font-size: 13px;
  font-weight: 600; margin-bottom: 12px;
}
.deal-detail-expired { opacity: 0.75; }

/* ===== VOUCHER CHIP ===== */
.voucher-chip {
  display: inline-flex; align-items: center;
  background: var(--hot-soft); color: var(--hot); border: 1px solid #ffd0a8;
  border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}

/* ===== INLINE BADGE (in-store) ===== */
.badge-inline {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 5px; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-instore { background: #eff6ff; color: #1d4ed8; }

/* ===== DEAL DETAIL CTA ROW ===== */
.deal-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-voucher {
  background: var(--hot); color: #fff; border: none;
  font-family: inherit; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px;
  box-shadow: 0 3px 0 var(--hot-deep);
}
.btn-voucher:hover { background: var(--hot-deep); }
.btn-voucher-copied { background: var(--mint) !important; }
.voucher-inline {
  background: rgba(255,255,255,0.25); border-radius: 4px;
  padding: 2px 7px; font-size: 0.85em; letter-spacing: 1px;
}
.btn-kakaku {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: var(--paper); color: var(--ink2); border: 1px solid var(--line);
  transition: all 0.15s;
}
.btn-kakaku:hover { border-color: var(--hot); color: var(--hot); background: var(--hot-soft); }
.deal-saving-lg { font-size: 14px; padding: 4px 10px; }

/* Voucher code display */
.voucher-code-display {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px; font-size: 13px;
  letter-spacing: 1.5px; font-weight: 700; color: var(--hot);
  font-family: 'JetBrains Mono', monospace;
}

/* Deal body HTML */
.deal-body-html { font-size: 14px; color: var(--ink2); line-height: 1.75; }
.deal-body-html p { margin-bottom: 10px; }
.deal-body-html ul, .deal-body-html ol { padding-left: 20px; margin-bottom: 10px; }
.deal-body-html li { margin-bottom: 4px; }
.deal-body-html strong { color: var(--ink); }
.deal-body-html a { color: var(--hot); text-decoration: underline; }
.deal-body-html img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* ===== POST DEAL FORM ===== */
.post-page { max-width: 1280px; margin: 0 auto; padding: 24px 24px 60px; }
.post-container {
  background: var(--paper); border-radius: 16px; border: 1px solid var(--line);
  max-width: 720px; margin: 0 auto; padding: 36px;
}
@media (max-width: 600px) { .post-container { padding: 20px 16px; } }

.post-heading { font-size: 1.4rem; font-weight: 900; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.02em; }

/* Step tabs */
.step-tabs {
  display: flex; gap: 0; margin-bottom: 0;
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.step-tabs::-webkit-scrollbar { display: none; }
.step-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: none; border: none; cursor: default;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.15s;
}
.step-tab.active { color: var(--hot); border-bottom-color: var(--hot); }
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid var(--line);
}
.step-tab.active .step-num { background: var(--hot); color: #fff; border-color: var(--hot); }

/* Progress bar */
.step-progress { height: 2px; background: var(--line); margin-bottom: 28px; }
.step-progress-bar { height: 100%; background: var(--hot); transition: width 0.35s ease; }

/* Form step panels */
.form-step { display: none; }
.form-step.active { display: block; }

/* Form rows */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row-check { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 10px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row-2col { grid-template-columns: 1fr; } }

.form-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.req { color: var(--hot); }
.field-error { font-size: 12px; color: #dc2626; min-height: 16px; }

.form-input {
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 10px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--bg); color: var(--ink); width: 100%;
}
.form-input:focus { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,90,31,0.08); background: var(--paper); }

.form-select-lg { height: 46px; }

/* Price prefix */
.input-prefix-wrap { display: flex; }
.input-prefix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--bg); border: 1.5px solid var(--line); border-right: none;
  border-radius: 10px 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted);
  flex-shrink: 0;
}
.input-prefix-wrap .form-input { border-radius: 0 10px 10px 0; flex: 1; }

/* Checkbox */
.check-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink2); cursor: pointer; user-select: none; }
.check-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--hot); cursor: pointer; }

/* Online / offline toggle */
.toggle-group { display: flex; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); }
.toggle-btn {
  flex: 1; padding: 9px 12px; font-size: 13px; font-weight: 600;
  background: var(--bg); color: var(--muted); border: none; font-family: inherit; cursor: pointer;
  transition: all 0.15s;
}
.toggle-btn + .toggle-btn { border-left: 1.5px solid var(--line); }
.toggle-btn.active { background: var(--hot); color: #fff; }

/* Image upload zone */
.upload-zone {
  border: 2px dashed var(--line); border-radius: 12px;
  background: var(--bg); position: relative; cursor: pointer;
  transition: border-color 0.15s, background 0.15s; overflow: hidden;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--hot); background: var(--hot-soft); }
.upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; gap: 10px; text-align: center;
}
.upload-placeholder p { font-size: 14px; color: var(--muted); }
.upload-placeholder small { font-size: 11px; color: var(--muted); opacity: 0.7; }
.upload-preview {
  display: block; width: 100%; max-height: 280px;
  object-fit: contain; border-radius: 10px;
}

/* "or" divider */
.form-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--line); font-size: 12px; margin: 8px 0 16px;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Emoji bar */
.emoji-bar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px 0; margin-top: 10px;
}
.emoji-pick {
  background: none; border: 1px solid var(--line); border-radius: 7px;
  padding: 5px 7px; font-size: 16px; cursor: pointer; line-height: 1;
  transition: background 0.1s, transform 0.1s;
}
.emoji-pick:hover { background: var(--hot-soft); transform: scale(1.15); }

/* Navigation buttons */
.form-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  gap: 12px;
}
.btn-nav {
  padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; border: none; transition: all 0.15s;
}
.btn-prev { background: var(--bg); color: var(--ink2); border: 1px solid var(--line); }
.btn-prev:hover { background: var(--line); }
.btn-next { background: var(--hot); color: #fff; margin-left: auto; box-shadow: 0 3px 0 var(--hot-deep); }
.btn-next:hover { background: var(--hot-deep); }
.btn-submit { background: var(--mint); color: #fff; margin-left: auto; box-shadow: 0 3px 0 #0a6b4e; }
.btn-submit:hover { background: #0a6b4e; }
.btn-submit:disabled { background: var(--muted); cursor: not-allowed; box-shadow: none; }

/* Review card */
.review-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.review-card { background: var(--bg); border-radius: 12px; padding: 20px; border: 1px solid var(--line); }
.review-img {
  max-height: 180px; object-fit: contain; border-radius: 10px;
  margin-bottom: 16px; max-width: 100%;
}
.review-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.review-table th {
  text-align: left; padding: 7px 10px 7px 0;
  color: var(--muted); font-weight: 700; width: 38%; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.review-table td {
  padding: 7px 0; color: var(--ink);
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.review-table tr:last-child th,
.review-table tr:last-child td { border-bottom: none; }
.review-submit-row { margin-top: 14px; }
.review-note { font-size: 13px; color: var(--muted); }

/* ===== POINTS SUFFIX ===== */
.input-suffix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--bg); border: 1.5px solid var(--line); border-left: none;
  border-radius: 0 10px 10px 0; font-size: 14px; font-weight: 700; color: var(--muted);
  flex-shrink: 0;
}
.input-prefix-wrap .form-input:has(+ .input-suffix) { border-radius: 0; }

/* ===== MELT PRICE — DEAL CARD ===== */
.melt-price-row {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.melt-label {
  font-size: 10px; font-weight: 700; color: var(--hot);
  background: var(--hot-soft); border-radius: 4px; padding: 1px 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
}
.melt-price { font-size: 1.25rem; font-weight: 900; color: var(--hot); letter-spacing: -0.02em; }
.melt-saving { background: var(--hot); color: #fff; }
.surface-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px;
}
.surface-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.point-plain {
  font-size: 11px; color: var(--muted); background: var(--bg);
  border-radius: 4px; padding: 1px 6px; border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
}

/* Point economy badges */
.point-badge {
  font-size: 11px; font-weight: 700; border-radius: 5px;
  padding: 2px 7px; white-space: nowrap; font-family: 'JetBrains Mono', monospace;
}
.point-badge-rakuten { background: #bf0000; color: #fff; }
.point-badge-paypay  { background: #ff0033; color: #fff; }
.point-badge-dpoint  { background: #e91e63; color: #fff; }
.point-badge-amazon  { background: #ff9900; color: var(--ink); }
.point-badge-vpoint  { background: #1d4ed8; color: #fff; }
.point-badge-aupay   { background: #f57c00; color: #fff; }

/* Kakaku badge (card) */
.kakaku-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: #1e3a8a; color: #fff; border-radius: 5px;
  padding: 2px 7px; margin-top: 4px;
}

/* ===== MELT PRICE — DEAL DETAIL ===== */
.deal-price-lg  { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; }
.deal-original-lg { font-size: 1.1rem; }

.melt-price-detail { display: flex; flex-direction: column; gap: 6px; }
.melt-price-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.melt-label-lg {
  font-size: 11px; font-weight: 700; color: var(--hot);
  background: var(--hot-soft); border-radius: 5px; padding: 3px 9px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}
.melt-price-lg { font-size: 2.2rem; font-weight: 900; color: var(--hot); letter-spacing: -0.03em; }

.melt-breakdown {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.melt-breakdown .surface-price { text-decoration: line-through; }
.melt-breakdown .point-badge { font-size: 12px; }

.kakaku-badge-lg {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  background: #1e3a8a; color: #fff;
  border-radius: 6px; padding: 3px 10px;
}
.kakaku-ref {
  font-size: 12px; color: var(--muted);
  background: var(--bg); border-radius: 5px; padding: 2px 8px;
  border: 1px solid var(--line);
}

/* ===== PERIOD TABS ===== */
.period-tabs {
  display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; padding: 12px 18px 0;
}
.period-tab {
  padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
  background: var(--bg); color: var(--muted);
  transition: all 0.15s; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em;
  border: 1px solid var(--line);
}
.period-tab:hover { background: var(--hot-soft); color: var(--hot); border-color: var(--hot); }
.period-tab.active { background: var(--hot); color: #fff; border-color: var(--hot); }
.top-deal-rank {
  font-size: 12px; font-weight: 900; color: var(--muted);
  min-width: 18px; text-align: center; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.top-deal-item:first-child .top-deal-rank { color: var(--hot); }
.top-deal-item:nth-child(2) .top-deal-rank { color: #888; }
.top-deal-item:nth-child(3) .top-deal-rank { color: #a0522d; }

/* ===== VOTE ANIMATIONS ===== */
@keyframes voteFlashHot {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,31,0.75); transform: scale(1); }
  40%  { box-shadow: 0 0 0 12px rgba(255,90,31,0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); transform: scale(1); }
}
@keyframes voteFlashCold {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.75); transform: scale(1); }
  40%  { box-shadow: 0 0 0 12px rgba(37,99,235,0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); transform: scale(1); }
}
.vote-flash-hot  { animation: voteFlashHot  0.45s ease-out; }
.vote-flash-cold { animation: voteFlashCold 0.45s ease-out; }

/* ===== COMMENTS ===== */
.comments-section {
  background: var(--paper);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid var(--line);
}
.comment-form { margin-bottom: 24px; }
.comment-form-row { display: flex; gap: 12px; align-items: flex-start; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.comment-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hot); color: #fff; font-weight: 800; font-size: 15px;
  width: 36px; height: 36px; border-radius: 50%;
}
.comment-input-wrap { flex: 1; }
.comment-textarea {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; resize: vertical;
  transition: border-color 0.15s; line-height: 1.5; background: var(--bg);
}
.comment-textarea:focus { outline: none; border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,90,31,0.08); background: var(--paper); }
.comment-form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; }
.comment-char-hint { font-size: 12px; color: var(--muted); }
.btn-comment-submit {
  padding: 7px 18px; font-size: 13px; font-weight: 700;
  background: var(--hot); color: #fff; border-radius: 8px;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.15s; box-shadow: 0 2px 0 var(--hot-deep);
}
.btn-comment-submit:hover { background: var(--hot-deep); }
.comment-login-prompt { text-align: center; padding: 20px 0; }
.comments-empty { color: var(--muted); font-size: 14px; padding: 16px 0; }
.comments-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.comment-item { display: flex; gap: 12px; align-items: flex-start; }
.comment-body-wrap { flex: 1; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 14px; font-weight: 700; color: var(--ink); }
.comment-time { font-size: 12px; color: var(--muted); }
.comment-body { font-size: 14px; line-height: 1.65; color: var(--ink2); white-space: pre-wrap; word-break: break-word; }
.comment-delete-form { margin-top: 4px; }
.comment-delete-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--muted); font-family: inherit; padding: 0;
  transition: color 0.15s;
}
.comment-delete-btn:hover { color: var(--hot); }

/* ===== PROFILE PAGE ===== */
.profile-page { max-width: 820px; margin: 32px auto; padding: 0 24px 60px; }
.profile-header-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--paper); border-radius: 16px; padding: 28px;
  border: 1px solid var(--line); margin-bottom: 24px;
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--hot-soft);
}
.profile-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hot); color: #fff; font-size: 32px; font-weight: 900;
  width: 80px; height: 80px; border-radius: 50%;
}
.profile-header-info { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.profile-display-name { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0; }
.admin-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--hot-soft); color: var(--hot); border: 1px solid #ffd0a8;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px;
}
.profile-username { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.profile-email-text { font-size: 13px; color: var(--muted); opacity: 0.7; margin: 0 0 10px; }
.profile-stats-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-stat-pill {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg); border-radius: 10px; padding: 8px 16px; min-width: 64px;
  border: 1px solid var(--line);
}
.pstat-val { font-size: 17px; font-weight: 900; color: var(--hot); line-height: 1.2; }
.pstat-label { font-size: 11px; color: var(--muted); font-weight: 600; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; }
.profile-since { font-size: 12px; color: var(--muted); opacity: 0.7; margin: 0; }

.profile-body { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 680px) { .profile-body { grid-template-columns: 1fr; } .profile-header-card { flex-direction: column; } }

.profile-edit-card, .profile-deals-card {
  background: var(--paper); border-radius: 14px; padding: 24px;
  border: 1px solid var(--line);
}
.profile-section-title { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
.profile-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 16px;
}

.profile-deals-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.profile-deal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.profile-deal-row:last-child { border-bottom: none; }
.profile-deal-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.profile-deal-info { flex: 1; min-width: 0; }
.profile-deal-title {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.profile-deal-title:hover { color: var(--hot); }
.profile-deal-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.deal-time { font-size: 12px; color: var(--muted); }
.btn-edit-deal {
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  color: var(--hot); border: 1px solid var(--hot); border-radius: 7px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.btn-edit-deal:hover { background: var(--hot); color: #fff; }
.deal-expired .profile-deal-title { color: var(--muted); }

/* ===== EDIT DEAL PAGE ===== */
.post-page { max-width: 760px; margin: 32px auto; padding: 0 24px 60px; }
.post-container { background: var(--paper); border-radius: 16px; padding: 32px; border: 1px solid var(--line); }
.edit-deal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.post-heading { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.edit-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.edit-section:last-of-type { border-bottom: none; }
.edit-section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; font-family: 'JetBrains Mono', monospace; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edit-col-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .edit-grid { grid-template-columns: 1fr; } .edit-col-full { grid-column: 1; } }
.edit-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.edit-section-admin { background: var(--hot-soft); border-radius: 12px; padding: 16px; border: 1px solid #ffd0a8; margin-bottom: 28px; }
.edit-section-admin .edit-section-title { color: var(--hot); }
.toggle-row { display: flex; gap: 8px; }
.toggle-btn {
  padding: 7px 18px; font-size: 13px; font-weight: 600; border-radius: 99px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer;
  font-family: inherit; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.toggle-btn.active { background: var(--hot); color: #fff; border-color: var(--hot); }
.field-hint { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

/* ===== DEAL UPDATED BANNER ===== */
.deal-updated-banner {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}

/* ===== POST FORM — NEW ELEMENTS ===== */
.post-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  margin: 24px 0 10px; border-top: 1px solid var(--line); padding-top: 18px;
}
.post-section-label:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* Price display mode grid */
.price-display-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (max-width: 480px) { .price-display-grid { grid-template-columns: 1fr 1fr; } }

.price-display-opt {
  display: flex; flex-direction: column; gap: 4px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  background: var(--bg);
  position: relative;
}
.price-display-opt input[type=radio] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.price-display-opt:hover { border-color: var(--hot); background: var(--hot-soft); }
.price-display-opt.active {
  border-color: var(--hot); background: var(--hot-soft);
  box-shadow: 0 0 0 3px rgba(255,90,31,0.10);
}
.pdo-label { font-size: 12px; font-weight: 700; color: var(--ink2); }
.pdo-example {
  font-size: 1rem; font-weight: 900; color: var(--hot);
  font-family: 'JetBrains Mono', monospace; letter-spacing: -0.02em;
}
.price-display-opt.active .pdo-label { color: var(--hot); }

/* Kakaku URL + scrape button row */
.kakaku-input-row {
  display: flex; gap: 8px; align-items: stretch;
}
.kakaku-input-row .form-input { flex: 1; min-width: 0; }
.btn-kakaku-scrape {
  padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
  transition: background 0.15s;
}
.btn-kakaku-scrape:hover { background: var(--ink2); }
.btn-kakaku-scrape:disabled { background: var(--muted); cursor: not-allowed; }

/* Kakaku scraped image preview (step 1) */
.kakaku-scraped-img {
  max-height: 130px; max-width: 100%; object-fit: contain;
  border-radius: 8px; border: 1px solid var(--line);
  margin-top: 8px; background: var(--bg);
}

/* Kakaku status message */
.kakaku-status {
  padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  margin-top: 6px;
}
.kakaku-status-loading { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.kakaku-status-ok      { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.kakaku-status-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Body char counter */
.body-counter-row {
  display: flex; justify-content: flex-end; margin-top: 4px;
}
#bodyCharCount {
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  display: inline-block; padding: 4px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
  transition: all 0.15s; cursor: pointer;
}
.filter-chip:hover { border-color: var(--hot); color: var(--hot); background: var(--hot-soft); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-group { display: flex; align-items: center; gap: 5px; }
.filter-label {
  font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.07em; text-transform: uppercase;
}
.filter-select {
  padding: 4px 7px; border-radius: 8px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink2);
  font-family: 'JetBrains Mono', monospace; cursor: pointer; transition: border-color 0.15s;
}
.filter-select:focus { outline: none; border-color: var(--hot); }
.filter-select.active { border-color: var(--hot); color: var(--hot); background: var(--hot-soft); }

/* Vote button labels */
.vote-btn, .vote-btn-lg {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0;
  white-space: nowrap;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--ink); color: #fff;
  padding: 12px 24px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner-out { transform: translateY(100%); opacity: 0; }
.cookie-banner-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 200px; font-size: 13px; line-height: 1.5; }
.cookie-banner-text strong { display: block; margin-bottom: 2px; font-size: 14px; }
.cookie-banner-text p { margin: 0; }
.cookie-banner-text a { color: #ffb380; text-decoration: underline; }
.cookie-banner-btns {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; align-items: center;
}
.cookie-btn {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
  transition: background 0.15s, opacity 0.15s;
}
.cookie-btn-accept { background: var(--hot); color: #fff; }
.cookie-btn-accept:hover { background: var(--hot-deep); }
.cookie-btn-essential {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
.cookie-btn-essential:hover { background: rgba(255,255,255,0.1); }
.cookie-btn-learn { background: transparent; color: rgba(255,255,255,0.6); font-size: 12px; }
.cookie-btn-learn:hover { color: #fff; }

/* ===== INFINITE SCROLL LOADER ===== */
#infiniteLoader { display: none; justify-content: center; padding: 20px; }
.infinite-loader-inner {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.infinite-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--hot);
  animation: spin 0.75s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== LEGAL PAGES ===== */
.legal-page { max-width: 860px; margin: 36px auto; padding: 0 24px 60px; }
.legal-container {
  background: var(--paper); border-radius: 16px; padding: 40px;
  border: 1px solid var(--line);
}
.legal-container h1 { font-size: 26px; font-weight: 900; margin: 0 0 4px; letter-spacing: -0.02em; }
.legal-updated { font-size: 12px; color: var(--muted); margin: 0 0 32px; font-family: 'JetBrains Mono', monospace; }
.legal-container h2 {
  font-size: 16px; font-weight: 800; color: var(--ink); margin: 28px 0 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 6px;
}
.legal-container h3 { font-size: 14px; font-weight: 700; color: var(--ink2); margin: 16px 0 6px; }
.legal-container p { font-size: 14px; line-height: 1.75; color: var(--ink2); margin: 0 0 10px; }
.legal-container ul { padding-left: 20px; margin: 0 0 10px; }
.legal-container ul li { font-size: 14px; line-height: 1.75; color: var(--ink2); list-style: disc; margin-bottom: 4px; }
.legal-container a { color: var(--hot); text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0 16px; }
.legal-table th, .legal-table td {
  border: 1px solid var(--line); padding: 8px 12px; text-align: left;
}
.legal-table th { background: var(--bg); font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 600px) {
  .legal-container { padding: 24px 16px; }
  .legal-table { font-size: 12px; }
  .legal-table td, .legal-table th { padding: 6px 8px; }
}

/* ===== ADMIN PAGE ===== */
.admin-page { max-width: 1100px; margin: 32px auto; padding: 0 24px 60px; }
.admin-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  padding-bottom: 20px; border-bottom: 2px solid var(--hot);
}
.admin-nav {
  display: flex; gap: 0; border-bottom: 2px solid var(--line);
  margin-bottom: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.admin-nav-item {
  padding: 10px 20px; font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .02em;
}
.admin-nav-item:hover { color: var(--ink); }
.admin-nav-item.active { color: var(--hot); border-bottom-color: var(--hot); }
.quick-post-prompt {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6;
  background: #1e1e2e; color: #cdd6f4; border: none; border-radius: 10px;
  padding: 14px 16px; width: 100%; resize: vertical; min-height: 160px; box-sizing: border-box;
}
.quick-post-json {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 14px 16px; width: 100%; resize: vertical; min-height: 300px; box-sizing: border-box;
}
.quick-post-step {
  font-size: 11px; font-weight: 800; color: var(--hot); text-transform: uppercase;
  letter-spacing: .1em; font-family: 'JetBrains Mono', monospace;
  margin: 4px 0 10px; padding: 5px 10px; background: var(--hot-soft);
  border-radius: 6px; display: inline-block;
}
.admin-header h1 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.admin-back { font-size: 13px; color: var(--hot); }
.admin-section {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 24px; overflow: hidden;
}
.admin-section-header {
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
}
.admin-section-title { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: 0.05em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.admin-stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  padding: 20px;
}
.admin-stat { text-align: center; }
.admin-stat-val { font-size: 2rem; font-weight: 900; color: var(--hot); letter-spacing: -0.03em; }
.admin-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', monospace; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  background: var(--bg); font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.deal-hidden td { opacity: 0.45; }
.admin-table tr.user-banned td { opacity: 0.45; }
.admin-action-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn-admin {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit; white-space: nowrap; transition: all 0.15s;
}
.btn-admin-hide   { background: #fef3c7; color: #92400e; }
.btn-admin-hide:hover { background: #fde68a; }
.btn-admin-show   { background: #dcfce7; color: #15803d; }
.btn-admin-show:hover { background: #bbf7d0; }
.btn-admin-delete { background: #fee2e2; color: #dc2626; }
.btn-admin-delete:hover { background: #fca5a5; }
.btn-admin-ban    { background: #fef3c7; color: #92400e; }
.btn-admin-ban:hover { background: #fde68a; }
.btn-admin-unban  { background: #dcfce7; color: #15803d; }
.btn-admin-unban:hover { background: #bbf7d0; }
.admin-temp-form { display: flex; gap: 4px; align-items: center; }
.admin-temp-input { width: 70px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.admin-announcement-form { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.admin-type-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-type-btn {
  padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.admin-type-btn.active { border-color: var(--hot); background: var(--hot-soft); color: var(--hot); }
.admin-toggle-row { display: flex; align-items: center; gap: 10px; }
.admin-toggle-label { font-size: 13px; font-weight: 700; }
.admin-message-group { display: flex; flex-direction: column; gap: 4px; }
.admin-message-group label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-message-group textarea {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-family: inherit; resize: vertical; min-height: 70px;
  background: var(--bg);
}
.admin-save-btn {
  padding: 9px 24px; background: var(--hot); color: #fff; border-radius: 8px;
  border: none; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  align-self: flex-start; transition: background 0.15s;
}
.admin-save-btn:hover { background: var(--hot-deep); }
.admin-tag-hidden { font-size: 10px; background: #fde68a; color: #92400e; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.admin-tag-banned { font-size: 10px; background: #fee2e2; color: #dc2626; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.admin-pending-row td { background: #fffbeb; }

/* ===== PLACEHOLDER TEXT EDITOR ===== */
.placeholder-text-section {
  margin-top: 10px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; display: none; flex-direction: column; gap: 10px;
}
.placeholder-text-section.visible { display: flex; }
.placeholder-text-row { display: flex; align-items: center; gap: 8px; }
.placeholder-text-input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: var(--paper);
}
.placeholder-char-count { font-size: 11px; color: var(--muted); white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.placeholder-preview-img {
  width: 190px; height: 140px; border-radius: 10px; object-fit: contain;
  border: 1px solid var(--line); background: var(--bg); display: none; margin-top: 4px;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 8px; background: transparent;
  border: 1px solid var(--line); cursor: pointer; color: var(--ink2);
  transition: all 0.15s;
}
.hamburger-btn:hover { background: var(--bg); color: var(--hot); border-color: var(--hot); }

/* ===== SIDE MENU ===== */
.side-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 900; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s, visibility 0s linear 0.25s;
}
.side-menu-overlay.active {
  opacity: 1; visibility: visible; pointer-events: all;
  transition: opacity 0.25s, visibility 0s linear 0s;
}

.side-menu-panel {
  position: fixed; top: 0; left: 0; width: 280px; height: 100%;
  transform: translateX(-100%); visibility: hidden;
  background: var(--paper); z-index: 901;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), visibility 0s linear 0.25s;
  display: flex; flex-direction: column; overflow: hidden;
}
.side-menu-panel.active {
  transform: translateX(0); visibility: visible;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
}

.side-menu-inner {
  display: flex; width: 560px; height: 100%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.side-menu-inner.show-cats { transform: translateX(-280px); }

.side-menu-section {
  width: 280px; flex-shrink: 0;
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
}

.side-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.side-menu-close, .side-menu-back {
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 4px 8px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
  font-family: inherit; font-size: 13px; font-weight: 700;
}
.side-menu-close:hover, .side-menu-back:hover { color: var(--ink); background: var(--bg); }
.side-menu-head-title { font-size: 14px; font-weight: 700; color: var(--ink); }

.side-menu-nav { overflow-y: auto; flex: 1; padding: 6px 0; }

.side-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  color: var(--ink2); text-decoration: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer; border: none; background: none;
  font-family: inherit; width: 100%; text-align: left;
}
.side-nav-item:hover { background: var(--bg); color: var(--hot); }
.side-nav-icon { font-size: 17px; width: 22px; flex-shrink: 0; line-height: 1; }
.side-nav-arrow { margin-left: auto; color: var(--muted); font-size: 18px; font-weight: 400; }
.side-nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: var(--ink); color: #fff;
  padding: 2px 7px; border-radius: 99px; white-space: nowrap;
}
.side-nav-divider { height: 1px; background: var(--line); margin: 6px 20px; }

.side-nav-lang {
  flex-wrap: wrap; gap: 6px; cursor: default;
}
.side-nav-lang:hover { background: transparent; color: var(--ink2); }
.side-nav-lang-label { font-size: 13px; color: var(--muted); flex: 1; }
.side-nav-lang-btns { display: flex; gap: 4px; }
.side-lang-btn {
  padding: 4px 10px; font-size: 12px; font-weight: 700;
  border-radius: 6px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  transition: all 0.12s; text-decoration: none;
}
.side-lang-btn:hover { color: var(--ink); }
.side-lang-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.side-nav-post { color: var(--hot); }
.side-nav-post:hover { background: var(--hot-soft); color: var(--hot-deep); }
.side-nav-logout { color: var(--muted); }
.side-nav-logout:hover { color: #e11d48; background: #fff1f2; }

/* ===== REPORT BUTTON ON CARD ===== */
.report-deal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 6px; border-radius: 5px;
  background: none; border: 1px solid transparent;
  color: var(--muted); cursor: pointer; opacity: 0.5;
  transition: all 0.15s;
}
.deal-card:hover .report-deal-btn { opacity: 1; }
.report-deal-btn:hover { background: #fff1f2; border-color: #fecdd3; color: #e11d48; opacity: 1; }

/* ===== REPORT MODAL ===== */
.report-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1000; align-items: center; justify-content: center;
  padding: 16px;
}
.report-modal {
  background: var(--paper); border-radius: 14px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.report-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.report-modal-head h4 { font-size: 15px; font-weight: 800; }
.report-modal-head button {
  background: none; border: none; font-size: 16px; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 6px;
}
.report-modal-head button:hover { color: var(--ink); background: var(--bg); }
.report-modal-body {
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.report-modal-body label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.report-select, .report-textarea {
  width: 100%; padding: 9px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; background: var(--bg); color: var(--ink);
  outline: none; resize: vertical;
}
.report-select:focus, .report-textarea:focus { border-color: var(--hot); }
.report-modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.report-submit-btn {
  flex: 1; padding: 10px; background: var(--hot); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.report-submit-btn:hover { background: var(--hot-deep); }
.report-submit-btn:disabled { opacity: 0.6; cursor: default; }
.report-cancel-btn {
  padding: 10px 16px; background: var(--bg); color: var(--ink2);
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: border-color 0.15s;
}
.report-cancel-btn:hover { border-color: var(--ink); }

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: #fff; padding: 11px 20px;
  border-radius: 99px; font-size: 13px; font-weight: 700;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  z-index: 2000; white-space: nowrap; pointer-events: none;
}
.toast-notification.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== COMING SOON PAGES ===== */
.coming-soon-page {
  max-width: 560px; margin: 80px auto; text-align: center; padding: 24px;
}
.coming-soon-icon { font-size: 56px; margin-bottom: 12px; }
.coming-soon-page h1 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.coming-soon-page p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.coming-soon-badge {
  display: inline-block; margin-bottom: 12px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 99px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ===== ADMIN REPORTS ===== */
.report-resolved-row { opacity: 0.55; }

/* ===== LOAD MORE BUTTON ===== */
.load-more-wrap {
  text-align: center; padding: 24px 0 8px;
}
.load-more-btn {
  padding: 11px 32px; background: var(--paper); color: var(--ink2);
  border: 1.5px solid var(--line); border-radius: 99px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.15s;
}
.load-more-btn:hover { border-color: var(--hot); color: var(--hot); background: var(--hot-soft); }
.load-more-btn:disabled { opacity: 0.5; cursor: default; }

/* ===== TEST POST BADGE ===== */
.badge-test {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
  border-radius: 4px; padding: 1px 6px; vertical-align: middle;
}
.admin-tag-test {
  font-size: 10px; font-weight: 700; background: #f3f4f6; color: #6b7280;
  border-radius: 3px; padding: 1px 5px; margin-left: 4px; border: 1px solid #e5e7eb;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mob-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-row {
  display: flex; align-items: stretch; height: 54px;
}
.mob-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 5px 2px;
  color: var(--muted); text-decoration: none;
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
  border: none; background: none; cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item:hover, .mob-nav-item.mob-nav-active { color: var(--hot); }
.mob-nav-item svg { flex-shrink: 0; }
.mob-nav-post-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.mob-nav-post {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--hot); color: #fff;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 3px 0 var(--hot-deep), 0 4px 12px rgba(255,90,31,0.30);
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-post:hover { background: var(--hot-deep); transform: translateY(-1px); }

/* ===== MOBILE — 768px and below ===== */
@media (max-width: 768px) {

  /* Show bottom nav, add body padding so content isn't hidden behind it */
  .mob-bottom-nav { display: block; }
  body { padding-bottom: 56px; }

  /* ---- Header: two-row layout ---- */
  .header-inner {
    flex-wrap: wrap;
    padding: 9px 12px;
    gap: 8px 10px;
  }
  .logo-tagline { display: none; }
  /* Search form wraps to full-width second row */
  .search-form {
    order: 10;
    flex: 0 0 100%;
    max-width: none;
    margin: 0;
  }
  /* Hide nav buttons — mobile nav bar covers these */
  .header-actions .btn-post-header,
  .header-actions .btn-outline,
  .header-actions .btn-primary { display: none; }
  /* Keep user avatar but drop the name label */
  .user-name { display: none; }

  /* ---- Category nav ---- */
  .cat-nav-inner { padding: 8px 12px; gap: 4px; }
  .cat-link { padding: 6px 10px; font-size: 12px; }

  /* ---- Main page layout ---- */
  .page-wrap { padding: 12px 10px 16px; }

  /* ---- Sort bar ---- */
  .sort-bar { padding: 8px 12px; gap: 4px 8px; }
  .sort-label { display: none; }
  .sort-link { padding: 5px 9px; font-size: 12px; }
  .results-label { font-size: 11px; }

  /* ---- Filter bar: horizontal scroll ---- */
  .filter-bar {
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; padding: 6px 0 10px;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-chips { flex-wrap: nowrap; }
  .filter-chip { flex-shrink: 0; font-size: 10px; padding: 4px 9px; }

  /* ---- Deal card: compact 3-column grid ---- */
  .deal-card {
    grid-template-columns: 52px 100px 1fr;
    margin-bottom: 8px;
  }
  .temp-block { min-width: 52px; padding: 10px 3px; gap: 5px; }
  .vote-btn { width: 44px; min-height: 22px; font-size: 9px; padding: 4px 2px; }
  .temp-value { font-size: 12px; }

  /* Thumbnail fills full card height */
  .deal-thumb-link { height: 100%; }
  .deal-thumb { width: 100%; height: 100%; min-height: 105px; }

  /* Deal info */
  .deal-info { padding: 9px 10px; gap: 4px; }
  .deal-meta-top { gap: 4px; }
  .deal-category { font-size: 10px; padding: 2px 5px; }
  .deal-merchant { font-size: 11px; }
  .deal-title { font-size: 13px; line-height: 1.3; }
  .deal-desc { display: none; }

  /* Prices and stats */
  .deal-footer { padding-top: 5px; gap: 3px; }
  .deal-price-block { gap: 4px; }
  .deal-price { font-size: 1.0rem; }
  .surface-price { font-size: 11px; }
  .deal-saving { font-size: 10px; padding: 1px 5px; }
  .postage-line { font-size: 10px; }
  .deal-stats { gap: 5px; }
  .stat { font-size: 10px; gap: 2px; }
  .btn-get-deal { padding: 6px 12px; font-size: 11px; }
  .voucher-chip { font-size: 10px; padding: 2px 5px; }

  /* ---- Announcements ---- */
  .announcement-banner { padding: 10px 12px; }
  .announcement-text { font-size: 12px; }

  /* ---- Welcome banner ---- */
  .welcome-banner { padding: 12px 14px; }
  .welcome-icon { font-size: 20px; }
  .welcome-text strong { font-size: 12px; margin-bottom: 2px; }
  .welcome-text p { display: none; }

  /* ---- No results ---- */
  .no-results { padding: 24px 16px; }

  /* ---- Load more ---- */
  .load-more-wrap { padding: 16px 0 6px; }

  /* ---- Deal detail page ---- */
  .deal-detail-header {
    flex-direction: column; padding: 16px; gap: 16px;
  }
  .deal-detail-thumb { width: 100%; max-width: 100%; border-radius: 10px; }
  .deal-detail-thumb img { height: 220px; object-fit: contain; }
  .deal-detail-body { padding: 16px; }
  .deal-detail-title { font-size: 1.15rem; margin: 6px 0 10px; }
  .deal-detail-vote { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .vote-btn-lg { padding: 8px 14px; font-size: 13px; }
  .deal-price-lg { font-size: 1.65rem; }
  .melt-price-lg { font-size: 1.75rem; }
  .deal-cta-row { flex-direction: column; gap: 8px; }
  .deal-cta-row .btn-lg,
  .deal-cta-row .btn-voucher,
  .deal-cta-row .btn-kakaku { width: 100%; justify-content: center; }
  .comments-section { padding: 16px; margin-top: 16px; }
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

  /* ---- Profile page ---- */
  .profile-page { padding: 0 10px 60px; margin-top: 12px; }
  .profile-header-card { padding: 16px; gap: 14px; }
  .profile-avatar-lg { width: 64px; height: 64px; }
  .profile-avatar-fallback { width: 64px; height: 64px; font-size: 24px; }
  .profile-display-name { font-size: 18px; }

  /* ---- Post deal form ---- */
  .post-page { padding: 12px 10px 60px; }
  .post-container { padding: 18px 14px; }

  /* ---- Legal pages ---- */
  .legal-page { padding: 0 10px 60px; margin-top: 16px; }
  .legal-container { padding: 20px 14px; }

  /* ---- Admin page ---- */
  .admin-page { padding: 0 10px 60px; margin-top: 12px; }

  /* ---- Footer ---- */
  .site-footer { padding: 20px 14px; }
  .footer-nav { gap: 10px; }
  .footer-nav a { font-size: 12px; }

  /* ---- Misc ---- */
  .breadcrumb { font-size: 10px; margin-bottom: 10px; }
  .section-title { font-size: 14px; }
}

/* ===== SMALL PHONES — 480px and below ===== */
@media (max-width: 480px) {
  .header-inner { padding: 8px 10px; }
  .logo-hot, .logo-deals { font-size: 1.3rem; }
  .page-wrap { padding: 10px 8px 14px; }

  .deal-card { grid-template-columns: 46px 88px 1fr; }
  .temp-block { min-width: 46px; padding: 10px 2px; }
  .vote-btn { width: 38px; font-size: 8px; }
  .deal-thumb { min-height: 95px; }
  .deal-info { padding: 8px 8px; gap: 3px; }
  .deal-title { font-size: 12px; }
  .deal-price { font-size: 0.95rem; }
  .deal-category { font-size: 9px; padding: 1px 4px; }
  .sort-link { padding: 4px 7px; font-size: 11px; }
}
