/* ==========================================================================
   MyStocki (mystocki.com) - Native Standalone PWA Architecture & Fixed Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Brand Palette - MyStocki */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --secondary: #0284C7;
  --secondary-light: #E0F2FE;
  --accent: #10B981;
  --accent-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  
  /* Neutral System */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  /* Shadows & Glass */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(79, 70, 229, 0.15);
  --glass-blur: blur(16px);
  
  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Fixed Viewport Structure */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F1F5F9;
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  display: flex;
  justify-content: center;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* App Container Layout (Native Mobile Frame) */
.app-container {
  width: 100%;
  max-width: 500px;
  height: 100%;
  height: 100dvh;
  background: #FFFFFF;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top App Bar Header with iPhone Notch / Safe Area Support */
.top-header {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

/* Official Logo Branding */
.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

/* Header User Avatar & Dropdown Popover */
.header-user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5 0%, #312E81 100%);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #EEF2FF;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.header-dropdown-menu {
  position: absolute;
  top: 52px;
  right: 12px;
  width: 240px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  padding: 8px;
  z-index: 1000;
  display: none;
}

.header-dropdown-menu.active {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: #F1F5F9;
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Trial Banner (20 Days Free) */
.trial-banner {
  flex-shrink: 0;
  background: linear-gradient(90deg, #4F46E5 0%, #0284C7 100%);
  color: white;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
}

.trial-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trial-tag {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.btn-subscribe-pill {
  background: #FFFFFF;
  color: var(--primary);
  border: none;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

/* Main Content Scrollable Area (Internal Scroll Only) */
.main-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-bottom: 24px;
}

/* Tab Sections */
.tab-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards System */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.input-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #FAFAFA;
  transition: var(--transition);
  outline: none;
}

.input-control:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-secondary {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: var(--transition);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #F1F5F9;
  overflow: hidden;
}

.product-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-remate {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--warning);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-distance {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-sku {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-sale {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.price-distrib {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 1px 5px;
  border-radius: 4px;
}

.seller-mini {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
  cursor: pointer;
}

.seller-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

/* Seller Profile Header */
.profile-header-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.profile-meta {
  font-size: 12px;
  color: #C7D2FE;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-label {
  font-size: 10px;
  color: #94A3B8;
  text-transform: uppercase;
}

/* Chat & Messaging UI */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.chat-details {
  flex: 1;
}

.chat-user-name {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.chat-last-msg {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Modal Dialog System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

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

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 500px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 20px;
  max-height: 88vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2001;
}

.modal-handle {
  width: 42px;
  height: 5px;
  background: #CBD5E1;
  border-radius: 99px;
  margin: 0 auto 12px auto;
  display: none;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.modal-close {
  background: var(--bg-main);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ==========================================================================
   📱 ROCK SOLID BOTTOM NAVIGATION BAR (No Bounce / No Floating Shift)
   ========================================================================== */

.bottom-nav {
  flex-shrink: 0;
  width: 100%;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  padding-top: 4px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 900;
  padding-left: 8px;
  padding-right: 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  height: 100%;
  transition: var(--transition);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  stroke: var(--primary);
  transform: translateY(-2px);
}

.action-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.action-bar::-webkit-scrollbar { display: none; }

.chip-btn {
  white-space: nowrap;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-primary { background: var(--primary-light); color: var(--primary); }
.pill-accent { background: var(--accent-light); color: var(--accent); }
.pill-warning { background: var(--warning-light); color: var(--warning); }

/* ==========================================================================
   📲 AUTOMATIC PWA INSTALLATION BANNER SYSTEM
   ========================================================================== */

#pwaInstallBanner {
  position: absolute;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 460px;
  z-index: 950;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

/* ==========================================================================
   🍞 NATIVE TOAST NOTIFICATIONS SYSTEM
   ========================================================================== */

#toastContainer {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 460px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 10px 25px rgba(0, 0, 0, 0.12);
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: var(--transition);
}

.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-success { border-left: 4px solid var(--accent); }
.toast.toast-info { border-left: 4px solid var(--secondary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   🍏 iOS 18/26 LIQUID GLASS DESIGN SYSTEM
   ========================================================================== */

body.os-ios {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, #E0E7FF 0%, #F1F5F9 100%);
  color: #1C1C1E;
}

body.os-ios .app-container {
  background: rgba(242, 242, 247, 0.7);
  backdrop-filter: blur(35px) saturate(210%);
  -webkit-backdrop-filter: blur(35px) saturate(210%);
  box-shadow: 0 0 50px rgba(79, 70, 229, 0.12);
}

body.os-ios .top-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.os-ios .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.5) 100%);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 8px 24px rgba(31, 38, 135, 0.06);
}

body.os-ios .product-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(0, 0, 0, 0.05);
}

body.os-ios .bottom-nav {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(35px) saturate(210%);
  -webkit-backdrop-filter: blur(35px) saturate(210%);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 -10px 30px rgba(0, 0, 0, 0.05);
}

body.os-ios .nav-item.active { color: #007AFF; }
body.os-ios .nav-item.active svg {
  stroke: #007AFF;
  filter: drop-shadow(0 2px 6px rgba(0, 122, 255, 0.4));
}

body.os-ios .btn-primary {
  background: linear-gradient(135deg, #007AFF 0%, #0056B3 100%);
  border-radius: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 122, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

body.os-ios .modal-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 -15px 40px rgba(0, 0, 0, 0.15);
}

body.os-ios .modal-handle {
  display: block;
  background: rgba(60, 60, 67, 0.3);
  width: 44px;
  height: 5px;
}

body.os-ios .pill-primary {
  background: rgba(0, 122, 255, 0.12);
  color: #007AFF;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

/* ==========================================================================
   🤖 ANDROID MATERIAL DESIGN 3 MODE
   ========================================================================== */
body.os-android {
  font-family: 'Roboto', sans-serif;
  background-color: #FEF7FF;
}

body.os-android .app-container { background: #FEF7FF; }
body.os-android .top-header { background: #F3EDF7; border-bottom: 1px solid #E7E0EC; }
body.os-android .card { border-radius: 16px; border: 1px solid #E7E0EC; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
body.os-android .bottom-nav { background: #F3EDF7; border-top: 1px solid #E7E0EC; }
body.os-android .nav-item.active { color: #1D192B; }
body.os-android .nav-item.active svg { stroke: #6750A4; background: #E8DEF8; padding: 2px 14px; border-radius: 16px; }
body.os-android .btn-primary { background: #6750A4; border-radius: 24px; font-weight: 600; }
