/* ==========================================================================
   NAVIVA YACHT MANAGEMENT - PREMIUM MOBILE APP PREVIEW
   ========================================================================== */

:root {
  /* Color Palette matching exact reference image */
  --bg-app: #08101C;
  --bg-card: #0F1A2A;
  --bg-card-hover: #152236;
  --bg-card-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #FFFFFF;
  --text-secondary: #8EA4B9;
  --text-label: #5E758D;
  
  --brand-red: #ED1C24;
  --brand-red-hover: #D0121A;
  --brand-red-glow: rgba(237, 28, 36, 0.35);
  
  --accent-green: #10B981;
  --accent-green-glow: rgba(16, 185, 129, 0.4);
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --phone-width: 390px;
  --phone-height: 844px;
  --scale-factor: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: radial-gradient(circle at 50% 20%, #101F34 0%, #050B14 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 40px 20px;
}

/* ================= SHOWCASE CONTAINER & BACKGROUND ================= */
.showcase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 26, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 40px;
  padding: 8px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #B2C5DA;
}

.brand-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-red);
}

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

.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #D5E1EE;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  transform: translateY(-1px);
}

.ctrl-btn svg {
  width: 16px;
  height: 16px;
}

#scale-indicator {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 42px;
  text-align: center;
}

.divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

/* ================= REALISTIC IPHONE FRAME ================= */
.phone-frame {
  --frame-light: #8c8982;
  --frame-mid: #55534f;
  --frame-dark: #242422;
  width: var(--phone-width);
  height: var(--phone-height);
  padding: 5px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(25, 24, 23, 0.9) 8% 8.6%, transparent 8.6% 91.4%, rgba(25, 24, 23, 0.9) 91.4% 92%, transparent 92%),
    linear-gradient(115deg, var(--frame-dark) 0%, var(--frame-light) 18%, var(--frame-mid) 47%, #aaa69d 67%, var(--frame-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 58px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(5, 5, 5, 0.95),
    inset 1px 0 1px rgba(255, 255, 255, 0.4),
    inset -1px 0 1px rgba(0, 0, 0, 0.65),
    0 32px 75px rgba(0, 0, 0, 0.72),
    0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  transform: scale(var(--scale-factor));
  transform-origin: center top;
  user-select: none;
  isolation: isolate;
}

.phone-frame::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 55px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  z-index: 80;
}

/* Frame Color Variations */
.phone-frame.titanium-natural {
  --frame-light: #aaa69d;
  --frame-mid: #67645e;
  --frame-dark: #292826;
}

.phone-frame.titanium-midnight {
  --frame-light: #46505d;
  --frame-mid: #27313d;
  --frame-dark: #10161e;
}

/* Physical Phone Side Buttons */
.phone-button {
  position: absolute;
  background: linear-gradient(90deg, var(--frame-dark), var(--frame-light) 55%, var(--frame-dark));
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-radius: 3px 0 0 3px;
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.button-silent { top: 116px; left: -6px; width: 6px; height: 27px; }
.button-vol-up { top: 166px; left: -7px; width: 7px; height: 51px; }
.button-vol-down { top: 231px; left: -7px; width: 7px; height: 51px; }
.button-power {
  top: 190px;
  right: -7px;
  width: 7px;
  height: 76px;
  border-radius: 0 3px 3px 0;
}

/* Phone Screen Container */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 51px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  border: 2px solid #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Status Bar */
.status-bar {
  height: 48px;
  padding: 12px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  background: transparent;
  color: #FFF;
}

.status-bar .time {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.dynamic-island {
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.camera-lens {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  border: 1px solid #222;
}

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

.stat-icon {
  width: 15px;
  height: 15px;
}

.battery-icon {
  width: 22px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  padding: 1px;
  position: relative;
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 1px 1px 0;
}

.battery-level {
  width: 80%;
  height: 100%;
  background: #FFF;
  border-radius: 1.5px;
}

/* ================= APP VIEWPORT & PAGES ================= */
.app-viewport {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 90px;
  /* Hide scrollbars for clean app look */
  scrollbar-width: none;
}
.app-viewport::-webkit-scrollbar {
  display: none;
}

.app-page {
  display: none;
  padding: 12px 20px 24px;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease-out;
}

.app-page.active {
  display: flex;
}

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

/* ================= APP HEADER ================= */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.icon-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  background-color: var(--brand-red);
  border-radius: 50%;
}

/* ================= YACHT SELECTOR SECTION ================= */
.yacht-selector-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.selector-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--text-label);
  text-transform: uppercase;
}

