/* =========================================================
   FALAKNAZ RESIDENT PORTAL - iOS WEB APP STYLESHEET
   Luxury Brand Tokens, iOS Safe Areas, Dynamic Viewport & Theming
   ========================================================= */

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

:root {
  /* Brand Colors */
  --color-primary: #5D4037;
  --color-primary-dark: #3E2723;
  --color-primary-light: #8D6E63;
  --color-secondary: #8D6E63;
  --color-accent: #C5A059;
  --color-accent-light: #E5C180;

  /* Status Colors */
  --color-success: #4CAF50;
  --color-error: #D32F2F;
  --color-warning: #FFA000;
  --color-pending: #1976D2;
  --color-in-progress: #7B1FA2;

  /* Light Mode Defaults */
  --bg-page: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --text-primary: #3E2723;
  --text-secondary: #795548;
  --text-muted: #A1887F;
  --border-color: #D7CCC8;
  --divider-color: #EFEBE9;
  --nav-bg: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(93, 64, 55, 0.06);
  --shadow-md: 0 4px 16px rgba(93, 64, 55, 0.10);
  --shadow-lg: 0 8px 28px rgba(93, 64, 55, 0.14);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
  --gradient-accent: linear-gradient(135deg, #C5A059 0%, #E5C180 100%);
  --gradient-card-light: linear-gradient(135deg, #FFFFFF 0%, #F7F5F0 100%);
  --gradient-card-dark: linear-gradient(135deg, #2C1D16 0%, #1C120C 100%);

  /* Safe Area Variables */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-page: #1C120C;
  --bg-card: #2C1D16;
  --bg-input: #231610;
  --text-primary: #EFEBE9;
  --text-secondary: #D7CCC8;
  --text-muted: #8D6E63;
  --border-color: #4E342E;
  --divider-color: #3E2723;
  --nav-bg: #2C1D16;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.60);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: #0f0b09;
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* =========================================================
   DESKTOP SIMULATOR / DUAL VIEWPORT WRAPPER
   ========================================================= */
#app-viewport-wrapper {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at center, #2C1D16 0%, #0F0B09 100%);
  overflow: hidden;
}

/* Desktop Preview Header Toolbar */
.desktop-toolbar {
  position: absolute;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(44, 29, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  color: #EFEBE9;
  font-size: 13px;
  font-weight: 600;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: var(--color-accent);
  color: #3E2723;
}

.toolbar-badge {
  background: linear-gradient(135deg, #C5A059, #E5C180);
  color: #3E2723;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

/* iPhone Device Shell (Desktop Only) */
.iphone-frame {
  width: 412px;
  height: 860px;
  max-height: 95vh;
  background: #000;
  border-radius: 52px;
  padding: 12px;
  position: relative;
  box-shadow: 
    0 0 0 4px #42352f,
    0 0 0 8px #1a1513,
    0 25px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fullscreen mode (Toggleable or Mobile View) */
.iphone-frame.fullscreen-mode {
  width: 100vw !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--bg-page);
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.fullscreen-mode .iphone-screen {
  border-radius: 0;
}

/* iPhone Dynamic Island / Notch */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000000;
  border-radius: 20px;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

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

.island-sensor {
  width: 10px;
  height: 10px;
  background: #0d0d0d;
  border-radius: 50%;
}

/* Simulated iOS Status Bar (Desktop Simulator only) */
.ios-status-bar {
  width: 100%;
  height: 48px;
  padding: 10px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--color-primary);
  z-index: 4000;
  user-select: none;
}

.status-time {
  letter-spacing: -0.2px;
}

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

/* Simulated iPhone Home Indicator Bar */
.ios-home-indicator-wrap {
  width: 100%;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--nav-bg);
  padding-bottom: var(--sab);
  z-index: 4000;
}

.ios-home-indicator {
  width: 134px;
  height: 4px;
  background-color: var(--text-muted);
  border-radius: 100px;
  opacity: 0.5;
}

/* =========================================================
   CORE APP LAYOUT & CONTAINER
   ========================================================= */
#app-container {
  flex: 1;
  width: 100%;
  height: calc(100% - 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.screen-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 20;
}

.screen-scroll-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 90px 20px;
}

/* Hide Scrollbar for clean app feel */
.screen-scroll-body::-webkit-scrollbar {
  display: none;
}
.screen-scroll-body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =========================================================
   APP BAR / HEADER
   ========================================================= */
.app-header {
  width: 100%;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
  flex-shrink: 0;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  min-width: 44px;
}

.header-center {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 8px;
}

.header-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  letter-spacing: 0.3px;
}

.header-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 1px;
}

.header-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.header-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.badge-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #D32F2F;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--color-primary);
}

/* =========================================================
   BOTTOM NAVIGATION BAR
   ========================================================= */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--nav-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 3000;
  padding-bottom: var(--sab);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  position: relative;
}

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

