/* user-app/css/home.css */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  background: #f5f7fa;
  min-height: 100vh;
  padding-bottom: 70px; /* space for bottom nav */
  position: relative;
  overflow-x: hidden;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #007bff;
}

.chat-icon {
  color: #007bff;
  background: #f0f8ff;
  padding: 8px;
  border-radius: 50%;
}

/* Slider */
.slider-container {
  margin: 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 160px;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  background: white;
  width: 12px;
  border-radius: 3px;
}

/* Content Area */
.content-area {
  padding: 0 16px;
}

.ratios-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ratio-left {
  flex: 1;
  border-right: 1px solid #f0f0f0;
  padding-right: 16px;
}

.ratio-right {
  flex: 1;
  padding-left: 16px;
}

.ratio-label {
  color: #007bff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ratio-value {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.ratio-sub {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.ratio-percent {
  font-size: 24px;
  font-weight: 700;
  color: #007bff;
}

/* Top up Button */
.top-up-btn-container {
  position: relative;
  margin-bottom: 16px;
}

.top-up-btn {
  width: 100%;
  background: linear-gradient(135deg, #1e90ff, #007bff);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.first-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #b388ff, #7c4dff);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px 20px 0 20px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-grid {
  background: white;
  border-radius: 16px;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  color: #007bff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.chevron {
  color: #ccc;
}

/* Tutorial Section */
.tutorial-section {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 16px;
}

.tutorial-title {
  color: #007bff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tutorial-link {
  color: #0056b3;
  font-weight: 600;
  font-size: 14px;
}

/* Floating Support Button */
.floating-support {
  position: fixed;
  bottom: 80px;
  right: calc(50% - 220px); /* Keep it within max-width container */
  background: #00bfff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 480px) {
  .floating-support {
    right: 20px;
  }
}

.message-icon {
  background: white;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 50;
  border-top: 1px solid #f0f0f0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #888;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
}

.nav-item.active {
  color: #007bff;
}