.yacht-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: fit-content;
}

.yacht-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1;
}

.chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.yacht-dropdown-trigger.open .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.yacht-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 26, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px;
  margin-top: 8px;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.yacht-menu.show {
  display: flex;
  animation: slideDown 0.2s ease-out;
}

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

.yacht-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.yacht-option:hover, .yacht-option.active {
  background: rgba(255, 255, 255, 0.08);
}

.yacht-opt-info {
  display: flex;
  flex-direction: column;
}

.yacht-opt-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #FFF;
}

.yacht-opt-specs {
  font-size: 11px;
  color: var(--text-secondary);
}

.yacht-option .check-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
  opacity: 0;
}

.yacht-option.active .check-icon {
  opacity: 1;
}

/* ================= YACHT HERO CARD ================= */
.yacht-hero-card {
  position: relative;
  width: 100%;
  height: 175px;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yacht-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.yacht-hero-card:hover img {
  transform: scale(1.03);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(8, 16, 28, 0.7) 100%);
}

.hero-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 20, 35, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #E2E8F0;
  text-transform: uppercase;
}

/* ================= CARDS GLOBAL STYLES ================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.card-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-label);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ================= OPERATION STATUS CARD ================= */
.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
}

.status-content {
  display: flex;
  flex-direction: column;
}

.status-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green-glow);
  display: inline-block;
}

.status-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.status-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.status-check-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-check-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.status-check-btn svg {
  width: 20px;
  height: 20px;
}

/* ================= 2x2 INFO GRID ================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
}

.info-icon {
  color: #A0B4C8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

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

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ================= CTA BUTTON SECTION ================= */
.cta-section {
  margin-top: 4px;
}

.cta-button {
  width: 100%;
  height: 56px;
  background: linear-gradient(180deg, #EE262E 0%, #D8131A 100%);
  border: none;
  border-radius: 16px;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--brand-red-glow);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: linear-gradient(180deg, #F82F37 0%, #E3161D 100%);
  box-shadow: 0 12px 30px rgba(237, 28, 36, 0.5);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px var(--brand-red-glow);
}

.cta-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

/* Dynamic Status Bar Dark Text Mode for Light Themes */
.status-bar.dark-mode {
  color: #0B1728;
  background-color: #F7F5F0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.status-bar.dark-mode .battery-icon {
  border-color: rgba(11, 23, 40, 0.8);
}

.status-bar.dark-mode .battery-icon::after {
  background: rgba(11, 23, 40, 0.8);
}

.status-bar.dark-mode .battery-level {
  background: #0B1728;
}

/* ================= LIGHT THEME PAGE (SERVICES HUB) ================= */
.app-page.page-light {
  background-color: #F7F5F0;
  margin: 0;
  padding: 8px 18px 20px;
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.header-light {
  margin-bottom: 2px;
}

.logo-dark {
  color: #0B1728 !important;
}

.icon-btn-dark {
  border-color: rgba(11, 23, 40, 0.15) !important;
  color: #0B1728 !important;
}

.icon-btn-dark:active {
  background: rgba(11, 23, 40, 0.08) !important;
}

/* Service Hub Header */
.service-hub-header {
  margin-top: 2px;
  margin-bottom: 8px;
}

.hub-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #79899D;
  text-transform: uppercase;
}

/* 2x4 Services Grid */
.services-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hub-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 13px 13px;
  height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 14px rgba(11, 23, 40, 0.03);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 23, 40, 0.08);
  border-color: rgba(11, 23, 40, 0.08);
}

.hub-card:active {
  transform: scale(0.97);
}

.hub-card-icon {
  color: #0B1728;
  display: flex;
  align-items: center;
}

.hub-card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.hub-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.hub-card-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