.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.2px;
}

.nav-item.active .nav-label {
  font-weight: 800;
  color: var(--color-primary);
}

[data-theme="dark"] .nav-item.active .nav-label {
  color: var(--color-accent);
}

/* =========================================================
   CUSTOM LUXURY CARDS & WIDGETS
   ========================================================= */
.custom-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.custom-card.clickable:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
}

/* Hero Resolution Banner */
.hero-resolution-banner {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(93, 64, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-resolution-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-tag {
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.banner-title {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 4px 0;
  color: #ffffff;
}

.banner-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  max-width: 220px;
}

.resolution-ring-wrap {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resolution-svg {
  transform: rotate(-90deg);
  width: 72px;
  height: 72px;
}

.resolution-svg circle {
  fill: none;
  stroke-width: 6;
}

.circle-bg {
  stroke: rgba(255, 255, 255, 0.15);
}

.circle-progress {
  stroke: var(--color-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.resolution-val {
  position: absolute;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

/* Status Tracker List Items */
.tracker-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.tracker-strip {
  width: 6px;
  align-self: stretch;
}

.tracker-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 14px;
  flex-shrink: 0;
}

.tracker-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tracker-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.tracker-count {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.tracker-chevron {
  padding-right: 16px;
  color: var(--text-muted);
}

/* =========================================================
   COMPLAINT DIRECTORY & TICKET CARDS
   ========================================================= */
.search-bar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px 12px 42px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Filter Chips */
.filter-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

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

.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  font-weight: 700;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-pending {
  background: rgba(25, 118, 210, 0.12);
  color: var(--color-pending);
}

.badge-in-progress {
  background: rgba(123, 31, 162, 0.12);
  color: var(--color-in-progress);
}

.badge-resolved {
  background: rgba(76, 175, 80, 0.14);
  color: #2E7D32;
}

.badge-rejected, .badge-failed {
  background: rgba(211, 47, 47, 0.12);
  color: var(--color-error);
}

.badge-paid {
  background: rgba(76, 175, 80, 0.14);
  color: #2E7D32;
}

.badge-unpaid {
  background: rgba(211, 47, 47, 0.12);
  color: var(--color-error);
}

/* Floating Action Button */
.fab-btn {
  position: absolute;
  right: 20px;
  bottom: calc(76px + var(--sab));
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(93, 64, 55, 0.35);
  border: none;
  cursor: pointer;
  z-index: 2500;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* =========================================================
   BUTTONS, INPUTS & FORMS
   ========================================================= */
.btn-primary {
  width: 100%;
  height: 52px;
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(93, 64, 55, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(93, 64, 55, 0.2);
}

.btn-secondary {
  width: 100%;
  height: 48px;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.input-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-control:focus {
  border-color: var(--color-primary);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .input-control {
  padding-left: 44px;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* =========================================================
   MODALS & BOTTOM SHEETS
   ========================================================= */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-height: 90%;
  background-color: var(--bg-card);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px 24px 32px 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  align-self: center;
  margin-bottom: 16px;
}

/* Center Dialog Modal */
.center-dialog {
  width: calc(100% - 40px);
  max-width: 340px;
  background-color: var(--bg-card);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  align-self: center;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .center-dialog {
  transform: scale(1);
}

.dialog-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(76, 175, 80, 0.12);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
}

/* =========================================================
   PULL-TO-REFRESH & LOADING SHIMMER
   ========================================================= */
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

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

/* Empty State Widget */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(93, 64, 55, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 260px;
  margin-bottom: 20px;
}

/* Toast Notifications */
.toast-notice {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(44, 29, 22, 0.95);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   MOBILE / REAL IPHONE SAFARI SPECIFIC OVERRIDES
   ========================================================= */
@media (max-width: 768px) {
  .desktop-toolbar {
    display: none !important;
  }
  
  #app-viewport-wrapper {
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: var(--bg-page) !important;
  }

  .iphone-frame {
    width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--bg-page) !important;
  }

  .iphone-screen {
    border-radius: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
  }

  /* Real iPhone has its own status bar and notch */
  .dynamic-island {
    display: none !important;
  }

  .ios-status-bar {
    display: none !important;
  }

  .ios-home-indicator-wrap {
    display: none !important;
  }

  #app-container {
    height: 100% !important;
    flex: 1;
  }

  /* Safe Area Header Spacing */
  .app-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
  }

  /* Bottom Navigation Bar Locked and Fully Visible */
  .bottom-nav {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background-color: var(--nav-bg) !important;
    border-top: 1px solid var(--border-color) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
    z-index: 3000 !important;
  }

  /* Bottom scroll padding so Logout button is never cut off */
  .screen-scroll-body {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Floating Action Button cleanly positioned */
  .fab-btn {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
