/* ═══════════════════════════════════════
   Chillion Dashboard — 样式表
   依赖：Space Grotesk / Inter / JetBrains Mono
═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  background: #060608;
  overflow: hidden;
  touch-action: manipulation;
}
:root {
  --card:      #0e0e15;
  --card-h:    #14141e;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.14);
  --topbar-h:  60px;
  --sidebar-w: clamp(274px, 27.5vw, 356px);
  --spring:    cubic-bezier(0.34, 1.48, 0.64, 1);
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* ── AMBIENT BG ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 8% -8%,   rgba(124,111,255,0.11) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 108%, rgba(56,189,248,0.08)  0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%,  rgba(255,255,255,0.02) 0%, transparent 65%);
  pointer-events: none;
  transition: background 2.5s ease;
}
body.weather-sunny::before {
  background:
    radial-gradient(ellipse 80% 60% at 8% -8%,   rgba(251,191,36,0.11)  0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 108%, rgba(255,165,0,0.08)    0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%,  rgba(255,255,255,0.02)  0%, transparent 65%);
}
body.weather-rainy::before {
  background:
    radial-gradient(ellipse 80% 60% at 8% -8%,   rgba(56,139,248,0.13)  0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 108%, rgba(100,160,255,0.09)  0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%,  rgba(255,255,255,0.01)  0%, transparent 65%);
}
body.weather-cloudy::before {
  background:
    radial-gradient(ellipse 80% 60% at 8% -8%,   rgba(140,140,160,0.11) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 92% 108%, rgba(100,100,130,0.09)  0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%,  rgba(255,255,255,0.015) 0%, transparent 65%);
}

/* ══════════════════════════
   INTRO
══════════════════════════ */
#intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: #060608;
  will-change: transform, opacity;
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
#intro.exit { transform: translateY(-18px); opacity: 0; pointer-events: none; }

#intro::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, black 30%, transparent);
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, black 30%, transparent);
  opacity: 0;
  animation: introGridIn 1.4s ease 0.1s forwards;
}
@keyframes introGridIn {
  0%  { opacity: 0; }
  50% { opacity: 1; }
  100%{ opacity: 1; }
}

#intro::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,111,255,0.55) 28%, rgba(56,189,248,0.45) 72%, transparent);
  opacity: 0;
  animation: introScan 0.85s var(--ease-out) 0.15s forwards;
}
@keyframes introScan {
  0%  { top: 0%;   opacity: 0; }
  8%  { opacity: 0.9; }
  92% { opacity: 0.7; }
  100%{ top: 100%; opacity: 0; }
}

.welcome-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(46px, 10.5vw, 124px);
  font-weight: 700;
  letter-spacing: -0.5em;
  opacity: 0;
  background: linear-gradient(138deg, #ffffff 0%, #9292bb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordExpand 1.45s var(--ease-out) 0.38s forwards;
  white-space: nowrap;
  user-select: none;
  position: relative; z-index: 1;
}
@keyframes wordExpand {
  0%  { opacity: 0; letter-spacing: -0.5em; filter: blur(14px); }
  35% { opacity: 1; filter: blur(0px); }
  100%{ opacity: 1; letter-spacing: 0.12em; filter: blur(0px); }
}

/* ══════════════════════════
   APP SHELL
══════════════════════════ */
#app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; z-index: 1;
}

/* ── TOPBAR ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; height: var(--topbar-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: rgba(6,6,10,0.90);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  opacity: 0; position: relative; z-index: 100;
}
.topbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124,111,255,0.38) 22%, rgba(56,189,248,0.32) 78%, transparent 100%);
}
.topbar.show { animation: slideDown 0.52s var(--ease-out) forwards; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-area {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  border-radius: 9px; padding: 5px 10px; margin-left: -10px;
  transition: background 0.2s ease; flex-shrink: 0;
}
.logo-area:hover  { background: rgba(255,255,255,0.05); }
.logo-area:active { background: rgba(255,255,255,0.09); }

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 700; letter-spacing: -0.022em;
  background: linear-gradient(120deg, #ffffff 0%, #c0c0e0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; white-space: nowrap;
}
.logo-hint {
  font-size: 9px; color: #404058; letter-spacing: 0.07em; text-transform: uppercase;
  margin-top: 3px; line-height: 1; opacity: 0; transition: opacity 0.3s ease;
}
body.in-detail .logo-hint { opacity: 1; }

.topbar-right { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.topbar-dot {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 500; color: #828299; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.034); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px; padding: 5px 13px; white-space: nowrap;
  transition: background 0.3s, border-color 0.3s;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 8px #4ade80, 0 0 15px rgba(74,222,128,0.32);
  animation: blink 2.8s infinite; flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.26} }
.topbar-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 400; color: #585870;
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ══════════════════════════
   BODY LAYOUT
══════════════════════════ */
.body-layout {
  flex: 1; display: flex;
  overflow: hidden; position: relative; min-height: 0;
}

