:root {
  /* Colors - Light Mode (Default) */
  --bg-color: #f5f5f7;
  --surface-color: rgba(255, 255, 255, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.9);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent-color: #2c3e50;
  --border-color: rgba(0, 0, 0, 0.05);
  
  /* Gradients */
  --gradient-text: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
  --gradient-card-self: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-card-friend: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  --gradient-card-blessings: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  
  /* Spacing & Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.5);

  /* Animation */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Mode Support (System) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000000;
    --surface-color: rgba(28, 28, 30, 0.7);
    --surface-hover: rgba(44, 44, 46, 0.9);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* =========================================
   Loading Screen
   ========================================= */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 300px;
}

.loading-logo {
  width: 64px;
  height: 64px;
  color: var(--text-primary);
  animation: logo-pulse 2s infinite ease-in-out;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.8; }
}

.loading-text-wrapper {
  height: 24px;
  overflow: hidden;
}

#loadingText {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(128, 128, 128, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

/* =========================================
   Ambient Background
   ========================================= */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a18cd1 0%, rgba(161, 140, 209, 0) 70%);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #fbc2eb 0%, rgba(251, 194, 235, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #84fab0 0%, rgba(132, 250, 176, 0) 70%);
  top: 40%;
  left: 30%;
  opacity: 0.2;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* =========================================
   Layout
   ========================================= */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: var(--bg-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s var(--ease-out);
}

.icon-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 80px;
  gap: 60px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  animation: slide-up 0.8s var(--ease-out);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slide-up 0.8s var(--ease-out) 0.4s backwards;
}

.scroll-indicator:hover {
  color: var(--text-primary);
  transform: translateY(2px);
}

.scroll-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.8;
}

.scroll-icon {
  animation: bounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  animation: slide-up 0.8s var(--ease-out) 0.2s backwards;
}

.bento-card {
  position: relative;
  background: var(--surface-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  background: var(--surface-hover);
}

.bento-card:active {
  transform: scale(0.98);
}

.card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity 0.4s ease;
}

.bento-card:hover .card-bg {
  opacity: 0.25;
}

.card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--ease-out);
}

.bento-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Grid Layouts */
/* Mobile First: Stacked */
.card-large, .card-wide, .card-small {
  grid-column: span 12;
}

.card-large { min-height: 280px; }
.card-wide { min-height: 200px; }
.card-small { min-height: 160px; }

/* Tablet & Desktop */
@media (min-width: 768px) {
  .card-self {
    grid-column: span 6;
    grid-row: span 2;
  }
  
  .card-friend {
    grid-column: span 6;
    grid-row: span 2;
  }
  
  .card-blessings {
    grid-column: span 8;
  }
  
  .card-newyear {
    grid-column: span 4;
  }

  .card-love {
    grid-column: span 12; /* Full width bottom card */
  }
  
  .card-self .card-bg { background: var(--gradient-card-self); }
  .card-friend .card-bg { background: var(--gradient-card-friend); }
  .card-blessings .card-bg { background: var(--gradient-card-blessings); }
  .card-newyear .card-bg { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%); }
  .card-love .card-bg { background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); }
}

@media (min-width: 1024px) {
  /* Refined desktop grid */
  .card-newyear { grid-column: span 4; }
  .card-love { grid-column: span 12; } 
  /* Adjusting for a 3-row layout if needed, but current span is fine */
}

/* Footer */
.site-footer {
  text-align: center;
  padding-bottom: 40px;
  color: var(--text-secondary);
  font-size: 13px;
}

.site-footer a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-secondary);
}

/* Floating Action Button */
.floating-action {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
}

.service-btn {
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
  border-radius: 28px;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease-spring);
}

.service-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-icon {
  width: 24px;
  height: 24px;
}

.service-label {
  font-weight: 600;
  font-size: 16px;
}

/* =========================================
   Chat Modal (UI Pro & Mobile Optimized)
   ========================================= */
.chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-overlay.active {
  opacity: 1;
  visibility: visible;
}

.chat-window {
  width: 100%;
  max-width: 380px;
  height: 650px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.1),
    0 0 0 1px rgba(0,0,0,0.05);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* Apple-style spring */
  overflow: hidden;
  position: relative;
}

/* Desktop positioning */
@media (min-width: 641px) {
  .chat-overlay {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 32px;
  }
  
  .chat-window {
    transform-origin: bottom right;
  }
}

.chat-overlay.active .chat-window {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Header */
.chat-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 64px;
}

