/* Gojek-inspired Travel App Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --theme-primary: #ff6b35;
  --theme-secondary: #0f172a;
  --theme-accent: #ffb800; /* Yellow-Orange */
}

body {
  background: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* Header */
.app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 20px 20px 20px;
  padding-top: max(40px, env(safe-area-inset-top));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.search-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-pill i {
  color: #999;
  font-size: 16px;
}

.search-pill input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  color: #333;
  font-weight: 400;
}

.search-pill input::placeholder {
  color: #aaa;
}

.profile-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #ff6b35;
  font-size: 18px;
  cursor: pointer;
}

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

/* Hero Banner */
.hero-banner {
  margin: 0 20px 20px 20px;
  background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-primary) 100%);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-text {
  flex: 1;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.hero-banner h1 {
  font-size: 26px;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

.hero-banner p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  line-height: 1.4;
  max-width: 90%;
}

.cta-btn {
  background: white;
  color: var(--theme-primary);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.hero-illust {
  width: 100px;
  height: 100px;
  z-index: 1;
}

.hero-illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Wallet Card */
.wallet-card {
  margin: 0 20px 20px 20px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wallet-balance {
  margin-bottom: 16px;
}

.balance-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.wallet-balance h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ff6b35;
  margin-top: 2px;
}

.wallet-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.wallet-btn {
  flex: 1;
  background: #f8f9fa;
  border: none;
  border-radius: 12px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.wallet-btn:active {
  background: #e8e9ea;
}

.wallet-btn i {
  font-size: 18px;
  color: #ff6b35;
}

.wallet-btn span {
  font-size: 10px;
  font-weight: 600;
  color: #333;
}

/* Services Grid */
.services-section {
  padding: 24px 20px 20px 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.service-badge {
  position: absolute;
  top: -4px;
  right: calc(50% - 30px);
  background: #6c757d;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.service-badge.discount {
  background: #dc3545;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.service-icon i {
  color: white; /* Force all icons to white */
}

.service-box:active .service-icon {
  transform: scale(0.9);
}

.service-box span {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

/* Quick Search Card */
.quick-search-card {
  margin: 0 20px 20px 20px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.search-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.route-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 12px;
}

.route-input i {
  font-size: 18px;
}

.route-input div {
  flex: 1;
}

.route-input label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.route-input input {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  outline: none;
  width: 100%;
}

.route-input input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff6b35;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.search-route-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff6b35, #0083ba);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 167, 225, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-route-btn:active {
  transform: scale(0.98);
}

/* Popular Routes */
.popular-section {
  padding: 0 20px 20px 20px;
}

.popular-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.route-chip {
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.route-chip:active {
  background: #f8f9fa;
  border-color: #ff6b35;
}

.route-chip i {
  font-size: 16px;
  color: #ff6b35;
}

.route-chip span {
  font-size: 13px;
  font-weight: 600;
  color: #ff6b35;
}

/* Page Header */
.page-header {
  background: white;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #333;
}

/* Status Tabs (Bookings) */
.status-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: #f8f9fa;
}

.tab-btn {
  flex: 1;
  background: white;
  border: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

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

/* Orders List */
.orders-list {
  padding: 0 20px 20px 20px;
}

.order-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.order-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-type i {
  color: #ff6b35;
  font-size: 16px;
}

.order-type span {
  font-size: 12px;
  font-weight: 700;
  color: #666;
}

.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.order-status.active {
  background: #e8f5e9;
  color: #2e7d32;
}

.order-status.pending {
  background: #fff3e0;
  color: #f57c00;
}

.order-details h4 {
  font-size: 16px;
  font-weight: 800;
  color: #333;
  margin-bottom: 8px;
}

.order-details p {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-details p i {
  color: #ff6b35;
  font-size: 12px;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.order-price span {
  font-size: 11px;
  color: #999;
  display: block;
}

.order-price strong {
  font-size: 16px;
  font-weight: 800;
  color: #333;
}

.btn-detail {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-detail:active {
  opacity: 0.8;
}

/* Empty Orders */
.empty-orders {
  text-align: center;
  padding: 80px 40px;
}

.empty-orders i {
  font-size: 64px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.empty-orders h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.empty-orders p {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-primary));
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:active {
  opacity: 0.8;
}

/* Chat List */
.chat-list {
  padding: 0 20px 20px 20px;
}

.chat-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:active {
  background: #f8f9fa;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #0083ba);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.chat-avatar.driver {
  background: linear-gradient(135deg, #43a047, #66bb6a);
}

.chat-avatar.admin {
  background: linear-gradient(135deg, #ff9500, #ff6b35);
}

.chat-content {
  flex: 1;
  min-width: 0;
}

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

.chat-header strong {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.chat-time {
  font-size: 11px;
  color: #999;
}

.chat-preview {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Profile Header */
.profile-header {
  background: linear-gradient(135deg, #ffb800, #ff6b35);
  padding: 40px 20px;
  text-align: center;
  color: white;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
}

.profile-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-header p {
  font-size: 14px;
  opacity: 0.9;
}

/* Menu Section */
.menu-section {
  background: white;
  margin: 12px 20px;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
}

.menu-item:active {
  background: #f8f9fa;
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.menu-item span {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.menu-item i.fa-chevron-right {
  color: #ccc;
  font-size: 14px;
}

.menu-item.danger span {
  color: #ff3b30;
}

/* Promo Banner */
.promo-banner {
  margin: 0 20px 24px 20px;
  background: linear-gradient(135deg, #fff9c4 0%, #ffe082 100%);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(255, 224, 130, 0.4);
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.promo-content i {
  font-size: 32px;
  color: #f57c00;
}

.promo-content strong {
  font-size: 13px;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.promo-content p {
  font-size: 11px;
  color: #666;
}

.promo-btn {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

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

/* Recent Section */
.recent-section {
  padding: 0 20px;
}

.recent-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.recent-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.recent-scroll::-webkit-scrollbar {
  display: none;
}

.recent-card {
  flex: 0 0 200px;
  background: white;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  border-radius: 16px;
}

.recent-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recent-card img,
.recent-card .tour-img {
  width: 100%;
  height: 120px;
  margin: 0;
  object-fit: cover;
  padding: 0;
  border-radius: 0;
  background: #f5f5f5;
}

.recent-info {
  text-align: center;
  padding: 12px;
}

.recent-info strong {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.recent-info p {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.recent-info p i {
  font-size: 11px;
  color: #ff6b35;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(60px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #6c757d;
  flex: 1;
  padding: 4px;
  transition: all 0.2s;
}

.nav-btn i {
  font-size: 24px;
}

.nav-btn span {
  font-size: 10px;
  font-weight: 600;
}

.nav-btn {
  color: #9e9e9e; /* Default gray for all */
}

.nav-btn.active {
  color: #ff6b35; /* Active Orange */
  font-weight: 700;
  transform: scale(1.05);
}

.nav-btn:active {
  opacity: 0.6;
}

/* Promo Banner */
.promo-banner {
  margin: 0 20px 24px 20px;
  background: linear-gradient(135deg, #fff9c4 0%, #ffe082 100%);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(255, 224, 130, 0.4);
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.promo-content i {
  font-size: 32px;
  color: #f57c00;
}

.promo-content strong {
  font-size: 13px;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.promo-content p {
  font-size: 11px;
  color: #666;
}

.promo-btn {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

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

/* Recent Section */
.recent-section {
  padding: 0 20px;
}

.recent-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.recent-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.recent-scroll::-webkit-scrollbar {
  display: none;
}

.recent-card {
  flex: 0 0 200px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recent-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recent-card img {
  width: 100%;
  height: 100px;
  margin: 0 auto;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.recent-info {
  text-align: center;
}

.recent-info strong {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.recent-info p {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.recent-info p i {
  font-size: 11px;
  color: #ff6b35;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(60px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #6c757d;
  flex: 1;
  padding: 4px;
  transition: all 0.2s;
}

.nav-btn i {
  font-size: 24px;
}

.nav-btn span {
  font-size: 10px;
  font-weight: 600;
}

.nav-btn {
  color: #9e9e9e; /* Default gray for all */
}

.nav-btn.active {
  color: #ff6b35; /* Active blue */
  font-weight: 700;
  transform: scale(1.05);
}

.nav-btn:active {
  opacity: 0.6;
}

/* Responsive */
@media (min-width: 768px) {
  .app-wrapper {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  }
}

.recent-card .tour-img {
  background: none;
  padding: 0;
  height: 120px;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
  margin: 0;
}
/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}
.toast {
  background: rgba(50, 50, 50, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast i {
  font-size: 16px;
}
.toast.success i {
  color: #4caf50;
}
.toast.error i {
  color: #ff5252;
}
.toast.info i {
  color: #2196f3;
}

/* Bottom Sheet Component */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

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

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  transition: transform 0.3s ease-out;
  z-index: 1000;
  max-height: 80vh;
  overflow-y: auto;
}

.bottom-sheet.active {
  transform: translateX(-50%) translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.bottom-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Pull to Refresh */
.pull-to-refresh-container {
  position: relative;
}

.pull-to-refresh-indicator {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, top 0.2s;
}

.pull-to-refresh-indicator.visible {
  opacity: 1;
}

.pull-to-refresh-indicator.loading {
  top: 10px;
}

.pull-to-refresh-indicator i {
  font-size: 24px;
  color: #ff6b35;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Swipeable Card */
.swipeable-card {
  position: relative;
  transition: transform 0.3s ease-out;
  touch-action: pan-y;
}

.swipe-actions {
  position: absolute;
  top: 0;
  right: -140px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  transition: right 0.3s ease-out;
}

.swipeable-card.swiped .swipe-actions {
  right: 0;
}

.swipe-action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.swipe-action-btn:active {
  transform: scale(0.9);
}

.swipe-action-btn.delete {
  background: #ff3b30;
}

.swipe-action-btn.view {
  background: #007aff;
}

/* Favorite Heart */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 10;
}

.favorite-btn:active {
  transform: scale(0.9);
}

.favorite-btn i {
  font-size: 18px;
  color: #999;
  transition: color 0.2s;
}

.favorite-btn.active i {
  color: #ff3b30;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: #ff6b35;
  color: white;
  border-color: #ff6b35;
}

.filter-chip:active {
  transform: scale(0.95);
}

/* Search Autocomplete */
.search-suggestions {
  background: white;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:active {
  background: #f8f9fa;
}

.suggestion-item i {
  color: #ff6b35;
  font-size: 16px;
}

.suggestion-item strong {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.suggestion-item span {
  font-size: 12px;
  color: #999;
}

/* Filter/Sort Form */
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-option:active {
  background: #e9ecef;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #ff6b35;
}

.filter-option span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.btn-apply-filter {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-apply-filter:active {
  transform: scale(0.98);
}

/* Loading Skeletons */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: white;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.large {
  height: 18px;
}

.skeleton-text.small {
  height: 12px;
  width: 60%;
}

.skeleton-image {
  height: 120px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Success Animation */
@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-45deg);
    opacity: 1;
  }
}

.success-checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: checkmark 0.5s ease-out;
}

.success-checkmark i {
  color: white;
  font-size: 32px;
}

/* Improved Empty States */
.empty-state {
  text-align: center;
  padding: 60px 40px;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.empty-state-icon i {
  font-size: 40px;
  color: #bbb;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: #333;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Bottom Action Bar for Funnel Pages */
.bottom-action-bar {
  position: fixed;
  bottom: calc(70px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 900;
  background: white;
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  max-width: 480px;
  margin: 0 auto;
}

.bottom-action-bar .btn-primary {
  display: block;
  width: 100%;
  background: #ff6b35;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.bottom-action-bar .btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Daily Check-in */
.checkin-section {
  padding: 0 20px 24px;
}

.checkin-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.checkin-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkin-text h3 {
  font-size: 16px;
  font-weight: 800;
  color: #333;
  margin-bottom: 2px;
}

.checkin-text p {
  font-size: 12px;
  color: #999;
}

.checkin-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff5f2;
  color: #ff6b35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.checkin-days {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.day-item {
  flex: 1;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.day-item.active {
  background: #e8f5e9;
  color: #4caf50;
  border: 1px solid #c8e6c9;
}

.day-item.mystery {
  background: linear-gradient(135deg, #ff6b35, #ff9e80);
  color: white;
}

.day-label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.7;
}

.day-coin {
  font-size: 11px;
  font-weight: 800;
}

.checkin-btn {
  width: 100%;
  padding: 14px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s;
}

.checkin-btn:disabled {
  background: #e0e0e0;
  color: #999;
}
