/* TokuColle — Rakuten-only 3D edition.
   Design language: Rakuten crimson (#bf0000) on a light modern canvas,
   glassmorphism header/hero, floating 3D shapes, 3D-tilting deal cards,
   scroll-reveal. Fonts: Plus Jakarta Sans / Be Vietnam Pro / Noto Sans JP. */
:root {
  --bg: #f7f4f1;
  --bg-grad: linear-gradient(180deg, #fdf7f4 0%, #f7f4f1 340px);
  --card: #ffffff;
  --ink: #221a17;
  --muted: #7a6d66;
  --line: #ecdfd9;
  --rakuten: #bf0000;
  --rakuten-dark: #8f0000;
  --accent: #d92b1f;
  --accent-dark: #b71f14;
  --cta: #f97316;
  --gold: #f59e0b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(120, 30, 20, .10);
  --shadow-lift: 0 24px 48px rgba(120, 20, 10, .18), 0 4px 12px rgba(120, 20, 10, .10);
  --glass: rgba(255, 255, 255, .72);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--bg-grad), var(--bg);
  line-height: 1.55;
}
a { color: var(--accent-dark); }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- Full-page 3D background (fixed layer behind every public page) ---------- */
.bg3d { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-inner { position: absolute; inset: -46px; perspective: 900px; will-change: transform; }
.bg-shape { position: absolute; display: block; }
.bg-orb1 { width: 210px; height: 210px; left: -60px; top: 12vh; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,179,171,.5), rgba(191,0,0,.16) 70%); filter: blur(2px); animation: float-a 15s ease-in-out infinite; }
.bg-orb2 { width: 130px; height: 130px; right: -30px; top: 46vh; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255,217,168,.55), rgba(249,115,22,.15) 70%); filter: blur(2px); animation: float-b 18s ease-in-out infinite; }
.bg-cube1 { width: 84px; height: 84px; right: 9%; top: 9vh; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,205,196,.16)); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 24px 44px rgba(191,0,0,.08); animation: float-b 16s ease-in-out infinite; }
.bg-ring1 { width: 150px; height: 150px; left: 5%; bottom: 16vh; border: 14px solid rgba(191,0,0,.055); border-radius: 50%; animation: float-a 19s ease-in-out infinite reverse; }
.bg-floor {
  position: absolute; left: 50%; bottom: -14vh; width: 170vw; height: 46vh;
  transform: translateX(-50%) rotateX(63deg); transform-origin: bottom center;
  background: linear-gradient(rgba(191,0,0,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(191,0,0,.075) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 58%); mask-image: linear-gradient(180deg, transparent, #000 58%);
}
/* Animation pause switches (tab hidden / ring off-screen), toggled from app.js */
.stage3d.is-off .stage-ring,
html.fx-paused .stage-ring, html.fx-paused .bg-shape,
html.fx-paused .hero-3d .orb, html.fx-paused .hero-3d .cube3d, html.fx-paused .hero-3d .ring3d { animation-play-state: paused !important; }

/* ---------- Header (glassmorphism, sticky) ---------- */
.pr-banner { background: linear-gradient(90deg, #fff1e6, #ffe9e4); border-bottom: 1px solid #f3d3ae; color: #7c4a12; font-size: 12px; padding: 8px 16px; text-align: center; }
.site-header {
  display: flex; align-items: center; gap: 18px; padding: 12px 20px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(236, 223, 217, .8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 2px 6px rgba(120, 30, 20, .05), 0 14px 34px rgba(120, 30, 20, .10);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(191,0,0,.45) 30%, rgba(249,115,22,.5) 70%, transparent);
}
.logo { font-size: 25px; font-weight: 800; color: var(--rakuten); text-decoration: none; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(255,255,255,.85), 0 7px 16px rgba(191,0,0,.28); }
.logo span { color: var(--ink); font-size: 15px; font-weight: 700; }
.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; transition: background .2s, color .2s, transform .2s; }
.main-nav a:hover { background: #fdf0ec; transform: translateY(-1px); }
.main-nav a.active { background: linear-gradient(135deg, var(--rakuten), var(--accent)); color: #fff; box-shadow: 0 6px 16px rgba(191, 0, 0, .28); }
.lang-switch { display: flex; gap: 4px; }
.lang-link { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted); background: rgba(255,255,255,.8); transition: all .2s; }
.lang-link.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Live banner & ads ---------- */
.live-banner { background: linear-gradient(90deg, var(--rakuten), #f04b23); color: #fff; text-align: center; font-weight: 700; font-size: 15px; padding: 10px 16px; }
.live-banner a { color: #fff; text-decoration: underline; }
.live-banner .lb-count { display: inline-block; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.18)); padding: 3px 11px; border-radius: 8px; margin-left: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.30), 0 6px 14px rgba(90,0,0,.28); animation: lb-pulse 1.6s ease-in-out infinite; }
@keyframes lb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ad-slot { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f8f2ec, #f8f2ec 12px, #f1e7de 12px, #f1e7de 24px); border: 1px dashed #dcc3b4; color: #a08c7a; font-size: 12px; letter-spacing: .25em; border-radius: 12px; margin: 14px auto; overflow: hidden; }
.ad-leaderboard { max-width: 970px; height: 90px; width: calc(100% - 32px); }
.ad-banner { height: 110px; margin: 26px 0 6px; }
.ad-rectangle { height: 250px; margin: 0 0 16px; }
.ad-infeed { height: 190px; min-height: 0; align-self: start; margin: 0; }
.ad-article { height: 120px; margin: 22px 0; }

/* ---------- Hero (layered gradient + floating 3D shapes + glass search) ---------- */
.hero {
  position: relative; text-align: center; padding: 52px 16px 30px; overflow: hidden; isolation: isolate;
  perspective: 1200px;
  background:
    radial-gradient(620px 320px at 12% -60px, rgba(191, 0, 0, .16), transparent 62%),
    radial-gradient(560px 300px at 88% -40px, rgba(249, 115, 22, .18), transparent 60%),
    radial-gradient(800px 380px at 50% 130%, rgba(245, 158, 11, .12), transparent 65%),
    linear-gradient(180deg, #fff8f4 0%, rgba(255, 248, 244, 0) 100%);
}
.hero-3d { position: absolute; inset: 0; z-index: -1; perspective: 900px; pointer-events: none; }
.hero-3d .orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-a { width: 130px; height: 130px; left: 6%; top: 16px; background: radial-gradient(circle at 32% 30%, #ffb3ab, var(--rakuten) 68%); box-shadow: 0 30px 50px rgba(191,0,0,.30); animation: float-a 7s ease-in-out infinite; }
.orb-b { width: 74px; height: 74px; right: 10%; top: 34px; background: radial-gradient(circle at 32% 30%, #ffd9a8, var(--cta) 70%); box-shadow: 0 22px 38px rgba(249,115,22,.32); animation: float-b 9s ease-in-out infinite; }
.orb-c { width: 44px; height: 44px; right: 24%; bottom: 12px; background: radial-gradient(circle at 32% 30%, #ffe9b8, var(--gold) 72%); box-shadow: 0 16px 28px rgba(245,158,11,.30); animation: float-a 8s ease-in-out infinite reverse; }
.cube3d { position: absolute; border-radius: 14px; transform-style: preserve-3d; }
.cube-a { width: 58px; height: 58px; left: 17%; bottom: 20px; background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,205,196,.55)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 18px 34px rgba(191,0,0,.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: float-b 10s ease-in-out infinite; }
.cube-b { width: 38px; height: 38px; right: 17%; top: 96px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,224,178,.6)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 14px 26px rgba(249,115,22,.20); animation: float-a 6.5s ease-in-out infinite; }
.ring3d { position: absolute; width: 108px; height: 108px; left: 26%; top: 8px; border: 12px solid rgba(191,0,0,.14); border-radius: 50%; animation: float-b 11s ease-in-out infinite; }
.hero-grid { position: absolute; left: 50%; bottom: -70px; width: 720px; height: 190px; transform: translateX(-50%) rotateX(64deg); transform-origin: bottom; background: linear-gradient(rgba(191,0,0,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(191,0,0,.10) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
@keyframes float-a { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
@keyframes float-b { 0%,100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-11px) rotate(-5deg); } }

/* ---------- Hero 3D stage: rotating ring of featured deals ---------- */
/* v8.3: the ring is deliberately SMALLER and the perspective LONGER, so the
   front card's magnification (~1.22x) stays inside the stage box — cards can
   no longer spill over the category bar or the deal grid below. */
.stage3d { --stage-r: 292px; position: relative; z-index: 1; height: 336px; max-width: 1120px; margin: 26px auto 12px; perspective: 1600px; perspective-origin: 50% 42%; }
.stage-ring {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  animation: stage-spin 60s linear infinite;
}
@keyframes stage-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.stage3d:hover .stage-ring, .stage3d:focus-within .stage-ring { animation-play-state: paused; }
.stage-card {
  position: absolute; left: 0; top: 0; width: 212px; margin-left: -106px; margin-top: -128px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; text-align: left;
  transform: rotateY(var(--a)) translateZ(var(--stage-r));
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 24px 48px rgba(120, 20, 10, .20), 0 5px 14px rgba(120, 20, 10, .10);
}
.stage-img { position: relative; aspect-ratio: 4/3; background: #f6efe9; overflow: hidden; }
.stage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-body { padding: 10px 13px 13px; display: grid; gap: 5px; }
.stage-shadow {
  position: absolute; left: 50%; bottom: 2px; width: 62%; height: 34px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(90, 15, 5, .28), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.hero-badge { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(191,0,0,.25); color: var(--rakuten); font-size: 11.5px; font-weight: 800; letter-spacing: .22em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 8px 20px rgba(191,0,0,.10); }
.hero h1 { margin: 0; font-size: 46px; font-weight: 800; color: var(--rakuten); text-shadow: 0 3px 0 rgba(255,255,255,.9), 0 14px 30px rgba(191,0,0,.22); }
.hero h1 span { color: var(--ink); font-size: 24px; }
.hero p { color: var(--muted); margin: 8px 0 0; font-size: 16.5px; font-weight: 600; }
.search-box {
  display: flex; justify-content: center; gap: 8px; margin: 20px auto 0; max-width: 640px; padding: 8px;
  position: relative; z-index: 3;
  background: var(--glass); border: 1px solid rgba(255,255,255,.95); border-radius: 999px;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 30px 54px rgba(120, 30, 20, .20), 0 6px 14px rgba(120, 30, 20, .10), inset 0 1px 0 #fff;
  transform: translateZ(46px);
}
.search-box input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; border-radius: 999px; font-size: 15px; font-family: inherit; background: transparent; }
.search-box input:focus { outline: none; }
.search-box button, button.primary { background: linear-gradient(135deg, var(--rakuten), var(--accent)); color: #fff; border: 0; border-radius: 999px; padding: 11px 24px; cursor: pointer; font-size: 14.5px; font-weight: 700; box-shadow: 0 8px 20px rgba(191,0,0,.28); transition: transform .18s, box-shadow .18s, filter .18s; }
.search-box button:hover, button.primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(191,0,0,.34); }
button { background: linear-gradient(135deg, var(--rakuten), var(--accent)); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: 14px; font-weight: 600; transition: transform .18s, box-shadow .18s, filter .18s; }
button:hover { filter: brightness(1.05); }
button.ghost { background: #fff; color: var(--ink); border: 1px solid #e2d2c9; box-shadow: none; }
button.danger { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; box-shadow: none; }

/* ---------- Category bar & mega menu ---------- */
.cat-bar { max-width: 1200px; margin: 16px auto 0; padding: 0 16px; display: flex; gap: 10px; align-items: center; }
.mega-btn { background: var(--ink); border-radius: 12px; padding: 10px 15px; font-size: 13.5px; white-space: nowrap; box-shadow: 0 8px 18px rgba(30, 20, 15, .22); }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; flex: 1; }
.mega-menu { max-width: 1200px; margin: 6px auto 0; padding: 0 16px; perspective: 1000px; }
.mega-grid { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; transform-origin: top center; animation: mega-in .3s cubic-bezier(.2,.8,.3,1.1); }
@keyframes mega-in { from { opacity: 0; transform: rotateX(-7deg) translateY(-5px); } to { opacity: 1; transform: rotateX(0) translateY(0); } }
.mega-grid .chip { text-align: left; border-radius: 10px; padding: 10px 12px; }
.mega-grid .chip:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 22px rgba(191,0,0,.16), 0 3px 6px rgba(120,30,20,.08); }

/* ---------- Filters ---------- */
.filters { max-width: 1200px; margin: 10px auto 4px; padding: 0 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #fff; color: var(--ink); border: 1.5px solid var(--line); white-space: nowrap; border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 6px rgba(120,30,20,.05); transition: all .18s; }
.chip:hover { border-color: var(--rakuten); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(191,0,0,.12); }
.chip.active { background: linear-gradient(135deg, var(--rakuten), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(191,0,0,.26); }
.filter-selects { display: flex; gap: 8px; }

/* ---------- Custom dropdown (tc-select) ---------- */
.tc-select { position: relative; min-width: 180px; }
.tc-select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(120,30,20,.05); }
.tc-select-btn:hover { border-color: var(--rakuten); }
.tc-select-btn[aria-expanded="true"] { border-color: var(--rakuten); box-shadow: 0 0 0 3px rgba(191,0,0,.14); }
.tc-caret { width: 9px; height: 9px; border-right: 2.2px solid var(--muted); border-bottom: 2.2px solid var(--muted); transform: rotate(45deg) translateY(-2px); flex: none; transition: transform .15s; }
.tc-select-btn[aria-expanded="true"] .tc-caret { transform: rotate(225deg) translateY(-1px); }
.tc-select-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(80, 20, 10, .18); max-height: 290px; overflow: auto; animation: tc-pop .13s ease-out; }
@keyframes tc-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tc-select-list li { padding: 9px 10px 9px 28px; border-radius: 8px; font-size: 14px; cursor: pointer; position: relative; color: var(--ink); }
.tc-select-list li:hover, .tc-select-list li.focused { background: #fdf0ec; }
.tc-select-list li.selected { font-weight: 700; }
.tc-select-list li.selected::before { content: "✓"; position: absolute; left: 9px; color: var(--rakuten); font-weight: 800; }
.contact-form .tc-select { min-width: 0; width: 100%; }

/* ---------- Scroll reveal (gentle 3D flip-up) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.inview { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }

/* ---------- Layout & deal grid (3D cards) ---------- */
.content-layout { max-width: 1200px; margin: 0 auto; padding: 12px 16px 36px; display: grid; grid-template-columns: 1fr 302px; gap: 26px; align-items: start; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; perspective: 1100px; }
.deal-card {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  display: flex; flex-direction: column; position: relative;
  /* v8.3: FLAT card on purpose. The old preserve-3d layer pops (photo +30px,
     text +16px, badges +48px toward the viewer) projected the card's own
     text OUT of its box and over neighbouring cards on hover/touch. Now the
     whole card moves as one piece: a gentle tilt + a 3px lift, always inside
     its grid cell. */
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  box-shadow: 0 6px 18px rgba(120, 30, 20, .07);
  transition: transform .3s ease, box-shadow .25s ease;
}
.deal-card.reveal { opacity: 0; transform: translateY(14px); }
.deal-card.reveal.inview { opacity: 1; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)); }
.deal-card:hover, .deal-card:focus-visible { --lift: -3px; box-shadow: var(--shadow-lift); outline: none; z-index: 2; }
.deal-card::after { /* shine sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.deal-card:hover::after { transform: translateX(120%); }
/* v8.3: the photo no longer lifts off the card on hover — only a mild zoom
   INSIDE its clipped frame, which can never overlap anything. */
.deal-img-wrap { position: relative; aspect-ratio: 1/1; background: #f6efe9; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
/* The img is taken out of flow so a very tall/wide source image can never
   stretch the frame: every deal photo shows in the same square, center-cropped. */
.deal-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.deal-card:hover .deal-img-wrap img { transform: scale(1.04); }
.discount-badge { position: absolute; top: 9px; left: 9px; z-index: 2; background: linear-gradient(135deg, var(--rakuten), var(--accent)); color: #fff; font-weight: 800; font-size: 13.5px; padding: 3px 9px; border-radius: 7px; box-shadow: 0 3px 0 rgba(120,0,0,.5), 0 10px 18px rgba(191,0,0,.35); animation: badge-pop .45s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes badge-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.discount-badge.small { position: static; font-size: 11px; padding: 1px 6px; animation: none; }
.platform-badge { position: absolute; top: 9px; right: 9px; z-index: 2; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.28), 0 7px 14px rgba(0,0,0,.22); }
.deal-body { padding: 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deal-title { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-original { color: #b3a294; text-decoration: line-through; font-size: 13px; }
.price-sale { color: var(--rakuten); font-weight: 800; font-size: 20px; }
.point-badge { background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 -2px 0 rgba(146,64,14,.28), 0 3px 7px rgba(146,64,14,.18); }
.deal-shop { color: var(--muted); font-size: 12px; }
.sale-end { color: #b45309; font-size: 12px; font-weight: 600; }
.deal-cta { margin-top: auto; background: linear-gradient(135deg, var(--cta), #fb923c); color: #fff !important; text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; display: block; box-shadow: 0 5px 0 #c2410c, 0 14px 24px rgba(249,115,22,.28); transition: transform .12s, box-shadow .12s; }
.deal-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 0 #c2410c, 0 16px 28px rgba(249,115,22,.34); }
.deal-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #c2410c, 0 7px 14px rgba(249,115,22,.26); }
.deal-cta.big { padding: 14px; font-size: 16px; }
.empty { color: var(--muted); background: #fff; border: 1px dashed #dcc3b4; border-radius: var(--radius); padding: 22px; text-align: center; }
#search-extra h2, .guides h2 { font-size: 21px; margin: 26px 0 12px; }

/* ---------- Sidebar ---------- */
.sidebar .side-box { background: linear-gradient(180deg, #ffffff, #fffcf9); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(120,30,20,.05), 0 16px 32px rgba(120,30,20,.09); }
.side-box h2 { font-size: 16.5px; margin: 0 0 12px; font-weight: 800; }
.ranking { margin: 0; padding-left: 20px; display: grid; gap: 9px; font-size: 13px; }
.ranking a { color: var(--ink); text-decoration: none; }
.ranking a:hover { color: var(--accent-dark); }
.calendar { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sale-event { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: linear-gradient(180deg, #ffffff, #fffdfa); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(120,30,20,.05); transition: transform .2s, box-shadow .2s; }
.sale-event:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sale-event.is-live { border-color: var(--rakuten); background: linear-gradient(180deg, #fff8f5, #fff1ec); box-shadow: inset 0 1px 0 #fff, 0 4px 0 rgba(191,0,0,.35), 0 16px 30px rgba(191,0,0,.16); }
.ev-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ev-name { font-weight: 700; font-size: 13.5px; line-height: 1.4; }
.ev-name a { color: var(--ink); text-decoration: none; }
.ev-status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f3e9e2; color: #7c6a5a; }
.sale-event.is-live .ev-status { background: var(--rakuten); color: #fff; animation: ev-pulse 1.6s ease-in-out infinite; }
@keyframes ev-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(1.07); } }
.ev-pred { font-size: 10.5px; font-weight: 700; color: #8a6d3b; border: 1px solid #e3cf9e; padding: 1px 6px; border-radius: 999px; background: #fffbeb; }
.ev-when { color: var(--muted); font-size: 12px; margin-top: 3px; }
.ev-count { display: inline-block; color: var(--accent-dark); font-weight: 800; font-size: 12.5px; margin-top: 5px; padding: 3px 10px; border-radius: 8px; background: linear-gradient(180deg, #fff5f2, #ffe9e2); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(191,0,0,.16), 0 5px 12px rgba(191,0,0,.12); font-variant-numeric: tabular-nums; }
.ev-count:empty { display: none; }
.ev-guide { font-size: 12px; font-weight: 700; }

/* ---------- Pages, guides, article ---------- */
.page-wrap { max-width: 1060px; margin: 0 auto; padding: 26px 16px 44px; }
.page-wrap > h1 { font-size: 29px; margin: 0 0 8px; font-weight: 800; }
.page-intro { color: var(--muted); max-width: 720px; margin: 0 0 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card { --rx: 0deg; --ry: 0deg; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 18px rgba(120,30,20,.05); transition: transform .3s ease, box-shadow .22s; }
.guide-card.reveal { opacity: 0; transform: translateY(14px); }
.guide-card.reveal.inview { opacity: 1; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.guide-card:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-card h3 { margin: 0; font-size: 16.5px; line-height: 1.45; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--accent-dark); }
.guide-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; flex: 1; }
.guide-more { font-weight: 700; font-size: 13.5px; text-decoration: none; }
.guides-all { margin-top: 14px; font-weight: 700; }
.guides { margin-top: 10px; }
.back-link { font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.article-card { background: linear-gradient(180deg, #ffffff, #fffdf9); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(120,30,20,.05), 0 22px 44px rgba(120,30,20,.10); }
.page-wrap > h1, .guides h2, #search-extra h2, .related h2 { text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 9px 22px rgba(191,0,0,.16); }
.article-section h2 { text-shadow: 0 1px 0 #fff, 0 5px 12px rgba(191,0,0,.12); }
.article-card h1 { font-size: 27px; line-height: 1.4; margin: 0 0 10px; font-weight: 800; }
.article-intro { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin: 0 0 8px; }
.article-section { margin-top: 24px; }
.article-section h2 { font-size: 19px; margin: 0 0 8px; font-weight: 800; }
.article-section p { margin: 0; line-height: 1.85; color: #3f352f; }
.tip-list { margin: 12px 0 0; padding: 14px 16px 14px 34px; background: #fffaf0; border: 1px solid #f0e3c2; border-radius: 12px; display: grid; gap: 7px; line-height: 1.65; font-size: 14.5px; }
.article-event { margin: 18px 0 4px; }
.article-event h3 { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.related { margin-top: 26px; }
.related h2 { font-size: 20px; margin: 0 0 12px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: start; }
.contact-info h2, .contact-form-card h2 { font-size: 20px; margin: 0 0 10px; font-weight: 800; }
.contact-sub { font-size: 13px; color: var(--muted); margin: 18px 0 4px; }
.contact-email { font-size: 21px; font-weight: 800; color: var(--rakuten); }
.contact-bullets { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 7px; line-height: 1.6; }
.contact-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 16px; }
.contact-form { display: grid; gap: 13px; }
.contact-form label, .contact-label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; color: #55463e; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; font-family: inherit; background: #fff; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--rakuten); box-shadow: 0 0 0 3px rgba(191,0,0,.13); }
.contact-form input:focus:invalid { border-color: var(--rakuten); }
.contact-send { padding: 13px; font-size: 15px; border-radius: 12px; }
.contact-send:hover { filter: brightness(1.06); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 14, 8, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; max-width: 540px; margin: 5vh auto; border-radius: 20px; padding: 22px; max-height: 88vh; overflow: auto; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: modal-in .28s cubic-bezier(.2,.9,.3,1.15); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 10px; right: 10px; background: #f6ece5; color: var(--ink); width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 18px; box-shadow: none; }
.modal-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }
.modal-card h2 { font-size: 19px; line-height: 1.5; margin: 0 0 10px; padding-right: 30px; }

/* ---------- Price-drop alerts ---------- */
#alert-root { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.deal-alert { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; width: min(360px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--rakuten); border-radius: 14px; box-shadow: 0 18px 44px rgba(90, 20, 5, .24); padding: 12px 38px 14px 12px; cursor: pointer; text-align: left; color: var(--ink); animation: alert-in .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes alert-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.deal-alert.hide { transition: opacity .3s, transform .3s; opacity: 0; transform: translateX(40px); }
.deal-alert img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; flex: none; }
.deal-alert .da-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--rakuten); text-transform: uppercase; }
.deal-alert .da-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-alert .da-prices { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.deal-alert .da-old { color: #b3a294; text-decoration: line-through; font-size: 12px; }
.deal-alert .da-new { color: var(--rakuten); font-weight: 800; font-size: 17px; }
.deal-alert .da-pct { background: var(--rakuten); color: #fff; font-weight: 800; font-size: 11.5px; padding: 1px 7px; border-radius: 6px; }
.deal-alert .da-close { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border-radius: 50%; background: #f6ece5; color: #6b5f55; font-size: 14px; line-height: 1; box-shadow: none; }
.deal-alert .da-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--rakuten); width: 100%; transform-origin: left; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: rgba(255,255,255,.85); padding: 30px 20px 24px; text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; box-shadow: 0 -14px 34px rgba(120,30,20,.06); }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 18px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(191,0,0,.13), rgba(191,0,0,0)),
    repeating-linear-gradient(90deg, rgba(191,0,0,.10) 0 1px, transparent 1px 46px);
  transform: perspective(300px) rotateX(38deg); transform-origin: top;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.site-footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: #6a5a50; text-decoration: none; font-weight: 600; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 22px 0 6px; }
.pager-btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid #e6d5cb; background: #fff; color: #3d332c; font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #e3ccc0, 0 7px 14px rgba(120,30,20,.08); transition: all .16s; }
.pager-btn:hover { transform: translateY(-1px); border-color: var(--rakuten); }
.pager-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #e3ccc0, 0 4px 8px rgba(120,30,20,.08); }
.pager-btn.active { background: linear-gradient(135deg, var(--rakuten), var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(191,0,0,.26); }
.pager-btn:disabled { opacity: .4; cursor: default; transform: none; }
.pager-gap { padding: 0 2px; opacity: .6; }
.list-pager, .queue-pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.list-pager .pager-btn, .queue-pager .pager-btn { background: #fff; border-color: #e6d5cb; color: #3d332c; min-width: 34px; height: 34px; font-size: 13.5px; box-shadow: 0 2px 0 #ead9cf; }
.list-pager .pager-btn.active, .queue-pager .pager-btn.active { background: var(--rakuten); border-color: var(--rakuten); color: #fff; }

/* ---------- Admin (light dashboard shell, v8) ---------- */
body.admin-body { background: #f4f1ec; color: #2b2118; min-height: 100vh; }
body.admin-body a { color: var(--rakuten); }
.admin-wrap { max-width: 1140px; margin: 0 auto; padding: 26px 16px 56px; }
.admin-wrap h1 { font-size: 24px; color: #241a12; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
body.admin-body button { background: linear-gradient(135deg, var(--rakuten), var(--accent)); color: #fff; border: 1px solid transparent; border-radius: 999px; padding: 9px 18px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #8f0000, 0 10px 20px rgba(191,0,0,.20); transition: transform .12s, box-shadow .12s, filter .16s; }
body.admin-body button:hover { transform: translateY(-1px); filter: brightness(1.05); }
body.admin-body button:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f0000, 0 5px 10px rgba(191,0,0,.18); }
body.admin-body button.ghost { background: #fff; color: #4a3a2c; border: 1px solid #ddd0c2; box-shadow: 0 3px 0 #e3d5c6; }
body.admin-body button.danger { background: #fff5f5; color: #b91c1c; border: 1px solid #f0c4c4; box-shadow: 0 3px 0 #ecc9c9; }
.notice { background: #e8f7ee; border: 1px solid #bfe6cd; color: #166534; padding: 10px 14px; border-radius: 12px; }
.error { background: #fdecec; border: 1px solid #f3c2c2; color: #b91c1c; padding: 10px 14px; border-radius: 12px; }
.warning { background: #fdf6e0; border: 1px solid #eed9a0; color: #8a6108; padding: 10px 14px; border-radius: 12px; }
.stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; font-size: 14px; background: #fff; border: 1px solid #eee2d4; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 26px rgba(90,40,20,.07); }
.stats > span { background: #faf6f1; border: 1px solid #eee2d4; border-radius: 12px; padding: 8px 14px; }
.stats > span strong { font-size: 16px; }
.tabs { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.tab { background: #fff !important; color: #4a3a2c !important; border: 1px solid #ddd0c2 !important; box-shadow: 0 3px 0 #e3d5c6 !important; }
.tab.active { background: linear-gradient(135deg, var(--rakuten), var(--accent)) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 3px 0 #8f0000, 0 10px 20px rgba(191,0,0,.22) !important; }
.deal-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deal-form label { display: grid; gap: 4px; font-size: 13px; color: #6b5a49; }
.deal-form label.wide { grid-column: 1 / -1; }
.deal-form input, .deal-form select, .login-form input { padding: 10px; border: 1px solid #ddd0c2; border-radius: 10px; font-size: 14px; width: 100%; background: #fff; color: #2b2118; font-family: inherit; }
.deal-form label.check { display: flex; align-items: center; gap: 8px; }
.deal-form label.check input { width: auto; }
.deal-form > button { margin-top: 14px; }
.queue-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #eee2d4; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: 0 8px 22px rgba(90,40,20,.06); transition: transform .18s, box-shadow .18s; }
.queue-item:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(90,40,20,.11); }
.queue-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.queue-main { flex: 1; font-size: 14px; min-width: 200px; }
.queue-check { width: 19px; height: 19px; accent-color: var(--rakuten); cursor: pointer; flex: 0 0 auto; }
.publish-all-form { margin-bottom: 12px; }
.publish-all-btn { width: 100%; padding: 14px 18px !important; font-size: 15.5px !important; font-weight: 800 !important; border-radius: 14px !important; }
.queue-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid #eee2d4; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; box-shadow: 0 8px 22px rgba(90,40,20,.05); }
.queue-tools button { padding: 8px 14px; font-size: 13px; }
.commission-chip { background: #fdf6e0; border: 1px solid #e8cf87; color: #8a6108; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: 14px; box-shadow: 0 12px 30px rgba(90,40,20,.08); }
.deal-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.deal-table th, .deal-table td { border-bottom: 1px solid #f0e6da; padding: 8px; text-align: left; vertical-align: top; }
.deal-table th { background: #faf6f1; color: #6b5a49; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.deal-table .thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; vertical-align: middle; }
.deal-table .sub { color: #9a8a76; font-size: 12px; }
.deal-table td.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.deal-table td.actions button { padding: 6px 12px; font-size: 12px; }
.deal-table .check-col { width: 34px; }
.row-check, #check-all { width: 17px; height: 17px; accent-color: var(--rakuten); cursor: pointer; }
.list-tools { display: flex; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.list-tools a.active { font-weight: 800; }
.list-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 10px; }
.list-filters input[type="search"], .list-filters select {
  padding: 9px 11px; border: 1px solid #ddd0c2; border-radius: 10px; background: #fff; color: #2b2118;
  font-size: 13.5px; font-family: inherit;
}
.list-filters input[type="search"] { flex: 1 1 220px; }
.list-count { color: #9a8a76; font-size: 13px; font-variant-numeric: tabular-nums; }
.bulk-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid #eee2d4; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; box-shadow: 0 8px 22px rgba(90,40,20,.05); }
.bulk-bar select { padding: 9px 11px; border: 1px solid #ddd0c2; border-radius: 10px; background: #fff; color: #2b2118; font-family: inherit; font-size: 13.5px; }
.bulk-bar button { padding: 8px 14px; font-size: 13px; }
.edit-row > td { background: #faf6f1; padding: 14px; }
.edit-row h3 { margin: 0 0 10px; font-size: 15px; }
.edit-form .form-grid { grid-template-columns: 1fr 1fr; }
.login-form { display: grid; gap: 12px; max-width: 360px; }
.login-form label { display: grid; gap: 4px; font-size: 13px; color: #6b5a49; }

/* ---------- Admin dashboard (v8) ---------- */
.dash { margin: 16px 0 4px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
.dash-card { background: #fff; border: 1px solid #eee2d4; border-radius: 18px; padding: 16px 18px; box-shadow: 0 12px 28px rgba(90,40,20,.07); }
.dash-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #8a7965; text-transform: uppercase; letter-spacing: .05em; }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dash-dot-red { background: var(--rakuten); }
.dash-dot-gold { background: #f59e0b; }
.dash-dot-blue { background: #2563eb; }
.dash-dot-green { background: #16a34a; }
.dash-dot-purple { background: #7c3aed; }
.dash-num { font-size: 31px; font-weight: 800; color: #241a12; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dash-sub { font-size: 12.5px; color: #9a8a76; margin-top: 2px; }
.dash-note { font-size: 12px; color: #a08b74; margin: 10px 2px 0; }
.dash-panel { background: #fff; border: 1px solid #eee2d4; border-radius: 18px; padding: 18px; margin-top: 14px; box-shadow: 0 12px 28px rgba(90,40,20,.07); }
.dash-panel h2 { font-size: 16px; margin: 0 0 12px; color: #241a12; }
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.dash-panel-head h2 { margin: 0; }
.dash-legend { display: flex; gap: 16px; font-size: 12.5px; color: #8a7965; }
.dash-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash-chart { display: flex; align-items: stretch; gap: 4px; margin-top: 14px; }
.dash-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.dash-bars { height: 132px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 2px solid #f0e6da; }
.dash-bar { width: 11px; border-radius: 4px 4px 0 0; min-height: 0; }
.dash-bar-views { background: linear-gradient(180deg, #e03434, var(--rakuten)); }
.dash-bar-clicks { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.dash-col-label { text-align: center; font-size: 10.5px; color: #a08b74; padding-top: 6px; font-variant-numeric: tabular-nums; }
.dash-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
.dash-table th, .dash-table td { border-bottom: 1px solid #f0e6da; padding: 9px 8px; text-align: left; vertical-align: top; }
.dash-table th { background: #faf6f1; color: #6b5a49; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dash-table-scroll { box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stage3d { --stage-r: 238px !important; height: 302px; }
  .stage-card { width: 192px; margin-left: -96px; margin-top: -118px; }
  .content-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .sidebar .side-box, .sidebar .ad-slot { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .site-header { padding: 10px 12px; gap: 8px 10px; }
  .logo { font-size: 21px; }
  .logo span { font-size: 13px; }
  .lang-link { padding: 4px 8px; font-size: 11px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; gap: 6px; }
  .main-nav a { white-space: nowrap; padding: 7px 11px; font-size: 13.5px; }
  .hero { padding: 34px 12px 20px; }
  .hero h1 { font-size: 32px; }
  .hero h1 span { font-size: 18px; }
  .orb-a { width: 84px; height: 84px; }
  .orb-b { width: 52px; height: 52px; }
  .ring3d, .cube-b { display: none; }
  .search-box { flex-wrap: wrap; border-radius: 22px; }
  .search-box input { width: 100%; flex: 1 1 100%; }
  .search-box button { flex: 1; }
  /* Hero stage on phones: the ring becomes a snap-scrolling row of 3D cards
     (no auto-rotation, no layout breakage, cards stay fully readable). */
  .stage3d { height: auto; max-width: none; margin: 20px -12px 0; perspective: none; }
  .stage-ring { position: static; width: auto; height: auto; display: flex; gap: 12px; overflow-x: auto; padding: 8px 16px 16px; scroll-snap-type: x mandatory; animation: none; transform: none; }
  .stage-card { position: relative; flex: 0 0 196px; width: 196px; margin: 0; transform: none; -webkit-backface-visibility: visible; backface-visibility: visible; scroll-snap-align: center; }
  .stage-shadow { display: none; }
  .bg-orb1 { width: 130px; height: 130px; }
  .bg-cube1, .bg-ring1 { display: none; }
  .deal-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .deal-body { padding: 10px; }
  .price-sale { font-size: 17px; }
  .article-card { padding: 20px 17px; }
  .article-card h1 { font-size: 23px; }
  .deal-form .form-grid { grid-template-columns: 1fr; }
  .edit-form .form-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  #alert-root { right: 12px; left: 12px; bottom: 12px; }
  .deal-alert { width: 100%; }
  .tc-select { min-width: 0; flex: 1; }
  .filter-selects { width: 100%; }
  .filters { flex-direction: column; }
  .ad-leaderboard { height: 60px; }
  .modal-card { width: calc(100% - 24px); margin: 4vh auto; padding: 18px 16px; }
  .admin-wrap { padding: 18px 10px 44px; }
  .deal-table { font-size: 12px; }
  .deal-table th, .deal-table td { padding: 6px; }
  .deal-table td.actions button { padding: 5px 9px; font-size: 11.5px; }
  .bulk-bar { font-size: 12.5px; }
  .queue-item { flex-wrap: wrap; }
}

/* ---------- Reduced motion: kill animation & tilt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .deal-card, .deal-card.reveal, .deal-card.reveal.inview { transform: none; }
  .deal-card::after { display: none; }
  .hero-3d { display: none; }
  .bg3d { display: none; }
  .search-box { transform: none; }
  .guide-card, .guide-card.reveal, .guide-card.reveal.inview, .guide-card:hover { transform: none; }
  .guide-card h3, .guide-card p, .guide-card .guide-more { transform: none; }
  .deal-card:hover .deal-img-wrap, .deal-card:hover .deal-body { transform: none; box-shadow: none; }
  .deal-card > .discount-badge, .deal-card > .platform-badge { transform: none; }
  /* Ring cannot rotate for reduced-motion users: fall back to the same
     snap-scrolling row used on phones so every featured deal stays reachable. */
  .stage3d { height: auto; perspective: none; }
  .stage-ring { position: static; width: auto; height: auto; display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; animation: none; transform: none; }
  .stage-card { position: relative; flex: 0 0 220px; margin: 0; transform: none; -webkit-backface-visibility: visible; backface-visibility: visible; scroll-snap-align: center; }
  .stage-shadow { display: none; }
}