/* ================= DOCUMENTS & FORMALITIES DETAIL PAGE ================= */
.app-page.page-detail {
  padding: 0;
  margin: 0;
  background-color: #F7F5F0;
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.app-page.page-detail.active {
  display: flex !important;
}

.detail-header-banner {
  background-color: #08101C;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-back-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  transition: transform 0.15s ease;
}

.detail-back-btn:hover {
  transform: translateX(-2px);
}

.detail-back-btn svg {
  width: 22px;
  height: 22px;
}

.detail-header-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.detail-body {
  padding: 12px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.doc-list {
  display: flex;
  flex-direction: column;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(11, 23, 40, 0.08);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.doc-item:hover, .doc-item.selected {
  background-color: rgba(11, 23, 40, 0.03);
}

.doc-item-icon {
  color: #0B1728;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-item-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.doc-item-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #0B1728;
  letter-spacing: -0.2px;
}

.doc-item-arrow {
  width: 16px;
  height: 16px;
  color: #6C7A8C;
  stroke-width: 2;
}

.detail-cta-container {
  margin-top: 24px;
  padding-top: 8px;
}

.detail-continue-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(180deg, #EE262E 0%, #D8131A 100%);
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--brand-red-glow);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-continue-btn:hover {
  background: linear-gradient(180deg, #F82F37 0%, #E3161D 100%);
  box-shadow: 0 10px 26px rgba(237, 28, 36, 0.45);
}

/* ================= DYNAMIC SERVICE APPLICATION WORKFLOW (3 STEPS) ================= */

/* Header Center Brand */
.header-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #0B1728;
  line-height: 1;
}

.brand-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #79899D;
  margin-top: 2px;
}

/* Scroll Containers */
.form-scroll-container, .review-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.form-service-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: #0B1728;
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin-top: 2px;
}

.form-service-title.center {
  text-align: center;
}

.auto-yacht-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(237, 28, 36, 0.06);
  border: 1px solid rgba(237, 28, 36, 0.18);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #0B1728;
  width: fit-content;
}

.auto-yacht-badge svg {
  width: 15px;
  height: 15px;
  color: var(--brand-red);
}

/* Form Fields */
.form-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #5E758D;
}

.field-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  height: 46px;
  box-shadow: 0 2px 8px rgba(11, 23, 40, 0.02);
  overflow: hidden;
}

.field-icon {
  width: 18px;
  height: 18px;
  color: #0B1728;
  margin-right: 10px;
  flex-shrink: 0;
}

.field-input, .field-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #0B1728;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 4px;
}

.field-chevron {
  width: 16px;
  height: 16px;
  color: #79899D;
  margin-left: 6px;
  pointer-events: none;
  flex-shrink: 0;
}

/* Upload Section & Cards Grid */
.upload-section {
  margin-top: 6px;
}

.upload-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
  margin-bottom: 8px;
}

.upload-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 105px;
  box-shadow: 0 2px 8px rgba(11, 23, 40, 0.02);
  transition: all 0.2s ease;
}

.upload-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.doc-type-icon.red {
  width: 22px;
  height: 22px;
  color: var(--brand-red);
  stroke-width: 1.8;
}

.doc-meta {
  display: flex;
  flex-direction: column;
}

.doc-name {
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
  line-height: 1.2;
}

.doc-format {
  font-size: 10px;
  color: #79899D;
  margin-top: 2px;
}

.upload-action-btn {
  background: transparent;
  border: none;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  width: fit-content;
}

.upload-action-btn svg {
  width: 14px;
  height: 14px;
}

.upload-card.uploaded {
  border-color: rgba(16, 185, 129, 0.4);
  background: #F2FAF5;
}

.upload-card.uploaded .upload-action-btn {
  color: var(--accent-green);
}

.form-cta-container, .review-cta-container {
  margin-top: 10px;
}

/* ================= STEP 2: REVIEW REQUEST ================= */
.yacht-illustration-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 18px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(11, 23, 40, 0.03);
}

.yacht-vector {
  width: 170px;
  height: 52px;
}

.yacht-review-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: #0B1728;
}

.review-details-table {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 16px;
  padding: 4px 16px;
  box-shadow: 0 2px 8px rgba(11, 23, 40, 0.02);
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 23, 40, 0.06);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5E758D;
  font-weight: 500;
}

.review-label svg {
  width: 16px;
  height: 16px;
  color: #0B1728;
}

.review-value {
  font-size: 14px;
  font-weight: 700;
  color: #0B1728;
}

.review-docs-summary {
  margin-top: 4px;
}

.summary-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #5E758D;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.summary-doc-list {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 14px;
  padding: 4px 14px;
}

.sum-doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 23, 40, 0.06);
}

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

.red-file-icon {
  width: 18px;
  height: 18px;
  color: var(--brand-red);
}

.sum-doc-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #0B1728;
}

.sum-doc-type {
  font-size: 10px;
  font-weight: 700;
  color: #79899D;
}

.green-check {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  stroke-width: 2.5;
}

.pending-clock {
  width: 16px;
  height: 16px;
  color: #79899D;
}

