@import url('../fonts/inter.css');

/* ==========================================================================
   REALEXUS CAPITAL - Enterprise Fintech Design System
   Font: Inter (RSMS Local Engine) & Apple System Fallback
   ========================================================================== */

:root {
  /* --- Apple & Stripe Inspired Color System --- */
  --apple-bg: #f8fafc;
  --apple-canvas: #f1f5f9;
  --apple-card: #ffffff;
  --apple-dark-section: #0f172a;
  --apple-dark-card: #1e293b;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-dark: rgba(255, 255, 255, 0.15);

  /* --- Aligned Brand Accents --- */
  --primary: #0b5aa0;          /* Realexus Core Blue */
  --primary-accent: #0284c7;   /* Modern Sky Accent */
  --primary-light: #e0f2fe;
  --growth: #10b981;           /* Emerald Green */
  --growth-light: #dcfce7;
  --warning: #f59e0b;          /* Amber */
  --warning-light: #fef3c7;
  --danger: #ef4444;           /* Rose Red */
  --danger-light: #fee2e2;
  --gold: #f59e0b;

  /* --- Geometry & Elevation --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 980px;
  --max-width: 1140px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px rgba(2, 132, 199, 0.15);

  --transition-smooth: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: all 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Base & Inter Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: 'InterVariable', 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--apple-bg);
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

body {
  line-height: 1.47059;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}

/* --- Utility Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-tertiary); }
.text-growth { color: var(--growth); }
.text-primary { color: var(--primary); }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.badge-tag.green {
  background: var(--growth-light);
  color: #1b8a37;
}

/* Apple Typography Scale */
.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07143;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-headline span {
  background: linear-gradient(180deg, #0b5aa0 0%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.003em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 19px;
  line-height: 1.4211;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

/* --- Apple Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.btn-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
  color: #ffffff;
}

.btn-growth {
  background: #1d1d1f;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-growth:hover {
  background: #333336;
  transform: scale(1.02);
  color: #ffffff;
}

.btn-outline {
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-accent);
}

.btn-outline:hover {
  background: rgba(0, 113, 227, 0.15);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* --- Apple Glass Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

a {
  text-decoration: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
  text-decoration: none !important;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--primary-accent);
  text-decoration: none !important;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Apple Minimalist Hero Section --- */
.hero-section {
  padding: 80px 0 90px 0;
  background: var(--apple-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 21px;
  line-height: 1.38095;
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* --- Apple Precision Card --- */
.apple-card {
  background: var(--apple-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.apple-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.12);
}

/* --- Quick Scanner Glass Box --- */
.hero-scanner-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

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

.scanner-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.scanner-input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 18px;
}

.scanner-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--apple-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.scanner-input:focus {
  border-color: var(--primary-accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.stock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-pill {
  background: var(--apple-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stock-pill:hover {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

/* --- Features Grid --- */
.section-padding {
  padding: 90px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--apple-canvas);
  color: var(--primary-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Audit Table --- */
/* --- Apple Segmented Control Tabs --- */
.segmented-control {
  background: var(--apple-canvas);
  padding: 4px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: auto;
}

.segmented-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.segmented-tab.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.filter-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--apple-canvas);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--primary-accent);
  color: #ffffff;
  border-color: var(--primary-accent);
}

.portfolio-dashboard {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dashboard-header {
  padding: 24px 30px;
  background: var(--apple-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-input {
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.audit-table thead {
  background: var(--apple-canvas);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.audit-table th {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.05em;
}

.audit-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.audit-table tbody tr:hover {
  background-color: var(--apple-canvas);
}

.stock-symbol {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.stock-sector {
  font-size: 13px;
  color: var(--text-tertiary);
}

.action-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
}

.badge-buy { background: var(--growth-light); color: #1b8a37; }
.badge-hold { background: var(--warning-light); color: #c26d00; }
.badge-review { background: var(--danger-light); color: var(--danger); }

/* --- Interactive Health Calculator --- */
.audit-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.health-score-card {
  background: #1d1d1f;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid var(--growth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  background: rgba(255, 255, 255, 0.05);
}

.score-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--gold);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* --- Modals (Apple iOS Sheet Style) --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: var(--apple-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: var(--apple-canvas);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-body {
  padding: 28px;
}

/* --- Apple Light Footer --- */
.site-footer {
  background: var(--apple-canvas);
  color: var(--text-secondary);
  padding: 50px 0 30px 0;
  border-top: 1px solid var(--border-strong);
  margin-top: auto;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  width: auto;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  color: var(--text-secondary);
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

.footer-disclaimer {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Native App Bottom Bar (Mobile Only) --- */
.mobile-app-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.app-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* --- Google-Style Autocomplete & Dropzone CSS --- */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 1200;
  margin-top: 4px;
  display: none;
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

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

.autocomplete-item:hover {
  background: rgba(0, 113, 227, 0.05);
}

.autocomplete-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.autocomplete-symbol {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.autocomplete-sep {
  color: var(--text-tertiary);
  font-size: 12px;
}

.autocomplete-name {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Dropzone Styling */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  background: var(--apple-canvas);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-accent);
  background: var(--primary-light);
}

.dropzone-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

/* OTP Verification UI */
.otp-box-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-digit {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  outline: none;
}

.otp-digit:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.app-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.app-bar-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-tertiary);
  transition: var(--transition-fast);
}

.app-bar-item.active, .app-bar-item:hover {
  color: var(--primary-accent);
}

.app-bar-item.active svg {
  stroke: var(--primary-accent);
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
  .hero-headline { font-size: 42px; }
  .section-title { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .audit-tool-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: 70px; } /* Room for mobile app bar */
  .mobile-app-bar { display: flex; }
  .site-header .header-cta { display: none; }
  .nav-menu { display: none !important; }
  .hero-headline { font-size: 34px; }
  .section-title { font-size: 26px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  /* Mobile Bottom Sheet Modal */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }
}

/* --- Mobile App Tool Card & Form Layout --- */
.mobile-form-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.stock-search-field {
  margin-bottom: 12px;
}

.qty-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.mobile-input-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-input-field:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.search-icon-inside {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
}

.mobile-add-btn {
  width: 100%;
  height: 46px;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 980px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-add-btn:hover {
  background: #333336;
}

.mobile-tool-body {
  padding: 28px 24px;
}

/* --- Workstation Section & Precise Mobile 0px Margins / 10px & 30px Padding --- */
.workstation-section {
  padding: 40px 0 60px 0;
}

@media (max-width: 768px) {
  .workstation-section {
    padding: 0 !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  .workstation-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-tool-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
  }
  .mobile-tool-body {
    padding: 30px 10px !important;
  }
  .mobile-form-box {
    padding: 12px 10px !important;
  }
  .mobile-table-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x;
    border-radius: 14px !important;
    width: 100% !important;
  }
  .mobile-table-card .audit-table {
    min-width: 520px !important;
    width: 100% !important;
  }
  .mobile-table-card .audit-table th,
  .mobile-table-card .audit-table td {
    white-space: nowrap;
    padding: 10px 12px !important;
  }
  .mobile-table-card .audit-table th:first-child,
  .mobile-table-card .audit-table td:first-child {
    white-space: normal;
    min-width: 160px;
  }
  #auditResultsCard, #aiProcessingCard {
    border-radius: 16px !important;
    padding: 20px 10px !important; /* EXACTLY 10px left & right padding */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  .assessment-title {
    font-size: 18px !important;
  }
  .pdf-box-title {
    font-size: 16px !important;
  }
}

/* --- Widescreen Desktop Alignment (>= 992px) --- */
@media (min-width: 992px) {
  .workstation-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .mobile-form-box {
    display: flex;
    align-items: flex-end;
    gap: 14px;
  }
  .stock-search-field {
    flex: 2.2;
    margin-bottom: 0;
  }
  .qty-price-row {
    flex: 2;
    margin-bottom: 0;
  }
  .mobile-add-btn {
    flex: 1.2;
    height: 44px;
  }
}

/* --- Mobile App Tool Card & Form Styling (Matching Mockup) --- */
.mobile-tool-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.mobile-tabs-wrap {
  display: flex;
  background: #f1f5f9;
  padding: 6px;
  border-bottom: 1px solid #e2e8f0;
  gap: 4px;
}

.mobile-tab-item {
  flex: 1;
  padding: 10px 12px;
  border-radius: 980px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.mobile-tab-item.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 980px;
  letter-spacing: 0.04em;
}

.mobile-form-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.mobile-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.mobile-input-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.mobile-input-field:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.search-icon-inside {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
}

.mobile-add-btn {
  width: 100%;
  height: 46px;
  background: #1d1d1f;
  color: #ffffff;
  border-radius: 980px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-add-btn:hover {
  background: #333336;
}

.mobile-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.count-pill {
  background: #e0f2fe;
  color: #0284c7;
  padding: 2px 8px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 700;
}

.mobile-table-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.mobile-submit-cta {
  width: 100%;
  height: 52px;
  background: #0071e3;
  color: #ffffff;
  border-radius: 980px;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
