/**
 * APPLE - Enterprise Portal Control Center (Porcelain Light Theme)
 * Apple Cupertino Porcelain Aesthetics: Crisp White surfaces, SF Pro typography, Royal Blue accents.
 */

:root {
  --bg-deep: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --border-cyan: #e2e8f0;
  --border-bright: #0071e3;
  --hud-border: #e2e8f0;
  
  --cyan: #0071e3;
  --cyan-glow: rgba(0, 113, 227, 0.12);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.14);
  --yellow: #f59e0b;
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.14);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --font-mono: 'JetBrains Mono', 'SF Pro Mono', Menlo, Consolas, monospace;
  --font-hud: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-hud);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Helpers */
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }

/* Top Header */
.hud-header {
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse-apple 2s infinite ease-in-out;
}

@keyframes pulse-apple {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.hud-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hud-nav {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.hud-nav-item {
  padding: 6px 18px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #475569;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hud-nav-item:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.hud-nav-item.active {
  color: #ffffff;
  background: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-pill {
  padding: 5px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-weight: 500;
}

.hud-clock {
  font-family: var(--font-mono);
  font-size: 11px;
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.dot-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.pill-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

.pill-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0071e3;
}

.role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-badge.developer { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.role-badge.master { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.role-badge.admin { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.role-badge.seller { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.user-name {
  font-weight: 600;
  color: #0f172a;
}

.btn-logout {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

/* Viewport */
.hud-viewport {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.view-pane {
  display: none;
}

/* Pane Header */
.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.pane-title-group h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.pane-title-group p {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.pane-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Metric Cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: var(--font-hud);
}

.metric-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  font-weight: 500;
}

/* Due Alert Banner */
.due-banner {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
}

.due-banner.warning {
  border-left: 5px solid #f59e0b;
  background: #fffbeb;
  border-color: #fde68a;
}

.due-banner.overdue {
  border-left: 5px solid #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

.due-banner.clean {
  border-left: 5px solid #10b981;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.due-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.due-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.due-banner-sub {
  font-size: 12px;
  color: #475569;
}

/* Panels */
.hud-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Search and Filters */
.search-box {
  position: relative;
  min-width: 260px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}

.search-box input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.filter-tabs .tab-btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tabs .tab-btn:hover {
  color: #0f172a;
}

.filter-tabs .tab-btn.active {
  background: #ffffff;
  color: #0071e3;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.hud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hud-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.hud-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.hud-table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.paid,
.status-badge.active,
.status-badge.confirmed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-badge.unpaid,
.status-badge.pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-badge.expired,
.status-badge.banned,
.status-badge.failed,
.status-badge.overdue {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Buttons */
.btn-hud-primary {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  color: #ffffff;
  border: 1px solid #005bb5;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
  transition: all 0.15s ease;
}

.btn-hud-primary:hover {
  background: linear-gradient(135deg, #0077ed 0%, #0066cc 100%);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.btn-hud-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-hud-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-hud-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-table-action {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-table-action.pay {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  font-weight: 700;
}

.btn-table-action.pay:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.btn-table-action.clear-due {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
}

.btn-table-action.clear-due:hover {
  background: #dbeafe;
}

/* Modals */
.hud-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.hud-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  width: 90%;
  max-width: 540px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.modal-close:hover {
  color: #0f172a;
}

.hud-modal form {
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* Toast */
.hud-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

.hud-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Login Screen */
.view-login {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-modal);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.apple-logo-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #f8fafc;
  color: #0071e3;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
}

.login-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.login-header p {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 4px;
}

.login-status-msg {
  font-size: 12px;
  color: #ef4444;
  margin-bottom: 12px;
  min-height: 18px;
  text-align: center;
  font-weight: 600;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 11px;
}

/* Due Banners & Alerts */
.due-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.due-banner.warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.due-banner.danger {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  animation: pulse-danger 2s infinite ease-in-out;
}

.due-banner.nominal {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.25); }
}

/* Maintenance Toggle Card */
.maintenance-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.maintenance-card.active-on {
  background: #fff1f2;
  border-color: #f43f5e;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.2);
}

.maintenance-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.maintenance-card-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

/* Action Buttons */
.btn-approve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #059669;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  transition: all 0.15s ease;
}

.btn-approve:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

.btn-danger-outline {
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

/* Auto-Pay Bonus Card */
.bonus-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
}

/* High-Resolution Ticket Proof Lightbox Modal */
.hud-modal.photo-lightbox-modal {
  max-width: 960px;
  width: 95%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 113, 227, 0.2);
}

.pnr-badge {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid rgba(0, 113, 227, 0.25);
  font-size: 11px;
}

.photo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-toolbar-left, .photo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-photo-tool {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-photo-tool:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-photo-tool.primary {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.btn-photo-tool.primary:hover {
  background: #dbeafe;
}

.btn-photo-tool.success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.btn-photo-tool.success:hover {
  background: #d1fae5;
}

.photo-viewport-wrap {
  flex: 1;
  min-height: 320px;
  max-height: 56vh;
  overflow: auto;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.photo-preview-image {
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.photo-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
}

.photo-empty-msg {
  color: #94a3b8;
  padding: 40px;
  font-size: 13px;
  font-weight: 500;
}

.photo-audit-card {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.photo-audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.audit-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-label {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audit-val {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.audit-hash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.audit-hash {
  font-size: 10px;
  color: #0284c7;
  font-weight: 700;
  flex: 1;
  word-break: break-all;
}

.btn-copy-hash {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy-hash:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-footer-bar {
  padding: 10px 18px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

/* Table Thumbnail Card */
.proof-thumb-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 44px;
  border-radius: 8px;
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.proof-thumb-card:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.proof-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-thumb-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
}

.proof-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.proof-thumb-card:hover .proof-hover-overlay {
  opacity: 1;
}

.proof-badge {
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  background: #0284c7;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   EXECUTIVE LICENSE KEY DELIVERY CARD (Apple Porcelain / Titanium Suite)
   ========================================================================== */
.executive-receipt-modal {
  max-width: 620px;
  width: 92%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.executive-receipt-header {
  padding: 16px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.receipt-badge-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.executive-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.executive-receipt-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Key Presentation Box */
.receipt-hero-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
}

.receipt-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-key-display {
  font-size: 21px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  user-select: all;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.btn-copy-key-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-copy-key-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.btn-copy-key-primary:active {
  transform: translateY(0);
}

.receipt-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.receipt-pill-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.receipt-pill-tag.green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.receipt-pill-tag.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.receipt-pill-tag.cyan {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* 4-Item Telemetry Grid */
.receipt-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* Dispatch Box */
.receipt-dispatch-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dispatch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dispatch-label {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.04em;
}

.dispatch-hint {
  font-size: 10px;
  color: #64748b;
}

.receipt-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #0f172a;
  resize: vertical;
  min-height: 135px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.receipt-textarea:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
}

/* Action Buttons */
.receipt-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.btn-share-social {
  border: none;
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}

.btn-share-social.whatsapp {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-share-social.whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-share-social.telegram {
  background: #0088cc;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-share-social.telegram:hover {
  background: #0077b5;
  transform: translateY(-1px);
}

.btn-copy-full {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.receipt-footer {
  padding: 12px 22px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR ANDROID & MOBILE BROWSERS (max-width: 768px / 480px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    font-size: 13px;
  }

  #app {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .hud-header {
    height: auto !important;
    min-height: 56px !important;
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
    row-gap: 8px !important;
    position: static !important;
  }

  .hud-brand {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .brand-title {
    font-size: 16px !important;
  }

  .hud-right {
    flex: 0 0 auto;
    gap: 4px !important;
    margin-left: auto;
  }

  .hud-clock {
    display: none !important;
  }

  .hud-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .hud-center {
    order: 3;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px 0 !important;
    justify-content: flex-start !important;
  }

  .hud-nav {
    width: max-content !important;
    gap: 4px !important;
  }

  .hud-nav-item {
    padding: 6px 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .hud-main {
    padding: 12px 8px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .hud-panel {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }

  .panel-title {
    font-size: 13px !important;
  }

  .panel-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .metric-card {
    padding: 10px 12px !important;
  }

  .metric-val {
    font-size: 18px !important;
  }

  .panel-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .panel-actions {
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  .panel-actions button,
  .panel-toolbar button {
    width: 100% !important;
    justify-content: center !important;
  }

  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0;
  }

  .hud-table {
    min-width: 680px !important;
  }

  .hud-modal {
    width: 95% !important;
    max-width: 95% !important;
    margin: 10px auto !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
  }

  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .receipt-specs-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .receipt-action-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .receipt-key-display {
    font-size: 16px !important;
    word-break: break-all !important;
  }

  .receipt-key-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .btn-copy-key-primary {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .panel-metrics {
    grid-template-columns: 1fr !important;
  }

  .hud-right .role-badge {
    display: none !important;
  }
}




/* ==========================================================================
   DAILY SUCCESS SHOWCASE & SLOT FILTERS (Porcelain Apple Aesthetic)
   ========================================================================== */
.showcase-controls-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.showcase-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.showcase-mode-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 4px;
}

.showcase-mode-pill {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.showcase-mode-pill.active {
  background: #0071e3;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

.showcase-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-showcase-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s ease;
}

.btn-showcase-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-showcase-action.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-showcase-action.primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.slot-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.slot-filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slot-filter-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.slot-filter-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.slot-filter-chip .chip-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
}

.slot-filter-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
}

.web-showcase-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.web-showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.web-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.showcase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slot-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slot-badge.opening {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.slot-badge.ac {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.slot-badge.sleeper {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.slot-badge.general {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.showcase-pnr-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-pnr-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #0071e3;
  letter-spacing: 0.05em;
}

.btn-copy-pnr {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.btn-copy-pnr:hover {
  background: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
}

.showcase-route-train {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-route-name {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.showcase-train-meta {
  font-size: 12px;
  color: #64748b;
  font-family: var(--font-mono);
}

.showcase-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.showcase-screenshot-container.screenshot-active {
  background: #ffffff !important;
  padding: 24px !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   TODAY'S TOP BOOKING SHOWCASE (Pixel-Perfect Mini Ticket Panel Cards)
   ========================================================================== */

.top-booking-card-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-top: 24px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.top-booking-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.top-booking-title-group {
  display: flex;
  flex-direction: column;
}

.top-booking-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.top-booking-subtitle {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-top: 3px;
}

.top-date-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-date-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top-date-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-date-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.top-date-pill.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

.top-date-pill-count {
  font-size: 9.5px;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 2px;
}

.top-date-pill.active .top-date-pill-count {
  background: rgba(255, 255, 255, 0.25);
}

.top-date-picker-wrap {
  display: inline-flex;
  align-items: center;
}

.top-date-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.top-date-picker-label:hover {
  border-color: #0071e3;
}

.top-date-input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
  cursor: pointer;
}

.top-booking-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.top-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #0284c7;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.top-tab-btn:hover {
  background: rgba(2, 132, 199, 0.06);
}

.top-tab-btn.active {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top-download-bar {
  margin-bottom: 18px;
}

.btn-download-op {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.btn-download-op:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* 4-Column Grid */
.top-booking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1360px) {
  .top-booking-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .top-booking-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .top-booking-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ADORABLE APPLE PRO TICKET RECEIPT CARDS (Porcelain Executive Architecture)
   ========================================================================== */

.top-ticket-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.top-ticket-card:hover {
  transform: translateY(-2px);
  border-color: #0071e3;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.12);
}

/* 1. Header Bar */
.top-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 2px;
}

.top-station-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.top-chip-icon {
  font-size: 11px;
}

.top-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #0071e3;
}

.top-right-pair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-pair-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  letter-spacing: 0.02em;
}

.top-power-icon {
  color: #ef4444;
  font-size: 12px;
  line-height: 1;
}

/* 2. Direct Dispatch Banner & Embedded Authentic Ticket Screenshot */
.top-card-proof-container {
  width: 100%;
  height: 130px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 2px 0;
}

.top-card-proof-container:hover {
  border-color: #0071e3;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.18);
}

.top-card-proof-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-card-proof-container:hover .top-card-proof-img {
  transform: scale(1.03);
}

.top-card-proof-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.top-card-proof-container:hover .top-card-proof-overlay {
  opacity: 1;
}

.top-card-proof-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.top-card-proof-zoom {
  background: #0071e3;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.top-card-photo-live-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  font-size: 7.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 2;
}

.top-receipt-subbar {
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0071e3;
  padding: 1px 0;
  text-transform: uppercase;
}

/* 3. Booking Confirmed Badge + Clock Pill */
.top-receipt-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.top-confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pnrDotPulse 1.6s infinite;
}

.top-time-pill {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* 4. Hero PNR Card with 1-Click Copy */
.top-hero-pnr-box {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-pnr-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-pnr-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #047857;
  text-transform: uppercase;
}

.btn-top-copy-pnr {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-top-copy-pnr:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.top-pnr-protected-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  user-select: none;
}

.top-pnr-number {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #064e3b;
  line-height: 1.2;
}

.apple-porcelain-card:not(.is-developer-card) .top-pnr-number {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.apple-porcelain-card.is-developer-card .top-pnr-number {
  user-select: all;
  -webkit-user-select: all;
}

/* Universal Anti-Copy Shield on all PNR elements for non-developers */
body:not(.is-developer-session) .top-pnr-number,
body:not(.is-developer-session) .showcase-pnr-val,
body:not(.is-developer-session) .pnr-badge,
body:not(.is-developer-session) .pnr-table-val,
body:not(.is-developer-session) .showcase-pnr-box,
body:not(.is-developer-session) .top-hero-pnr-box,
body:not(.is-developer-session) [data-pnr] {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

body:not(.is-developer-session) .btn-copy-pnr,
body:not(.is-developer-session) .btn-top-copy-pnr,
body:not(.is-developer-session) #btnCopyShowcaseSummary,
body:not(.is-developer-session) .dev-only-action {
  display: none !important;
}

.showcase-protected-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  user-select: none;
  -webkit-user-select: none;
}

.showcase-pnr-val.is-protected {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* 5. 4-Cell Telemetry Porcelain Grid */
.top-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.top-spec-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-spec-key {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
  text-transform: uppercase;
  line-height: 1.1;
}

.top-spec-val {
  font-size: 9.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.top-spec-val-fare {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: #0071e3;
  font-weight: 800;
}

/* 6. View Ticket Receipt (Opens Real Proof Picture) */
.btn-top-view-receipt {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #0071e3;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.28);
  margin-top: 2px;
}

.btn-top-view-receipt:hover {
  background: #005bb5;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
  transform: translateY(-1px);
}

.btn-top-view-receipt:active {
  transform: translateY(0);
}

/* ==========================================================================
   APPLE PRO SAAS LAYOUT - OCEAN PRO SAAS SPECIFICATION (SCREENSHOTS 1, 2, 3, 4)
   ========================================================================== */

.saas-layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #f0f4f8;
  position: relative;
}

/* 1. Left Sidebar (Dark Navy #0c192c) */
.saas-sidebar {
  width: 250px;
  min-width: 250px;
  background: #0c192c;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 90;
  transition: width 0.25s ease;
}

.saas-sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.saas-brand-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.saas-brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
}

.saas-brand-title {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.saas-brand-title span {
  color: #0284c7;
}

.btn-sidebar-toggle {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sidebar-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* User Card in Sidebar */
.saas-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.saas-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
}

.saas-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saas-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.saas-username {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saas-user-role-badge {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar Nav */
.saas-sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.saas-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.saas-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* Exact Curved Vivid Blue Pill from Screenshots */
.saas-nav-item.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  font-weight: 700;
}

.saas-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saas-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Main Content Area */
.saas-main-viewport {
  flex: 1;
  padding: 24px 30px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

/* 3. Dashboard Header Banner (#0f172a rounded banner) */
.dashboard-header-banner {
  background: #0f172a;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.dashboard-title-group h1 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-breadcrumbs {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.dashboard-breadcrumbs span {
  color: #ffffff;
  font-weight: 600;
}

/* Red Pill Badge for Payment Due */
.badge-payment-due {
  background: #ef4444;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.portal-badge-indicator {
  background: #ffffff;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 4. Announcement Alert Banners */
.account-updates-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.saas-alert-banner {
  padding: 14px 20px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.saas-alert-green {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 100%);
}

.saas-alert-cyan {
  background: linear-gradient(90deg, #0284c7 0%, #0891b2 100%);
}

.saas-alert-red {
  background: linear-gradient(90deg, #dc2626 0%, #e11d48 100%);
}

/* Overdue Lock Banner */
.saas-alert-locked {
  display: none !important;

  background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
  border: 2px solid #fecaca;
  animation: pulse-red-banner 2s infinite ease-in-out;
}

@keyframes pulse-red-banner {
  0%, 100% { box-shadow: 0 0 10px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 22px rgba(220, 38, 38, 0.7); }
}

/* 5. Stat Cards Grid (Screenshots 1, 2, 3) */
.saas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.saas-stat-card {
  border-radius: 12px;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saas-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Card Colors */
.card-blue { background: #0284c7; }
.card-green { background: #10b981; }
.card-orange { background: #f59e0b; }
.card-red { background: #ef4444; }
.card-teal { background: #06b6d4; }
.card-crimson { background: #b91c1c; }
.card-amber { background: #d97706; }
.card-indigo { background: #4f46e5; }

.saas-card-body {
  padding: 18px 20px 14px 20px;
  position: relative;
}

.saas-card-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.saas-card-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}

.saas-card-watermark {
  position: absolute;
  right: 14px;
  top: 14px;
  opacity: 0.22;
  pointer-events: none;
}

.saas-card-footer {
  background: rgba(0, 0, 0, 0.14);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.saas-card-footer:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* 6. Top Bookings Showcase View (Screenshot 4) */
.showcase-header-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.showcase-sub-title {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 16px;
}

.showcase-tabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.showcase-tab-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0284c7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.showcase-tab-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.showcase-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  border: 2px solid #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.btn-download-op-showcase {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease;
}

.btn-download-op-showcase:hover {
  background: #0369a1;
}

/* 4-Column Ticket Cards Grid (Screenshot 4) */
.ticket-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.ticket-showcase-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ticket-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
  border-color: #0284c7 !important;
}

.ticket-card-topbar {
  background: #1e3a8a;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.ticket-route-code {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ticket-brand-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.ticket-pair-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.ticket-power-icon {
  color: #ef4444;
  font-size: 12px;
}

.ticket-trophy-banner {
  background: #1e293b;
  color: #e2e8f0;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #334155;
}

.ticket-trophy-banner span.trophy {
  color: #f59e0b;
}

.ticket-card-middle {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-train-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.ticket-stop-tag {
  color: #dc2626;
  border: 1px solid #dc2626;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
}

.ticket-user-gateway {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.ticket-username {
  color: #3b82f6;
  font-family: monospace;
}

.ticket-gateway-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
}

.ticket-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.tag-home-ip {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-quota {
  background: #f0fdf4;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-api {
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticket-card-footer {
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ticket-footer-time {
  background: #0284c7;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 800;
  font-family: monospace;
  text-align: center;
}

.ticket-footer-avl {
  background: #10b981;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 800;
  font-family: monospace;
  text-align: center;
}

/* 7. Clean Decluttered Business Tables (No Cryptographic Noise!) */
.saas-card-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.saas-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.saas-panel-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.saas-search-input {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  width: 240px;
  outline: none;
}

.saas-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.clean-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.clean-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.clean-table tr:hover td {
  background: #f8fafc;
}

.clean-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  letter-spacing: 0.03em;
}

.clean-badge-active { background: #dcfce7; color: #15803d; }
.clean-badge-paid { background: #dcfce7; color: #15803d; }
.clean-badge-unpaid { background: #fee2e2; color: #b91c1c; font-weight: 800; }
.clean-badge-expired { background: #f1f5f9; color: #64748b; }
.clean-badge-paused { background: #fef3c7; color: #b45309; }

.btn-clean-action {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-clean-reset {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-clean-reset:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.btn-clean-pay {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.btn-clean-pay:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.btn-clean-copy {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0284c7;
}

.btn-clean-copy:hover {
  background: #e0f2fe;
}


/* Hide legacy HUD Header in modern SaaS layout */
#hudHeader { display: none !important; }

.dashboard-header-banner {
  background: #0f172a !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  color: #ffffff !important;
}

.dashboard-header-title,
.dashboard-title-group h1,
#saasHeaderTitle {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.badge-payment-due,
.due-pill-red {
  background: #ef4444 !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
}

.saas-header-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.saas-header-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

.btn-dl-app {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
}

.btn-exit-app {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

.btn-exit-app:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* =========================================================================
   VIBRANT SAAS STAT CARDS & WATERMARKS (SCREENSHOTS 1, 2, 3)
   ========================================================================= */

.card-blue, .card-theme-blue { background: #0284c7 !important; }
.card-green, .card-theme-green { background: #10b981 !important; }
.card-orange, .card-theme-orange { background: #f59e0b !important; }
.card-red, .card-theme-red { background: #ef4444 !important; }
.card-teal, .card-theme-teal, .card-theme-sky { background: #06b6d4 !important; }
.card-crimson, .card-theme-crimson { background: #b91c1c !important; }
.card-amber, .card-theme-amber { background: #d97706 !important; }

.saas-stat-card {
  border-radius: 12px !important;
  overflow: hidden !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  min-height: 120px !important;
}

.saas-card-body, .stat-card-body {
  padding: 16px 20px 12px 20px !important;
  position: relative !important;
}

.saas-card-number, .stat-card-count {
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  color: #ffffff !important;
}

.saas-card-label, .stat-card-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  opacity: 0.95 !important;
  color: #ffffff !important;
}

.saas-card-watermark, .stat-card-watermark {
  position: absolute !important;
  right: 14px !important;
  top: 12px !important;
  opacity: 0.28 !important;
  font-size: 36px !important;
  pointer-events: none !important;
  user-select: none !important;
}

.saas-card-footer, .stat-card-footer {
  background: rgba(0, 0, 0, 0.16) !important;
  padding: 8px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}

.saas-card-footer:hover, .stat-card-footer:hover {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #ffffff !important;
}

/* =========================================================================
   EXACT OCEAN PRO / APPLE PRO SAAS THEME (PIXEL-PERFECT SPECIFICATION)
   ========================================================================= */

/* 1. Sidebar Layout & Vertical Navigation */
.saas-sidebar {
  width: 250px !important;
  min-width: 250px !important;
  background: #0c192c !important;
  color: #94a3b8 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  border-right: 1px solid #1e293b !important;
  padding: 0 !important;
  z-index: 100 !important;
}

.saas-sidebar-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.saas-brand-text {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.06em !important;
}

.saas-brand-toggle {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
  cursor: pointer !important;
}

.saas-user-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.saas-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
}

.saas-username {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.saas-user-role {
  font-size: 11px !important;
  color: #38bdf8 !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.saas-nav {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 0 !important;
  gap: 4px !important;
  flex: 1 !important;
  overflow-y: auto !important;
}

.saas-nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 20px !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
  margin-right: 12px !important;
}

.saas-nav-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Exact Ocean Pro Curved Blue Pill on Active Nav */
.saas-nav-link.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-top-right-radius: 22px !important;
  border-bottom-right-radius: 22px !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
  font-weight: 700 !important;
}

.saas-nav-link .nav-icon {
  font-size: 16px !important;
  width: 20px !important;
  text-align: center !important;
}

/* 2. Main Content & Header Banner */
.saas-main {
  flex: 1 !important;
  padding: 24px 32px !important;
  background: #f0f4f8 !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
}

.dashboard-header-banner {
  background: #0f172a !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.dashboard-header-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.dashboard-breadcrumbs {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-right: 12px !important;
}

.badge-payment-due,
.due-pill-red {
  background: #ef4444 !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 8px !important;
}

/* 3. Exact Announcement Alert Banners from Screenshot */
.account-updates-box,
.saas-alert-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.saas-alert-banner,
.announcement-alert {
  padding: 14px 20px !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: block !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.saas-alert-green,
.alert-green {
  background: #16a34a !important;
}

.saas-alert-cyan,
.alert-cyan {
  background: #0284c7 !important;
}

.saas-alert-red,
.alert-red {
  background: #dc2626 !important;
}

.saas-alert-locked {
  background: #991b1b !important;
  border: 2px solid #ef4444 !important;
  font-weight: 800 !important;
  animation: pulse-lock 1.5s infinite ease-in-out !important;
}

@keyframes pulse-lock {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
}

/* 4. Exact Vibrant Stat Cards Grid (Screenshots 1, 2, 3) */
.saas-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 28px !important;
}

.saas-stat-card {
  border-radius: 10px !important;
  overflow: hidden !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  min-height: 125px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.saas-stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
}

/* Solid Curated Colors */
.saas-stat-card.card-blue,
.saas-stat-card.card-theme-blue {
  background: #0284c7 !important;
}

.saas-stat-card.card-green,
.saas-stat-card.card-theme-green {
  background: #10b981 !important;
}

.saas-stat-card.card-orange,
.saas-stat-card.card-theme-orange {
  background: #f59e0b !important;
}

.saas-stat-card.card-red,
.saas-stat-card.card-theme-red {
  background: #ef4444 !important;
}

.saas-stat-card.card-teal,
.saas-stat-card.card-theme-teal,
.saas-stat-card.card-theme-sky {
  background: #06b6d4 !important;
}

.saas-stat-card.card-crimson,
.saas-stat-card.card-theme-crimson {
  background: #b91c1c !important;
}

.saas-stat-card.card-amber,
.saas-stat-card.card-theme-amber {
  background: #d97706 !important;
}

.saas-card-body,
.stat-card-body {
  padding: 16px 20px 10px 20px !important;
  position: relative !important;
}

.saas-card-number,
.stat-card-count {
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  color: #ffffff !important;
}

.saas-card-label,
.stat-card-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  opacity: 0.95 !important;
  color: #ffffff !important;
}

.saas-card-watermark,
.stat-card-watermark {
  position: absolute !important;
  right: 14px !important;
  top: 12px !important;
  opacity: 0.3 !important;
  font-size: 36px !important;
  pointer-events: none !important;
  user-select: none !important;
}

.saas-card-footer,
.stat-card-footer {
  background: rgba(0, 0, 0, 0.16) !important;
  padding: 8px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
  cursor: pointer !important;
}

.saas-card-footer:hover,
.stat-card-footer:hover {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #ffffff !important;
}

.saas-alert-locked.show-locked { display: block !important; }

/* ==========================================================================
   ANDROID & MOBILE RESPONSIVE ENGINE (Screens <= 768px & <= 480px)
   ========================================================================== */

/* 1. Mobile Backdrop Overlay */
.saas-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 25, 44, 0.75);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.saas-mobile-overlay.active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 2. Mobile Toggle & Close Buttons */
.saas-mobile-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.saas-mobile-toggle:active {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0.95);
}

.saas-sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.saas-sidebar-close-btn:hover,
.saas-sidebar-close-btn:active {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

/* 3. Developer Root Operational Cockpit Styling */
#devOperationalCockpit .saas-card-panel {
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.dev-maint-btn-active {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #f87171 !important;
  animation: pulse-lock 1.5s infinite ease-in-out !important;
}

.dev-maint-btn-inactive {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

/* 4. Responsive Mobile Media Queries for Android Devices */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .saas-layout-wrapper {
    flex-direction: column !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  /* Off-canvas Slide-out Navigation Drawer on Android */
  .saas-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
    border-right: 1px solid #1e293b !important;
    overflow-y: auto !important;
  }

  .saas-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.6) !important;
  }

  .saas-sidebar-close-btn {
    display: inline-flex !important;
  }

  .saas-mobile-toggle {
    display: inline-flex !important;
  }

  /* Main viewport padding adjustment for mobile */
  .saas-main {
    padding: 12px 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Dashboard Header Banner Responsive */
  .dashboard-header-banner {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .dashboard-header-banner > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .dashboard-header-title {
    font-size: 19px !important;
  }

  .dashboard-header-banner > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .dashboard-breadcrumbs {
    width: 100% !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .badge-payment-due,
  .due-pill-red {
    padding: 5px 12px !important;
    font-size: 11px !important;
  }

  .saas-header-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Announcement Banners */
  .account-updates-box,
  .saas-alert-container {
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .saas-alert-banner,
  .announcement-alert {
    padding: 10px 14px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }

  /* Stat Cards Grid on Android (2 Columns) */
  .saas-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .saas-stat-card {
    min-height: 105px !important;
    border-radius: 8px !important;
  }

  .saas-card-body,
  .stat-card-body {
    padding: 12px 12px 8px 12px !important;
  }

  .saas-card-number,
  .stat-card-count {
    font-size: 24px !important;
  }

  .saas-card-label,
  .stat-card-title {
    font-size: 11.5px !important;
  }

  .saas-card-watermark,
  .stat-card-watermark {
    font-size: 26px !important;
    right: 8px !important;
    top: 8px !important;
    opacity: 0.2 !important;
  }

  .saas-card-footer,
  .stat-card-footer {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  /* Card Panels & Content */
  .saas-card-panel {
    padding: 14px 12px !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
  }

  .saas-panel-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .saas-panel-toolbar > div {
    width: 100% !important;
  }

  .saas-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Table Touch Scrolling */
  .clean-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
  }

  .clean-table {
    min-width: 680px !important;
    font-size: 12px !important;
  }

  .clean-table th,
  .clean-table td {
    padding: 10px 10px !important;
    white-space: nowrap !important;
  }

  /* Ticket Showcase Cards Grid on Android (Single Column) */
  .ticket-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .showcase-nav-bar {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
  }

  .showcase-tab-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* Touch-friendly Tap Targets */
  .btn-clean-action {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    min-height: 32px !important;
  }
}

/* Extra Compact Android Devices <= 400px */
@media (max-width: 400px) {
  .saas-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .saas-card-number,
  .stat-card-count {
    font-size: 20px !important;
  }

  .saas-card-label,
  .stat-card-title {
    font-size: 10.5px !important;
  }
}