/* ══════════════════════════
   SIDEBAR
══════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.2vh, 26px) clamp(13px, 1.25vw, 18px);
  gap: clamp(13px, 1.7vh, 20px);
  border-right: 1px solid rgba(255,255,255,0.054);
  overflow: hidden;
  opacity: 0;
}
.sidebar.slide-in { animation: sidebarIn 0.56s var(--ease-out) forwards; }
@keyframes sidebarIn {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Widget Shell ── */
.widget {
  flex: 1 1 0;
  min-height: 0;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: clamp(11px, 1vw, 15px);
  padding: clamp(15px, 1.8vh, 20px) clamp(13px, 1.2vw, 17px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s ease;
}
.widget:hover { border-color: rgba(255,255,255,0.30); }
.widget::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 90% 70% at 5% 0%, rgba(124,111,255,0.03), transparent);
  pointer-events: none;
}

.widget-weather { flex: 1.3 1 0; }

.widget-label {
  font-size: 8px; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: #363650;
  margin-bottom: clamp(10px, 1.3vh, 15px);
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0;
}
.widget-label::before {
  content: '';
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(124,111,255,0.45); flex-shrink: 0;
}
.widget-label::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.038);
}

/* ── ZEN QUOTES ── */
.zen-quote-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.zen-quote {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(11.5px, 0.93vw, 13.5px);
  line-height: 2.0; color: #b0b0d0;
  font-weight: 400;
  overflow: hidden;
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
}
.zen-quote.visible { opacity: 1; transform: translateY(0); }
.zen-quote.hidden  { opacity: 0; transform: translateY(7px); pointer-events: none; }
.zen-quote.leaving { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.zen-text-wrap { flex: 1; overflow: hidden; min-height: 0; }
.zen-quote-mark {
  font-size: 24px; line-height: 1;
  color: rgba(124,111,255,0.20);
  font-family: Georgia, serif;
  display: block; margin-bottom: 8px;
}
/* 加载占位三点动画 */
.zen-loading-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.zen-loading-dots {
  display: flex; align-items: center; gap: 6px;
  height: 100%; justify-content: center;
}
.zen-loading-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(176,176,208,0.35);
  animation: zenDotPulse 1.4s ease-in-out infinite;
}
.zen-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.zen-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes zenDotPulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
  40%            { transform: scale(1.1); opacity: 1; }
}