/* ================= STEP 3: CONFIRMATION PAGE ================= */
.app-page.page-dark-full {
  background-color: #08101C;
  margin: -12px -20px -24px;
  padding: 30px 20px;
  min-height: calc(100% + 36px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-page.page-dark-full.active {
  display: flex !important;
}

.success-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 100%;
  z-index: 10;
}

.success-icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  box-shadow: 0 0 30px var(--brand-red-glow);
}

.giant-check {
  width: 48px;
  height: 48px;
  color: var(--brand-red);
  stroke-width: 2.5;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.success-line {
  width: 44px;
  height: 2px;
  background-color: var(--brand-red);
  margin: 2px 0;
}

.success-info-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6C859E;
  text-transform: uppercase;
}

.info-ref-code {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.info-status-val {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: #FFFFFF;
}

.success-cta-container {
  width: 100%;
  margin-top: 10px;
}

.compass-decorative {
  width: 80px;
  height: 80px;
  margin-top: 20px;
  opacity: 0.25;
}

/* ================= SERVICES TAB CONTENT ================= */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.service-category-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-label);
  margin-bottom: 4px;
}

.service-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-item-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.service-icon-box svg {
  width: 20px;
  height: 20px;
}

.service-text {
  flex: 1;
}

.service-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: #FFF;
}

.service-text p {
  font-size: 12px;
  color: var(--text-secondary);
}

.arrow-icon {
  width: 16px;
  height: 16px;
  color: var(--text-label);
}

/* ================= MESSAGES TAB ================= */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.chat-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 14px;
  border-radius: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-red);
}

.avatar.captain {
  color: #38BDF8;
}

.chat-info {
  flex: 1;
}

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

.chat-name {
  font-size: 14px;
  font-weight: 600;
  color: #FFF;
}

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

.chat-last-msg {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ================= PROFILE TAB ================= */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  gap: 6px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  margin-bottom: 4px;
}

.profile-avatar svg {
  width: 32px;
  height: 32px;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: #FFF;
}

.profile-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 14px 16px;
  border-radius: 12px;
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
}

.profile-menu-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.profile-menu-item .arrow {
  margin-left: auto;
}

/* ================= NOTIFICATIONS DRAWER ================= */
.notifications-drawer {
  position: absolute;
  top: 55px;
  left: 14px;
  right: 14px;
  background: rgba(12, 22, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 14px;
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.notifications-drawer.show {
  display: flex;
  animation: slideDown 0.25s ease-out;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #FFF;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.notif-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFF;
  display: block;
}

.notif-text p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.notif-time {
  font-size: 10px;
  color: var(--text-label);
  margin-top: 2px;
  display: block;
}

/* ================= SERVICE REQUEST MODAL ================= */
.bottom-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: flex-end;
}

.bottom-sheet-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.bottom-sheet {
  width: 100%;
  background: #0D1726;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  align-self: center;
}

.sheet-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: #FFF;
}

.sheet-header p {
  font-size: 12px;
  color: var(--text-secondary);
}

.service-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-opt-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #FFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-opt-btn:hover {
  background: rgba(237, 28, 36, 0.1);
  border-color: var(--brand-red);
}

.service-opt-btn svg {
  width: 22px;
  height: 22px;
  color: var(--brand-red);
}

.service-opt-btn span {
  font-size: 12px;
  font-weight: 500;
}

.modal-cancel-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ================= TOAST NOTIFICATION ================= */
.toast-notification {
  position: absolute;
  top: 60px;
  left: 20px;
  right: 20px;
  background: rgba(16, 185, 129, 0.95);
  color: #FFF;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.3);
  z-index: 100;
}

.toast-notification.show {
  display: flex;
  animation: slideDown 0.3s ease-out;
}

.toast-icon {
  width: 20px;
  height: 20px;
}

/* ================= FIXED BOTTOM NAV BAR ================= */
.bottom-nav {
  position: absolute;
  bottom: 1px;
  left: 1px;
  right: 1px;
  height: 76px;
  background: rgba(8, 16, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 18px;
  border-radius: 0 0 45px 45px;
  overflow: hidden;
  z-index: 60;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  flex: 1;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #FFF;
}

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

.nav-icon {
  width: 22px;
  height: 22px;
}

.nav-item.active .nav-icon {
  fill: var(--brand-red);
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

/* Home Indicator Bar */
.home-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  z-index: 70;
}

/* ================= PROVISIONING MARKET E-COMMERCE STYLES ================= */
.market-header-banner {
  background-color: #08101C;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.market-header-top .detail-header-title {
  font-size: 22px;
}

.market-cart-btn {
  background: rgba(237, 28, 36, 0.12);
  border: 1px solid rgba(237, 28, 36, 0.3);
  color: #ED1C24;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-red);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #08101C;
}

.market-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0 14px;
  height: 42px;
}