.chat-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.chat-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.chat-contact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-wrapper {
  position: relative;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f2f7;
  border: 1px solid rgba(0,0,0,0.05);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #34c759;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat-contact-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.chat-status {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.status-icon.ai {
  width: 6px;
  height: 6px;
  background: #5856D6; /* iOS Purple */
  border-radius: 50%;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.chat-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-action-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

/* Messages Area */
.chat-messages {
  flex: 1;
  padding: 80px 16px 16px; /* Top padding for absolute header */
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.chat-date-divider {
  text-align: center;
  margin: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.chat-date-divider span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(60, 60, 67, 0.6);
  background: rgba(242, 242, 247, 0.8);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 10px;
}

.message-group {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: message-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

@keyframes message-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.message-group.incoming {
  align-self: flex-start;
}

.message-group.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 4px;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  max-width: 100%;
}

/* Incoming Bubble - Apple Style */
.incoming .message-bubble {
  background: #E9E9EB; /* Apple System Gray 5 */
  color: #000000;
  border-bottom-left-radius: 4px;
}

/* Outgoing Bubble - Apple Style */
.outgoing .message-bubble {
  background: #007AFF; /* Apple Blue */
  background: linear-gradient(180deg, #007AFF 0%, #0062CC 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 122, 255, 0.3);
}

.message-time {
  font-size: 10px;
  color: rgba(60, 60, 67, 0.4);
  margin: 2px 4px 0;
  align-self: flex-start;
}

.outgoing .message-time {
  align-self: flex-end;
}

/* Input Area */
.chat-input-area {
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #f2f2f7;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.chat-input-wrapper:focus-within {
  background: #ffffff;
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px; /* Prevent iOS zoom */
  padding: 6px 4px;
  max-height: 100px;
  outline: none;
  color: #000;
  min-height: 24px;
}

.chat-input::placeholder {
  color: rgba(60, 60, 67, 0.3);
}

.chat-emoji-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  color: rgba(60, 60, 67, 0.5);
  transition: color 0.2s;
}

.chat-emoji-btn:hover {
  color: #007AFF;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #007AFF;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0.5;
  transform: scale(0.9);
  pointer-events: none;
}

.chat-input:not(:placeholder-shown) + .chat-send-btn,
.chat-input-wrapper:focus-within .chat-send-btn {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.chat-send-btn:hover {
  background: #0062CC;
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(60, 60, 67, 0.4);
  margin-top: 8px;
}

.chat-hint strong {
  color: #007AFF;
  font-weight: 500;
}

/* =========================================
   Mobile Optimization (The "Sheet" Look)
   ========================================= */
@media (max-width: 640px) {
  .chat-overlay {
    align-items: flex-end; /* Stick to bottom */
  }
  
  .chat-window {
    width: 100%;
    max-width: 100%;
    height: 92vh; /* Use most of the screen */
    max-height: none;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  }
  
  .chat-overlay.active .chat-window {
    transform: translateY(0);
  }
  
  /* Add a handle bar for visual cue */
  .chat-window::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    z-index: 20;
  }
  
  .chat-header {
    height: 72px;
    padding-top: 24px; /* Space for handle */
  }
  
  .chat-messages {
    padding-top: 80px;
  }
  
  .chat-input-area {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  
  .chat-close-btn {
    background: #f2f2f7; /* More contrast on mobile */
  }
}

/* =========================================
   Info Modal (Settings) - Keep as is but refine
   ========================================= */
/* ... (Existing Info Modal styles from previous write) ... */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 90%;
  max-width: 480px;
  background: var(--surface-hover);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 0;
  transform: scale(0.9);
  transition: all 0.3s var(--ease-spring);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: rgba(0,0,0,0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.info-group {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}

.info-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.info-icon {
  font-size: 20px;
}

.info-label {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
}

.info-arrow {
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.info-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s var(--ease-out);
  background: #f9f9f9;
}

.info-content.active {
  height: auto;
  border-top: 1px solid var(--border-color);
}

.info-group.expanded .info-arrow {
  transform: rotate(180deg);
}

.qrcode-wrapper {
  padding: 24px;
  text-align: center;
}

.qrcode-wrapper img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.changelog-list {
  padding: 20px;
}

.log-item {
  margin-bottom: 16px;
  border-left: 2px solid var(--accent-color);
  padding-left: 12px;
}

.log-ver {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.announcement-box {
  padding: 20px;
  text-align: center;
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  background: rgba(0,0,0,0.03);
  padding: 8px;
  border-radius: 8px;
}

#copyQQBtn {
  background: var(--text-primary);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* Animations */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Event Modal Styles
   ========================================= */
.event-card {
  max-width: 400px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  text-align: center;
}

.event-content-wrapper {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.event-decoration {
  font-size: 48px;
  margin-bottom: -8px;
  animation: bounce-small 2s infinite;
}

.event-title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
}

.event-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.event-reward-box {
  background: rgba(255, 107, 107, 0.1);
  color: #d63031;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.event-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.event-btn-close {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.event-btn-close:hover {
  background: #f1f1f1;
  color: var(--text-primary);
}

.event-btn-primary {
  flex: 1.5;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.event-btn-primary:active {
  transform: scale(0.98);
}

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