.zen-source {
  display: block;
  flex-shrink: 0;
  padding-top: 10px;
  font-size: 9px; color: inherit; letter-spacing: 0.1em; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── WEATHER ── */
.weather-main {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(10px, 1.3vh, 16px);
  flex-shrink: 0;
}
.weather-icon-wrap {
  width: clamp(48px, 4.5vw, 60px); height: clamp(48px, 4.5vw, 60px);
  border-radius: 14px;
  background: rgba(255,255,255,0.032); border: 1px solid rgba(255,255,255,0.065);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(24px, 2.3vw, 32px);
  transition: box-shadow 0.5s ease;
}
.weather-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1; text-align: right;
}
.weather-feel { font-size: 11px; color: #8888a8; margin-top: 4px; text-align: right; }
.weather-desc {
  font-size: clamp(12px, 0.93vw, 13.5px); font-weight: 500;
  color: #747494; margin-bottom: clamp(10px, 1.3vh, 16px);
  flex-shrink: 0;
}
.weather-row { display: flex; gap: 6px; flex-shrink: 0; }
.weather-pill {
  flex: 1; background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 9px; padding: clamp(8px, 1vh, 12px) 6px; text-align: center;
}
.weather-pill-label { font-size: 8px; color: #363650; letter-spacing: 0.1em; text-transform: uppercase; }
.weather-pill-val   { font-size: clamp(11.5px, 0.93vw, 13.5px); font-weight: 600; color: #8888a8; margin-top: 4px; }
.weather-location {
  margin-top: auto;
  padding-top: clamp(10px, 1.2vh, 14px);
  font-size: 9.5px; color: #6868a0;
  display: flex; align-items: center; gap: 5px; letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── SIDEBAR BANNER ── */
.sidebar-avatar-wrap {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 0.6vh, 8px) 0;
}
.sidebar-banner {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 13px;
  border: 1px solid rgba(124,111,255,0.18);
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 16px rgba(124,111,255,0.13),
    0 4px 28px rgba(0,0,0,0.35);
  transition: box-shadow 0.4s ease, transform 0.4s var(--spring);
  display: block;
  max-height: 100%;
}
.sidebar-banner:hover {
  box-shadow:
    0 0 26px rgba(124,111,255,0.28),
    0 8px 36px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

/* ══════════════════════════
   MAIN AREA
══════════════════════════ */
.main-area {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

.view {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 2.2vh, 28px) clamp(16px, 2.1vw, 30px);
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

@keyframes homeEnter    { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }
@keyframes homeExit     { from{opacity:1;transform:translateX(0)} to{opacity:0;transform:translateX(-14px)} }
@keyframes springReturn { 0%{opacity:0;transform:translateY(20px) scale(0.985)} 100%{opacity:1;transform:translateY(0) scale(1)} }
@keyframes detailEnter  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
@keyframes detailExit   { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(20px)} }
@keyframes cardIn       { from{opacity:0;transform:translateY(13px)} to{opacity:1;transform:translateY(0)} }

/* ══════════════════════════
   BENTO GRID
══════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  width: 100%; height: 100%;
}

/* ══════════════════════════
   CARD
══════════════════════════ */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: clamp(14px, 1.3vw, 20px);
  padding: clamp(20px, 2.4vh, 30px) clamp(20px, 1.8vw, 26px) clamp(15px, 1.8vh, 22px);
  cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.32s ease, border-color 0.32s ease,
              transform 0.38s var(--spring), box-shadow 0.38s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; min-height: 0;
}
.card:hover {
  background: var(--card-h); border-color: rgba(255,255,255,0.12);
  transform: translateY(-5px) scale(1.009);
  box-shadow: 0 28px 65px rgba(0,0,0,0.52), 0 0 0 1px rgba(255,255,255,0.05);
}
.card:active { transform: scale(0.972) !important; }

.card-glow {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity 0.38s ease;
}
.card:hover .card-glow { opacity: 1; }
.card[data-id="0"] .card-glow { background: radial-gradient(ellipse 65% 55% at 5% 5%, rgba(124,111,255,0.10), transparent 70%); }
.card[data-id="1"] .card-glow { background: radial-gradient(ellipse 65% 55% at 5% 5%, rgba(251,191,36,0.09),  transparent 70%); }
.card[data-id="2"] .card-glow { background: radial-gradient(ellipse 65% 55% at 5% 5%, rgba(74,222,128,0.09),  transparent 70%); }
.card[data-id="3"] .card-glow { background: radial-gradient(ellipse 65% 55% at 5% 5%, rgba(167,139,250,0.10), transparent 70%); }

.card::before {
  content: '';
  position: absolute; inset: -1px; border-radius: calc(clamp(14px,1.3vw,20px) + 1px); padding: 1px;
  background: conic-gradient(from var(--beam-angle,0deg), transparent 0deg,
    rgba(255,255,255,0.62) 48deg, rgba(255,255,255,0.14) 88deg, transparent 122deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; animation: beamRotate 2.4s linear infinite; }
@keyframes beamRotate { to { --beam-angle: 360deg; } }
@property --beam-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.card-watermark {
  position: absolute; right: clamp(12px, 1.1vw, 18px); bottom: clamp(8px, 0.9vh, 13px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 4.9vw, 66px); font-weight: 800;
  color: rgba(255,255,255,0.019); line-height: 1;
  pointer-events: none; user-select: none; transition: color 0.38s ease;
}
.card:hover .card-watermark { color: rgba(255,255,255,0.038); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.card-icon-wrap {
  width: clamp(36px, 3.2vw, 44px); height: clamp(36px, 3.2vw, 44px);
  border-radius: clamp(8px, 0.78vw, 11px);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.038); flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.card:hover .card-icon-wrap { border-color: rgba(255,255,255,0.17); background: rgba(255,255,255,0.075); }
.card[data-id="0"]:hover .card-icon-wrap { box-shadow: 0 0 15px rgba(124,111,255,0.27); }
.card[data-id="1"]:hover .card-icon-wrap { box-shadow: 0 0 15px rgba(251,191,36,0.21); }
.card[data-id="2"]:hover .card-icon-wrap { box-shadow: 0 0 15px rgba(74,222,128,0.21); }
.card[data-id="3"]:hover .card-icon-wrap { box-shadow: 0 0 15px rgba(167,139,250,0.25); }

.card-arrow { color: #252538; transition: color 0.3s, transform 0.38s var(--spring); flex-shrink: 0; }
.card:hover .card-arrow { color: #8080a0; transform: translate(3px,-3px); }

.card-body { flex: 1; padding-top: clamp(13px, 1.5vh, 20px); min-height: 0; }
.card-tag {
  font-size: clamp(7.5px, 0.6vw, 9px); font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: #3e3e58;
  margin-bottom: clamp(5px, 0.55vh, 8px);
  display: flex; align-items: center; gap: 5px;
}
.card-tag::before {
  content: '';
  width: 2px; height: 2px; border-radius: 50%;
  background: currentColor; opacity: 0.7; flex-shrink: 0;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 700; letter-spacing: -0.026em; line-height: 1.14;
  margin-bottom: clamp(7px, 0.85vh, 11px);
  background: linear-gradient(150deg, #ffffff 0%, #b5b5d2 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.card-desc {
  font-size: clamp(12.5px, 0.98vw, 14px);
  font-weight: 400;
  line-height: 1.78; color: #757590; transition: color 0.3s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-desc { color: #9898b5; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: clamp(9px, 1vh, 13px);
  border-top: 1px solid rgba(255,255,255,0.042);
  margin-top: clamp(8px, 1vh, 13px); flex-shrink: 0;
}
.card-meta { font-size: clamp(7.5px, 0.59vw, 9px); color: #303044; letter-spacing: 0.08em; text-transform: uppercase; }
.card-indicator { display: flex; align-items: center; gap: 5px; font-size: clamp(7.5px, 0.59vw, 9px); font-weight: 700; letter-spacing: 0.09em; }
.ind-dot { width: 4.5px; height: 4.5px; border-radius: 50%; flex-shrink: 0; }

/* ══════════════════════════
   DETAIL VIEW
══════════════════════════ */
#detail-view { flex-direction: column; align-items: center; justify-content: center; gap: 34px; }

.back-btn {
  position: relative; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.11); background: rgba(255,255,255,0.034);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.36s var(--spring);
  touch-action: manipulation;
}
.back-btn:hover {
  background: rgba(124,111,255,0.11); border-color: rgba(124,111,255,0.36);
  transform: scale(1.12); box-shadow: 0 0 18px rgba(124,111,255,0.18);
}
.back-btn:active { transform: scale(0.9) !important; }
.back-btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from var(--ring-angle,0deg), transparent,
    rgba(124,111,255,0.44) 72deg, transparent 155deg) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s;
}
.back-btn:hover::before { opacity: 1; animation: ringRotate 2.2s linear infinite; }
@keyframes ringRotate { to { --ring-angle: 360deg; } }
@property --ring-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.detail-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px; }
.detail-icon-wrap {
  position: relative; width: 66px; height: 66px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09); background: rgba(255,255,255,0.033);
  display: flex; align-items: center; justify-content: center; margin-bottom: 5px;
}
.detail-icon-wrap::before {
  content: ''; position: absolute; inset: -20px;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,111,255,0.13), transparent);
  border-radius: 50%; pointer-events: none;
}
.detail-label  { font-size: 9px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #484860; }
.detail-title  {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.5vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(150deg, #ffffff 0%, #8080a8 130%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.detail-status { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #646478; letter-spacing: 0.04em; margin-top: 4px; }
.loading-bar { width: 180px; height: 1px; background: rgba(255,255,255,0.055); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.loading-fill {
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124,111,255,0.72), rgba(56,189,248,0.52), transparent);
  animation: shimmer 2.2s ease-in-out infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(240%)} }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .bento-grid { gap: clamp(12px, 1.8vw, 18px); }
}
@media (max-width: 720px) {
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, auto); gap: 11px; height: auto; }
  .view { align-items: flex-start; }
  .card { min-height: 175px; }
  .topbar { padding: 0 16px; }
  .logo-hint { display: none; }
  #detail-view { justify-content: flex-start; padding-top: 44px; }
}
@media (max-width: 480px) {
  :root { --topbar-h: 52px; }
  .topbar-time { display: none; }
  .topbar-dot  { font-size: 10.5px; padding: 4px 10px; }
  .logo-text   { font-size: 13px; }
  .card-desc   { -webkit-line-clamp: 2; font-size: 11.5px; }
}