.market-search-wrapper .search-icon {
  width: 18px;
  height: 18px;
  color: #A0B2C6;
  margin-right: 10px;
}

.market-search-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.market-search-wrapper input::placeholder {
  color: #79899D;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: #A0B2C6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Market Content Body */
.market-body {
  padding: 14px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #F7F5F0;
  flex: 1;
  overflow-y: auto;
}

/* Quick Reorder Bar */
.market-quick-bar {
  display: flex;
}

.btn-reorder-previous {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #0B1728;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 23, 40, 0.03);
  transition: all 0.2s ease;
}

.btn-reorder-previous:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-reorder-previous svg {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
}

/* Horizontal Categories Scroller */
.market-categories-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.market-categories-scroller::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #5E758D;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cat-pill.active, .cat-pill:hover {
  background: #0B1728;
  color: #FFFFFF;
  border-color: #0B1728;
}

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

.product-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 12px rgba(11, 23, 40, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 23, 40, 0.06);
}

.product-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #79899D;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
  transition: all 0.15s ease;
}

.product-fav-btn.active {
  color: var(--brand-red);
}

.product-fav-btn svg {
  width: 15px;
  height: 15px;
}

.product-img-wrapper {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #F2EFE9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.product-brand {
  font-size: 10px;
  font-weight: 700;
  color: #79899D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
  line-height: 1.25;
  margin-bottom: 4px;
}

.product-unit {
  font-size: 11px;
  color: #5E758D;
  margin-bottom: 8px;
}

.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(11, 23, 40, 0.06);
}

.product-price {
  font-size: 14px;
  font-weight: 800;
  color: #0B1728;
}

.btn-add-product {
  background: var(--brand-red);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}

.btn-add-product:hover {
  opacity: 0.9;
}

/* Floating Bottom Cart Bar */
.market-floating-bar {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: #0B1728;
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(11, 23, 40, 0.45);
  z-index: 65;
  display: none;
}

.market-floating-bar.show {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-cart-info {
  display: flex;
  flex-direction: column;
}

.float-cart-count {
  font-size: 11px;
  color: #A0B2C6;
}

.float-cart-total {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.float-cart-view-btn {
  background: var(--brand-red);
  color: #FFF;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Provisioning Cart & Detail Modal Overlays */
.cart-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 16, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 120;
  display: none;
  align-items: flex-end;
  overscroll-behavior: contain;
  touch-action: none;
}

.cart-modal-overlay.show, .cart-modal-overlay.active {
  display: flex !important;
  animation: fadeIn 0.25s ease;
}

.cart-modal-container {
  width: 100%;
  height: 92%;
  max-height: 92%;
  background: #F7F5F0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
  touch-action: pan-y;
  pointer-events: auto;
}

.cart-modal-header {
  background: #08101C;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-modal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: #FFF;
  margin: 0;
}

.cart-badge-yacht {
  font-size: 11px;
  color: #ED1C24;
  font-weight: 700;
}

.cart-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Unified Scrollable Body */
.cart-modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cold-chain-banner {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.snow-icon {
  width: 20px;
  height: 20px;
  color: #2563EB;
}

.cold-text {
  display: flex;
  flex-direction: column;
}

.cold-text strong {
  font-size: 11px;
  color: #1E40AF;
}

.cold-text span {
  font-size: 10px;
  color: #3B82F6;
}

.cart-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  background: #FFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(11, 23, 40, 0.02);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cart-item-brand {
  font-size: 10px;
  font-weight: 700;
  color: #79899D;
  text-transform: uppercase;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
  line-height: 1.25;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-red);
  margin-top: 2px;
}

.cart-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F2EFE9;
  border-radius: 10px;
  padding: 4px 8px;
}

.stepper-btn {
  background: #FFF;
  border: 1px solid rgba(11, 23, 40, 0.1);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #0B1728;
  cursor: pointer;
}

.stepper-val {
  font-size: 13px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.cart-options-card {
  background: #FFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.substitute-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.substitute-toggle-label input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-red);
  cursor: pointer;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-text strong {
  font-size: 12px;
  color: #0B1728;
}

.toggle-text span {
  font-size: 11px;
  color: #79899D;
  line-height: 1.3;
}

.cart-delivery-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #5E758D;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.cart-modal-footer {
  background: #FFF;
  border-top: 1px solid rgba(11, 23, 40, 0.08);
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.03);
}

