/* ===== Home ===== */
.home-content {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 32px 20px 100px;
  background: linear-gradient(180deg, #F5F3FF 0%, var(--white) 60%);
}

.home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.greeting-line1 { font-size: 20px; font-weight: 500; color: var(--slate-600); letter-spacing: -0.3px; }
.greeting-line2 { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.2; letter-spacing: -0.5px; }
.greeting-line3 { font-size: 17px; font-weight: 400; color: var(--slate-400); margin-top: 4px; }
.bounce-emoji { display: inline-block; animation: bounce 1.5s infinite; }

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.avatar-ring {
  width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  perspective: 800px;
  flex-shrink: 0;
  animation: avatar-float 3s ease-in-out infinite;
}
.avatar-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(139,92,246,0.2)) drop-shadow(0 8px 24px rgba(139,92,246,0.15));
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  transform: rotateY(-2deg) rotateX(2deg);
}
.avatar-ring:hover .avatar-img {
  transform: rotateY(8deg) rotateX(-4deg) scale(1.05);
}
.avatar-ring::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 12px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: avatar-shadow 3s ease-in-out infinite;
}

@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes avatar-shadow {
  0%, 100% { width: 80%; opacity: 1; }
  50% { width: 60%; opacity: 0.5; }
}

/* Sections */
.section { margin-bottom: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title { font-size: 17px; font-weight: 700; color: var(--slate-800); letter-spacing: -0.3px; }
.section-more {
  font-size: 13px; color: var(--primary);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  font-family: inherit; font-weight: 500;
}
.section-more:hover { color: var(--primary-dark); }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.quick-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}
.quick-card:hover {
  box-shadow: 0 8px 30px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.quick-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--white);
}
.quick-card-text { min-width: 0; }
.quick-card-title { font-size: 13px; font-weight: 700; color: var(--slate-800); }
.quick-card-desc { font-size: 12px; color: var(--slate-600); margin-top: 2px; }

/* History */
.history-cards {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.history-item-home {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: none; border: none;
  border-bottom: 1px solid var(--slate-50);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.history-item-home:last-child { border-bottom: none; }
.history-item-home:hover { background: var(--slate-50); }

.history-item-icon {
  width: 40px; height: 40px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400);
  flex-shrink: 0;
}
.history-item-body { flex: 1; min-width: 0; }
.history-item-title {
  font-size: 14px; font-weight: 600; color: var(--slate-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item-summary {
  font-size: 12px; color: var(--slate-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.history-item-time {
  font-size: 10px; color: var(--slate-300);
  white-space: nowrap;
  margin-top: 4px;
}
.history-empty-home {
  padding: 40px 20px; text-align: center; color: var(--slate-300); font-size: 14px;
}

