/* Sedunia Unified Travel Platform - Native Mobile App & Stitch Experience */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --sedunia-blue: #0A2540;
  --sedunia-navy-dark: #051525;
  --sedunia-navy-light: #163B66;
  --sedunia-gold: #C5A059;
  --sedunia-gold-light: #FBF6EC;
  --sedunia-gold-dark: #9A7B39;
  --sedunia-gold-glow: rgba(197, 160, 89, 0.35);
  --sedunia-emerald: #00875A;
  --sedunia-emerald-light: #E3FCEF;
  --sedunia-coral: #E05A47;
  --sedunia-coral-light: #FFEBE6;
  --sedunia-slate: #64748B;
  --sedunia-border: #E2E8F0;
  --sedunia-bg: #F4F6F9;
  --sedunia-card-bg: #FFFFFF;
  --sedunia-text: #0F172A;
  --sedunia-text-muted: #64748B;
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.14);
  --shadow-floating: 0 12px 32px rgba(10, 37, 64, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
}

body {
  background: #0B132B;
  background-image: radial-gradient(circle at 50% 0%, #1C2D4A 0%, #0B132B 80%);
  color: var(--sedunia-text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  overflow-x: hidden;
}

/* =========================================================
   NATIVE SMARTPHONE APP CONTAINER
   ========================================================= */

.mobile-phone-frame {
  width: 100%;
  max-width: 440px;
  height: 94vh;
  max-height: 920px;
  min-height: 740px;
  background: var(--sedunia-bg);
  border-radius: 46px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 0 10px #1E293B, 0 0 0 12px rgba(197, 160, 89, 0.3);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Fullscreen on actual mobile screens */
@media (max-width: 480px) {
  body {
    padding: 0;
    background: var(--sedunia-bg);
  }
  .mobile-phone-frame {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Status Bar & Dynamic Island */
.mobile-status-bar {
  height: 44px;
  background: var(--sedunia-navy-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  z-index: 110;
}

.dynamic-island {
  width: 110px;
  height: 24px;
  background: #000000;
  border-radius: 16px;
  margin: 0 auto;
}

.status-bar-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

/* =========================================================
   APP HEADER BAR
   ========================================================= */

.mobile-app-header {
  background: var(--sedunia-navy-dark);
  padding: 12px 18px 16px 18px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-logo-img {
  height: 34px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.heritage-pill {
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sedunia-gold) 0%, #A88438 100%);
  color: #1A1202;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.icon-circle-btn:active {
  transform: scale(0.92);
}

.badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--sedunia-coral);
  border-radius: 50%;
  border: 2px solid var(--sedunia-navy-dark);
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--sedunia-gold);
  overflow: hidden;
  cursor: pointer;
}

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

/* App Search Bar Pill */
.header-search-bar {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
}

.header-search-bar input {
  background: transparent;
  border: none;
  color: white;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.header-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   SCROLLABLE APP CONTENT
   ========================================================= */

.mobile-scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 100px 18px;
  -webkit-overflow-scrolling: touch;
}

.mobile-scroll-content::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   STITCH STYLE STORY / CATEGORY BUBBLES
   ========================================================= */

.story-categories-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px 0;
  margin-bottom: 12px;
}

.story-categories-scroll::-webkit-scrollbar {
  display: none;
}

.story-bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.story-bubble-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--sedunia-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-bubble-item.active .story-bubble-icon {
  border-color: var(--sedunia-gold);
  background: var(--sedunia-navy-dark);
  box-shadow: 0 4px 14px var(--sedunia-gold-glow);
  transform: scale(1.06);
}

.story-bubble-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sedunia-slate);
  text-align: center;
}

.story-bubble-item.active .story-bubble-label {
  color: var(--sedunia-navy-dark);
  font-weight: 800;
}

/* =========================================================
   FEATURED HERO CAROUSEL CARD
   ========================================================= */

.hero-featured-card {
  position: relative;
  border-radius: var(--radius-xl);
  height: 240px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.hero-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 21, 37, 0.1) 0%, rgba(5, 21, 37, 0.92) 85%);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.hero-top-badges {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-badge-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-rating-badge {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #FFD700;
}

.hero-bottom-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-price-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-price-tag strong {
  font-size: 17px;
  color: #FFD700;
  font-weight: 800;
}

.btn-hero-action {
  background: var(--sedunia-gold);
  color: #1A1202;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
}

/* =========================================================
   NATIVE SEGMENTED PILL TABS
   ========================================================= */

.segmented-pill-tabs {
  display: flex;
  background: rgba(226, 232, 240, 0.6);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.segmented-pill-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--sedunia-slate);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.segmented-pill-btn.active {
  background: white;
  color: var(--sedunia-navy-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

/* =========================================================
   TOUR & PRODUCT FEED CARDS
   ========================================================= */

.mobile-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sedunia-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-card:active {
  transform: scale(0.985);
}

.mobile-card-img-wrapper {
  position: relative;
  height: 160px;
}

.mobile-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-top-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 21, 37, 0.75);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.mobile-card-body {
  padding: 14px 16px;
}

.mobile-card-destination {
  font-size: 11px;
  font-weight: 700;
  color: var(--sedunia-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mobile-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--sedunia-navy-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}

.mobile-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.price-display {
  font-size: 11px;
  color: var(--sedunia-slate);
}

.price-display span {
  font-size: 15px;
  font-weight: 800;
  color: var(--sedunia-navy-dark);
}

.btn-card-action {
  background: var(--sedunia-navy-dark);
  color: white;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* =========================================================
   BOTTOM MOBILE NAVIGATION BAR
   ========================================================= */

.mobile-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--sedunia-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px 10px 8px;
  z-index: 100;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94A3B8;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-item:active {
  transform: scale(0.9);
}

.mobile-nav-icon {
  font-size: 20px;
  transition: all 0.2s ease;
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 700;
}

.mobile-nav-item.active {
  color: var(--sedunia-navy-dark);
}

.mobile-nav-item.active .mobile-nav-icon {
  transform: translateY(-2px);
  color: var(--sedunia-gold);
}

/* Highlight Admin Nav Tab */
.mobile-nav-item.admin-tab {
  position: relative;
}

.mobile-nav-item.admin-tab .mobile-nav-icon {
  background: var(--sedunia-navy-dark);
  color: var(--sedunia-gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(5, 21, 37, 0.3);
}

/* =========================================================
   BOTTOM SHEET & MODAL SYSTEM
   ========================================================= */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 21, 37, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: flex-end;
  flex-direction: column;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.bottom-sheet {
  background: white;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 36px 20px;
  max-height: 85%;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet::-webkit-scrollbar {
  display: none;
}

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

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

.sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--sedunia-navy-dark);
}

.btn-close-sheet {
  background: #F1F5F9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--sedunia-slate);
  cursor: pointer;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sedunia-navy-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sedunia-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  background: #F8FAFC;
}

.form-control:focus {
  border-color: var(--sedunia-blue);
  background: white;
}

.btn-primary {
  background: var(--sedunia-navy-dark);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

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

.btn-gold {
  background: var(--sedunia-gold);
  color: #1A1202;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toast-container {
  position: absolute;
  top: 60px;
  left: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(5, 21, 37, 0.92);
  backdrop-filter: blur(12px);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left: 4px solid var(--sedunia-emerald); }
.toast.error { border-left: 4px solid var(--sedunia-coral); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