.cart-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5E758D;
}

.cart-price-row.discount-row {
  color: #10B981;
}

.cart-price-row.total-row {
  font-size: 15px;
  font-weight: 800;
  color: #0B1728;
  padding-top: 6px;
  border-top: 1px dashed rgba(11, 23, 40, 0.12);
}

.btn-request-provisioning-quote {
  width: 100%;
  height: 48px;
  background: var(--brand-red);
  color: #FFF;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.25);
  transition: transform 0.15s ease;
}

.btn-request-provisioning-quote:hover {
  transform: translateY(-1px);
}

.quote-guarantee-note {
  font-size: 10px;
  color: #79899D;
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

/* ================= REQUESTS & ORDERS TAB STYLES ================= */
.requests-header-banner {
  padding: 16px 16px 12px;
  background: #08101C;
  color: #FFFFFF;
}

.requests-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.requests-count-badge {
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.35);
  color: #ED1C24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.request-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.request-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.req-tab-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.req-tab-pill.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

.requests-body {
  padding: 14px 16px 90px;
}

.requests-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(11, 23, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 23, 40, 0.08);
}

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

.req-ref-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0B1728;
  background: #F1F5F9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(11, 23, 40, 0.1);
}

.req-date {
  font-size: 11px;
  color: #79899D;
  font-weight: 500;
}

.req-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #0B1728;
  line-height: 1.25;
  margin: 0;
}

.req-card-meta-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  background: #F7F5F0;
  padding: 10px 12px;
  border-radius: 10px;
  overflow: hidden;
}

.req-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.req-meta-item span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #79899D;
  text-transform: uppercase;
}

.req-meta-item strong {
  font-size: 11px;
  font-weight: 700;
  color: #0B1728;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.req-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  overflow: hidden;
}

.req-price-wrap {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.req-price-label {
  font-size: 9px;
  color: #79899D;
  font-weight: 700;
  text-transform: uppercase;
}

.req-price-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-red);
}

/* Status Badges */
.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 65%;
  flex-shrink: 1;
}

/* Payload Section */
.req-payload-section {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.req-payload-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req-payload-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(11, 23, 40, 0.04);
  font-size: 12px;
}

.req-payload-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.req-payload-key {
  color: #79899D;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-payload-key svg {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
}

.req-payload-val {
  color: #0B1728;
  font-weight: 700;
  text-align: right;
}

.status-quote-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-approval-pending {
  background: rgba(249, 115, 22, 0.12);
  color: #EA580C;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-scheduled {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.status-in-operation {
  background: rgba(139, 92, 246, 0.12);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-completed {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ================= REQUEST DETAIL MODAL & TIMELINE ================= */
.req-detail-modal-container {
  max-width: 480px;
  background: #F7F5F0;
}

.req-detail-ref-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  background: rgba(237, 28, 36, 0.1);
  color: var(--brand-red);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 4px;
}

.requests-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(237, 28, 36, 0.15);
  color: var(--brand-red);
  padding: 4px 10px;
  border-radius: 12px;
}

.btn-header-support-chat {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.35);
  transition: transform 0.15s ease;
}

.btn-header-support-chat:hover {
  transform: scale(1.03);
}

.btn-header-support-chat svg {
  width: 14px;
  height: 14px;
}

.req-card-chat-btn {
  background: #0B1728;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.req-card-chat-btn:hover {
  background: var(--brand-red);
  transform: translateY(-1px);
}

.req-card-chat-btn svg {
  width: 13px;
  height: 13px;
}

.req-detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.req-meta-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.req-meta-card.full {
  grid-column: span 2;
}

.req-meta-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #79899D;
}

.req-meta-val {
  font-size: 12px;
  font-weight: 700;
  color: #0B1728;
}

.req-meta-val.red {
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 800;
}

/* Timeline Section */
.timeline-section {
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.timeline-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #5E758D;
  margin-bottom: 14px;
}

.timeline-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
}

.timeline-steps-container::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 16px;
  left: 9px;
  width: 2px;
  background: rgba(11, 23, 40, 0.1);
}

.t-step {
  position: relative;
  padding-bottom: 18px;
}

.t-step:last-child {
  padding-bottom: 0;
}

.t-node {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 2;
}

.t-node svg {
  width: 12px;
  height: 12px;
}

.t-step.completed .t-node {
  background: #10B981;
  color: #FFFFFF;
}

