/* =========================================================
   FICHATAP SAAS - PREMIUM DESIGN SYSTEM
   Modern, sleek dark/light aesthetic with glassmorphism & emerald accents
   ========================================================= */

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

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Color Palette */
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-subtle: #1F2937;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.5);

  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  /* Brand Colors (WhatsApp Emerald + Accents) */
  --wa-primary: #10B981;
  --wa-dark: #059669;
  --wa-light: #34D399;
  --wa-glow: rgba(16, 185, 129, 0.25);
  --wa-chat-bg: #0B141A;
  --wa-chat-bubble-user: #005C4B;
  --wa-chat-bubble-bot: #202C33;

  /* Status Colors */
  --status-working: #10B981;
  --status-working-bg: rgba(16, 185, 129, 0.15);
  --status-break: #F59E0B;
  --status-break-bg: rgba(245, 158, 11, 0.15);
  --status-out: #6B7280;
  --status-out-bg: rgba(107, 114, 128, 0.15);
  --status-alert: #EF4444;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-color);
  --shadow-glow: 0 0 25px var(--wa-glow);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* =========================================================
   LANDING / LOGIN SCREEN WITH 3 PRICING TIERS
   ========================================================= */
.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 50%),
              radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.08), transparent 50%),
              var(--bg-main);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
}

.landing-grid {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.landing-plans-col {
  display: flex;
  flex-direction: column;
}

.plans-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-card);
}

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

.pricing-card.featured-plan {
  border: 2px solid var(--wa-primary);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(17, 24, 39, 0.85));
  box-shadow: 0 10px 35px -5px rgba(16, 185, 129, 0.25);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--wa-primary), #059669);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.plan-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.price-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.plan-perks li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-perks li span {
  color: var(--wa-light);
  font-weight: bold;
}

/* LOGIN BOX (RIGHT COLUMN) */
.landing-login-col {
  display: flex;
  justify-content: center;
}

.login-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}

/* App Shell Layout */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10B981, #047857);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px var(--wa-glow);
}

.brand-info h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #FFFFFF, #9CA3AF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wa-primary);
  background: var(--status-working-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Tenant Switcher in Header */
.tenant-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tenant-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.8rem;
}

.tenant-selector label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tenant-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.tenant-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(17, 24, 39, 0.6);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--bg-subtle), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

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

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

/* Page Headers */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.view-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-card);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Pulsing Online Indicator */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-working);
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Live Shift Board (Grid of Employees) */
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.board-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.employee-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.employee-card.status-WORKING {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.15);
}

.employee-card.status-ON_BREAK {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px -5px rgba(245, 158, 11, 0.15);
}

.emp-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.emp-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid var(--border-color);
}

.emp-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.emp-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-working {
  background: var(--status-working-bg);
  color: var(--status-working);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-break {
  background: var(--status-break-bg);
  color: var(--status-break);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-out {
  background: var(--status-out-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.shift-progress-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.shift-stat-val {
  font-weight: 700;
  color: #fff;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wa-primary), var(--wa-dark));
  color: #fff;
  box-shadow: 0 4px 14px var(--wa-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--wa-light), var(--wa-primary));
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #EF4444;
  color: #fff;
}

/* =========================================================
   PRINTABLE POSTER FOR STAFF CLOAKROOM / LOCKERS
   ========================================================= */
.poster-preview {
  background: #FFFFFF;
  color: #0F172A;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 4px solid #10B981;
}

.poster-header {
  text-align: center;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.poster-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.poster-step {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.poster-step-num {
  width: 36px;
  height: 36px;
  background: #10B981;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  font-size: 1.1rem;
}

.poster-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0F172A;
}

.poster-step p {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.4;
}

.poster-footer {
  border-top: 2px dashed #E2E8F0;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #334155;
}

@media print {
  body * {
    visibility: hidden;
  }
  .poster-preview, .poster-preview * {
    visibility: visible;
  }
  .poster-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem;
    box-shadow: none;
    border: 3px solid #10B981;
  }
}

/* =========================================================
   WHATSAPP SIMULATOR INTERFACE (PHONE MOCKUP)
   ========================================================= */
.simulator-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.phone-mockup {
  width: 360px;
  height: 680px;
  background: #111B21;
  border-radius: 40px;
  border: 8px solid #2A3942;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Brand Logo Components */
.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-img-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  display: inline-block;
  flex-shrink: 0;
}

.brand-img-logo-lg {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.brand-img-logo-sm {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  display: inline-block;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #2A3942;
  border-radius: 10px;
  z-index: 10;
}

.wa-header {
  background: #202C33;
  padding: 38px 16px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.wa-header-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #E9EDEF;
  line-height: 1.2;
}

.wa-header-info p {
  font-size: 0.75rem;
  color: #8696A0;
}

.wa-chat-body {
  flex: 1;
  background-color: var(--wa-chat-bg);
  background-image: radial-gradient(#202c33 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.wa-bubble-bot {
  align-self: flex-start;
  background: var(--wa-chat-bubble-bot);
  color: #D1D7DB;
  border-top-left-radius: 2px;
  white-space: pre-wrap;
}

.wa-bubble-user {
  align-self: flex-end;
  background: var(--wa-chat-bubble-user);
  color: #E9EDEF;
  border-top-right-radius: 2px;
}

.wa-time {
  font-size: 0.65rem;
  color: #8696A0;
  text-align: right;
  margin-top: 4px;
}

.wa-chips-bar {
  background: #202C33;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wa-chips-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  background: #2A3942;
  border: none;
  color: #E9EDEF;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.chip-btn:hover {
  background: #10B981;
  color: #fff;
}

.wa-input-bar {
  background: #202C33;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-input {
  flex: 1;
  background: #2A3942;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.wa-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.simulator-helper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Table styles */
.data-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

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

/* Header Actions & Mobile Login Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-login {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 6px;
  background: linear-gradient(135deg, var(--wa-primary), #059669);
  color: #fff;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 15px var(--wa-glow);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.4);
}

@keyframes pulseFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

.pulse-focus {
  animation: pulseFocus 1.2s ease-out;
  border-color: var(--wa-primary) !important;
}

/* =========================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE)
   ========================================================= */

@media (max-width: 1024px) {
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
  }
  .landing-header {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .landing-header {
    padding: 0.85rem 1rem;
  }

  .brand-img-logo {
    width: 34px !important;
    height: 34px !important;
  }

  .landing-header h1 {
    font-size: 1.2rem !important;
  }

  .brand-subtitle {
    display: none; /* Hide subtitle on mobile header to keep it sleek */
  }

  .header-legal-badge {
    display: none; /* Hide on narrow headers */
  }

  .btn-header-login {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.25rem 1rem;
  }

  /* Show Login Card at the top on mobile for instant access */
  .landing-login-col {
    order: -1;
  }

  .login-box {
    padding: 1.75rem 1.25rem;
    max-width: 100%;
  }

  /* Prevent iOS zoom on inputs by ensuring min 16px font size */
  .form-control {
    font-size: 16px !important;
  }

  .landing-plans-col h2 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }

  .landing-plans-col p {
    font-size: 0.9rem !important;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .price-val {
    font-size: 1.5rem;
  }

  /* Mobile App Shell (when logged in) */
  .navbar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding-bottom: 4px;
    width: 100%;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .tenant-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .main-wrapper {
    padding: 1.25rem 1rem;
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .view-title {
    font-size: 1.35rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1rem;
  }

  .metric-value {
    font-size: 1.35rem;
  }

  .simulator-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .poster-steps {
    grid-template-columns: 1fr;
  }

  .data-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

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