.t-step.current .t-node {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2);
}

.t-title {
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
  margin-bottom: 2px;
}

.t-time {
  font-size: 10px;
  font-weight: 600;
  color: #79899D;
  margin-bottom: 4px;
}

.t-desc {
  font-size: 11px;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid rgba(11, 23, 40, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 4px;
  line-height: 1.35;
}

.btn-timeline-approve {
  width: 100%;
  height: 46px;
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* ================= CHAT & SUPPORT MODAL STYLES ================= */
.chat-modal-container {
  height: 96%;
  max-height: 96%;
  background: #ECE5DD;
  background-image: radial-gradient(rgba(11, 23, 40, 0.04) 1px, transparent 0);
  background-size: 16px 16px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.chat-modal-header {
  background: #08101C;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 20;
}

.chat-back-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: -4px;
}

.chat-manager-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.chat-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10B981;
  border: 2px solid #08101C;
  border-radius: 50%;
}

.chat-manager-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-manager-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-manager-role {
  font-size: 10px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-order-ref {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  color: #ED1C24;
  letter-spacing: 0.5px;
}

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

.chat-action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.chat-action-icon-btn:hover {
  transform: scale(1.05);
}

.chat-action-icon-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.chat-action-icon-btn.emergency {
  background: #ED1C24;
  color: #FFFFFF;
}

.chat-action-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Chat Scroll Body & Message Bubbles */
.chat-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.system-status-msg {
  align-self: center;
  background: rgba(8, 16, 28, 0.08);
  border: 1px solid rgba(8, 16, 28, 0.1);
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  text-align: center;
  max-width: 85%;
}

.chat-bubble {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  animation: fadeIn 0.2s ease;
}

.chat-bubble.sent {
  align-self: flex-end;
}

.chat-bubble.received {
  align-self: flex-start;
}

.bubble-content {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-bubble.sent .bubble-content {
  background: #DCF8C6;
  color: #0B1728;
  border-top-right-radius: 2px;
}

.chat-bubble.received .bubble-content {
  background: #FFFFFF;
  color: #0B1728;
  border-top-left-radius: 2px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 10px;
  color: #64748B;
  margin-top: 2px;
}

.read-ticks {
  color: #3B82F6;
  font-weight: 800;
  font-size: 11px;
}

/* Rich Media Message Cards inside Bubbles */
.chat-photo-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  display: block;
  margin-bottom: 4px;
}

.chat-video-card {
  width: 100%;
  max-width: 230px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.chat-video-card video {
  width: 100%;
  display: block;
}

.chat-doc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(11, 23, 40, 0.05);
  border: 1px solid rgba(11, 23, 40, 0.1);
  padding: 8px 10px;
  border-radius: 10px;
  min-width: 200px;
}

.doc-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(237, 28, 36, 0.12);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.doc-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #0B1728;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-card-size {
  font-size: 9px;
  color: #64748B;
}

/* Voice Message Audio Player Card */
.chat-audio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
  min-width: 190px;
}

.audio-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-waveform-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.wave-bar {
  flex: 1;
  background: #CBD5E1;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.wave-bar.active {
  background: var(--brand-red);
}

.audio-time {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
}

/* Attachment Popover & Input Bar */
.chat-media-popover {
  position: absolute;
  bottom: 70px;
  left: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.12);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(11, 23, 40, 0.15);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
  animation: slideUp 0.2s ease;
}

.chat-media-popover.show {
  display: flex;
}

.media-pop-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #0B1728;
  cursor: pointer;
  transition: background 0.15s ease;
}

.media-pop-btn:hover {
  background: #F1F5F9;
}

.media-pop-btn svg.blue { color: #3B82F6; }
.media-pop-btn svg.purple { color: #8B5CF6; }
.media-pop-btn svg.red { color: #ED1C24; }

.chat-input-bar {
  background: #FFFFFF;
  border-top: 1px solid rgba(11, 23, 40, 0.08);
  padding: 10px 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 20;
}

.chat-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid rgba(11, 23, 40, 0.08);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-tool-btn.mic:active {
  background: #FEE2E2;
  color: #ED1C24;
}

.chat-input-wrapper {
  flex: 1;
  background: #F1F5F9;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
  display: flex;
  align-items: center;
}

.chat-text-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #0B1728;
  outline: none;
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-red);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

/* ================= PROFILE SUPPORT BANNER & SHORTCUTS ================= */
.profile-support-banner {
  background: rgba(13, 23, 38, 0.95);
  border: 1px solid rgba(237, 28, 36, 0.3);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-support-banner:hover {
  transform: translateY(-1px);
  border-color: var(--brand-red);
}

.supp-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.supp-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(237, 28, 36, 0.18);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supp-banner-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px;
}

.supp-banner-text p {
  font-size: 10px;
  color: #94A3B8;
  margin: 0;
}

.supp-online-pill {
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.supp-online-pill .dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
}

.profile-item-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(237, 28, 36, 0.18);
  color: var(--brand-red);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: auto;
  margin-right: 4px;
}

.profile-shortcuts-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #79899D;
  margin: 18px 0 10px;
}

.profile-support-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-support-card {
  background: rgba(13, 23, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.supp-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.supp-card-icon.wa {
  background: #25D366;
}

.supp-card-icon.em {
  background: #ED1C24;
}

.supp-card-icon svg {
  width: 16px;
  height: 16px;
}

.supp-card-info {
  display: flex;
  flex-direction: column;
}

.supp-card-info strong {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.supp-card-info span {
  font-size: 10px;
  color: #79899D;
}

/* ================= ENHANCED PROFILE & SETTINGS SUITE ================= */
.profile-header-card {
  background: rgba(13, 23, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar svg {
  width: 28px;
  height: 28px;
}

.avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0B1728;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.avatar-edit-badge svg {
  width: 10px;
  height: 10px;
}

.profile-user-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 11px;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 10px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email svg {
  width: 12px;
  height: 12px;
}

.btn-edit-profile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-edit-profile svg {
  width: 12px;
  height: 12px;
}

.profile-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #79899D;
  margin: 14px 0 8px;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 23, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 14px;
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-menu-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.item-icon.red { color: #EF4444; }
.item-icon.blue { color: #3B82F6; }
.item-icon.gold { color: #F59E0B; }
.item-icon.green { color: #10B981; }
.item-icon.purple { color: #8B5CF6; }
.item-icon.yellow { color: #FBBF24; }
.item-icon.logout { color: #EF4444; }

.prof-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.prof-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-item-sub {
  font-size: 10px;
  color: #79899D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-item-badge.info {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.profile-item-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.profile-item-badge.lang-badge, .profile-item-badge.curr-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.logout-item {
  border-color: rgba(239, 68, 68, 0.2);
  margin-top: 4px;
}

.logout-item:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
}

.logout-text {
  color: #EF4444 !important;
  font-weight: 700;
}

/* Detail Modal Styling */
.profile-detail-modal-container {
  max-width: 480px;
  background: #F7F5F0;
}

.prof-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prof-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.prof-info-label {
  font-size: 11px;
  font-weight: 700;
  color: #79899D;
  text-transform: uppercase;
}

.prof-info-val {
  font-size: 13px;
  font-weight: 700;
  color: #0B1728;
}

.prof-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(11, 23, 40, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.toggle-switch-input {
  width: 40px;
  height: 22px;
  appearance: none;
  background: #CBD5E1;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-switch-input:checked {
  background: #10B981;
}

.toggle-switch-input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-switch-input:checked::after {
  transform: translateX(18px);
}

/* ================= RESPONSIVE SHOWCASE ================= */
@media (max-width: 600px) {
  body {
    height: 100dvh;
    min-height: 0;
    align-items: flex-start;
    padding: 12px 14px;
    overflow: hidden;
  }

  .showcase-container {
    gap: 12px;
    max-width: none;
    height: 100%;
    margin: 0 auto;
  }

  .showcase-controls {
    width: 100%;
    padding: 7px 12px;
  }

  #btn-scale-down,
  #btn-scale-up,
  #scale-indicator,
  #btn-reset-view,
  .control-actions .divider {
    display: none;
  }

  .phone-frame {
    width: 390px;
    max-width: none;
    height: 844px;
    max-height: none;
    flex: 0 0 auto;
    transform-origin: top center;
  }

  .app-page {
    padding-inline: 16px;
  }

  .bottom-nav {
    padding-inline: 6px;
  }

  .market-floating-bar {
    left: 12px;
    right: 12px;
  }
}

@media (min-width: 601px) {
  body {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
}

@media (max-width: 360px) {
  body {
    padding-inline: 12px;
  }

  .app-page {
    padding-inline: 12px;
    gap: 13px;
  }

  .info-grid,
  .services-hub-grid {
    gap: 8px;
  }

  .info-card,
  .hub-card {
    min-width: 0;
  }

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