@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ==========================================================================
   01. IMPORTS & EXTERNAL RESOURCES
   ========================================================================== */

/* ==========================================================================
   02. RESET / FOUNDATION
   ========================================================================== */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e2e8f0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

svg:not([class*="w-"]):not([class*="h-"]),
svg.svg-inline--fa,
.svg-inline--fa,
i[class*="fa-"],
[class*="fa-w-"] {
  width: 1em !important;
  height: 1em !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
  display: inline-block !important;
  vertical-align: -0.125em !important;
}

/* ==========================================================================
   03. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Layout Architecture */
  --sidebar-w: 256px;
  --sidebar-w-collapsed: 72px;
  --sidebar-width: var(--sidebar-w);
  --sidebar-width-collapsed: var(--sidebar-w-collapsed);
  --topbar-h: 60px;
  --topbar-height: var(--topbar-h);

  /* Brand Palette */
  --color-primary: #10b981;
  --color-primary-hover: #059669;
  --color-primary-light: #ecfdf5;
  --color-primary-border: #a7f3d0;

  /* Surfaces & Backgrounds */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;

  /* Text Colors */
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-border-dark: #cbd5e1;

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #0ea5e9;

  /* Radius Tokens */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography Scale */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --text-badge: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-page-title: 22px;

  /* Shadow Tokens */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.sidebar-collapsed {
  --sidebar-w: var(--sidebar-w-collapsed);
}

/* ==========================================================================
   04. BASE TYPOGRAPHY
   ========================================================================== */
h1, .h1 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.02em; color: #0f172a; }
h2, .h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: #0f172a; }
h3, .h3 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: #0f172a; }
p, .text-body { font-size: 0.875rem; line-height: 1.25rem; color: #475569; }

/* ==========================================================================
   05. APP SHELL
   ========================================================================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-content {
  flex: 1;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   06. SIDEBAR
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  flex-shrink: 0;
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header-box {
  height: 60px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.375rem !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.sidebar-item-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  height: 38px !important;
  padding: 0 0.75rem !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  text-decoration: none !important;
  margin-bottom: 0.2rem !important;
  position: relative !important;
  background-color: transparent !important;
}

.sidebar-item-link .sidebar-text {
  color: #475569 !important;
  transition: color 0.15s ease !important;
}

.sidebar-item-link .sidebar-icon {
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: color 0.15s ease !important;
}

.sidebar-item-link:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

.sidebar-item-link:hover .sidebar-text {
  color: #0f172a !important;
}

.sidebar-item-link:hover .sidebar-icon {
  color: #334155 !important;
}

.sidebar-item-link.active {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

.sidebar-item-link.active .sidebar-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

.sidebar-item-link.active .sidebar-icon {
  color: #059669 !important;
}

.sidebar-item-link.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  bottom: 6px !important;
  width: 3px !important;
  background-color: #10b981 !important;
  border-top-right-radius: 3px !important;
  border-bottom-right-radius: 3px !important;
}

.sidebar-profile-footer {
  border-top: 1px solid #e2e8f0;
  padding: 0.625rem 0.75rem;
  background-color: #ffffff;
  flex-shrink: 0;
}

.sidebar-profile-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.sidebar-profile-btn:hover {
  background-color: #f8fafc;
}

body.sidebar-collapsed .sidebar-text,
body.sidebar-collapsed .sidebar-brand-name,
body.sidebar-collapsed .sidebar-section-title,
body.sidebar-collapsed .sidebar-item-link.active::before {
  display: none !important;
}

body.sidebar-collapsed .sidebar-chevron {
  transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar-item-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

body.sidebar-collapsed .sidebar-header-box {
  justify-content: center;
  padding: 0 0.5rem;
}

body.sidebar-collapsed .sidebar-profile-btn {
  justify-content: center;
  padding: 0.5rem 0;
}

/* ==========================================================================
   07. TOPBAR
   ========================================================================== */
.app-topbar {
  height: var(--topbar-h);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

#spa-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: #10b981;
  z-index: 9999;
  width: 0%;
  transition: width 0.2s ease, opacity 0.3s ease;
}

/* ==========================================================================
   08. CONTENT LAYOUT
   ========================================================================== */
section[id] {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   09. BUTTONS
   ========================================================================== */
.btn-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 36px;
  min-height: 36px;
  padding: 0 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  text-decoration: none !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease-in-out, background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.btn-ui:hover {
  transform: translateY(-1px);
}

.btn-ui:disabled,
.btn-ui[disabled],
.btn-ui.disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Fallback geometry for standalone variants (Retrocompatibility) */
.btn-primary,
.btn-emerald,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 0.5rem;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-primary,
.btn-emerald {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border: 1px solid #047857 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-primary:hover,
.btn-emerald:hover {
  background-color: #059669 !important;
  border-color: #065f46 !important;
  color: #ffffff !important;
}

.btn-emerald:focus, .btn-emerald:active,
.btn-primary:focus, .btn-primary:active {
  outline: 2px solid #a7f3d0 !important;
  outline-offset: 1px !important;
}

.btn-secondary {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.btn-secondary:hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.btn-danger {
  background-color: #ef4444 !important;
  border: 1px solid #dc2626 !important;
  color: #ffffff !important;
}

.btn-danger:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

.btn-whatsapp {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  height: 44px !important;
  padding: 0 1.5rem !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
}

.btn-whatsapp:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.btn-whatsapp-subtext {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  white-space: nowrap !important;
}

.cta-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem !important;
  width: 100%;
}

@media (min-width: 640px) {
  .cta-btn-group {
    flex-direction: row;
    gap: 1.25rem !important;
    width: auto;
  }
}

.btn-ui-sm {
  height: 32px;
  padding: 0 0.625rem;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
}

.btn-social-google {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-social-google:hover {
  background-color: #f1f5f9;
}

.btn-social-facebook {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1rem;
  background-color: #1877f2;
  border: 1px solid #1877f2;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-social-facebook:hover {
  background-color: #166fe5;
}

/* ==========================================================================
   10. FORMS
   ========================================================================== */
.form-label-ui {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.375rem;
}

.input-ui {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.input-ui {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.input-ui:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-login {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.15s ease;
}

.input-login:focus {
  background-color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 0.875rem;
  color: #94a3b8;
  pointer-events: none;
  font-size: 0.875rem;
}

.input-icon-right {
  position: absolute;
  right: 0.875rem;
  color: #94a3b8;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

.input-has-left-icon {
  padding-left: 2.5rem !important;
}

.input-has-right-icon {
  padding-right: 2.5rem !important;
}

/* ==========================================================================
   11. CARDS
   ========================================================================== */
.card-panel {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  padding: 1rem;
  margin-bottom: 1rem;
}

.card-interactive {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card-interactive:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -5px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.hero-card-box {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  max-width: 26rem;
  width: 100%;
  margin-bottom: 2rem;
}

.login-card-mini {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  padding: 2rem;
}

/* ==========================================================================
   12. BADGES
   ========================================================================== */
.badge-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  height: 20px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
}

.badge-success { background-color: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }
.badge-warning { background-color: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.badge-danger { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }
.badge-info { background-color: #f0f9ff; color: #0369a1; border: 1px solid #e0f2fe; }
.badge-neutral { background-color: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.badge-status-ui {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.3125rem 0.75rem !important;
  font-size: 0.6875rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  white-space: nowrap !important;
}

.badge-status-ui.active, .badge-status-ui.trialing {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

.badge-status-ui.inactive, .badge-status-ui.expired, .badge-status-ui.canceled {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

.badge-status-ui.past_due, .badge-status-ui.suspended {
  background-color: #fff1f2 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}

/* ==========================================================================
   13. TABLES
   ========================================================================== */
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background-color: #ffffff;
}

.table-ui {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table-ui th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-ui td {
  padding: 0.875rem 1rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.table-ui tr:last-child td {
  border-bottom: none;
}

.table-ui tr:hover td {
  background-color: #f8fafc;
}

.table-tenants-ui {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
}

.table-tenants-ui th {
  padding: 0.75rem 0.875rem !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  background-color: rgba(248, 250, 252, 0.9) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.table-tenants-ui td {
  padding: 0.75rem 0.875rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.75rem !important;
}

.table-tenants-ui tr:hover td {
  background-color: rgba(248, 250, 252, 0.6) !important;
}

/* ==========================================================================
   14. ALERTS
   ========================================================================== */
.bg-amber-50 { background-color: #fffbeb !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.border-amber-200 { border-color: #fde68a !important; }

.bg-rose-50 { background-color: #fff1f2 !important; }
.text-rose-600 { color: #e11d48 !important; }
.text-rose-700 { color: #be123c !important; }
.text-rose-800 { color: #9f1239 !important; }
.border-rose-200 { border-color: #fecdd3 !important; }

/* ==========================================================================
   15. MODALS
   ========================================================================== */
.modal-backdrop-ui {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 9999 !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop-ui.hidden {
  display: none !important;
}

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

.modal-box-ui {
  background-color: #ffffff;
  border-radius: 0.75rem;
  max-width: 32rem;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.modal-backdrop-ui.active .modal-box-ui {
  transform: scale(1);
}

.modal-content-ui {
  background-color: #ffffff !important;
  border-radius: 0.875rem !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  max-width: 42rem !important;
  width: 100% !important;
  padding: 1.5rem !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.modal-content-ui label {
  color: #334155 !important;
  font-weight: 600 !important;
}

.modal-content-ui input[type="text"],
.modal-content-ui input[type="number"],
.modal-content-ui textarea,
.modal-content-ui select {
  width: 100% !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.8125rem !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.modal-header-ui {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body-ui {
  padding: 1.25rem;
}

.modal-footer-ui {
  padding: 0.875rem 1.25rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   16. DRAWERS
   ========================================================================== */
.drawer-backdrop-ui {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.drawer-box-ui {
  background-color: #ffffff;
  width: 100%;
  max-width: 32rem;
  height: 100%;
  box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-backdrop-ui.active .drawer-box-ui {
  transform: translateX(0);
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  background-color: #ffffff;
  z-index: 51;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.15);
}

.nav-drawer-overlay.active .nav-drawer-content {
  transform: translateX(0);
}

/* ==========================================================================
   17. TOASTS
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-item.show {
  transform: translateX(0);
  opacity: 1;
}

/* ==========================================================================
   18. CODE BLOCKS
   ========================================================================== */
.code-window-header {
  background-color: #090d16;
  border-bottom: 1px solid #1e293b;
}

pre, .code-block-ui {
  background-color: #0f172a !important;
  color: #34d399 !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  overflow-x: auto !important;
  white-space: pre !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  max-height: 380px !important;
  border: 1px solid #1e293b !important;
}

pre.text-sky, .code-block-ui.text-sky { color: #7dd3fc !important; }
pre.text-slate, .code-block-ui.text-slate { color: #cbd5e1 !important; }
pre.text-amber, .code-block-ui.text-amber { color: #fcd34d !important; }

/* ==========================================================================
   19. AUTHENTICATION / LOGIN
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #f8fafc;
}

.login-split-container {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  width: 100%;
  background-color: #ffffff;
}

@media (min-width: 1024px) {
  .login-split-container {
    grid-template-columns: 1fr 1fr;
  }
}

.login-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  min-height: 100vh;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .login-left-col {
    padding: 3.5rem 4rem;
    max-width: none;
  }
}

.login-form-box {
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.login-right-col {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background-color: #f8fafc;
  border-left: 1px solid #e2e8f0;
  position: relative;
}

@media (min-width: 1024px) {
  .login-right-col {
    display: flex;
  }
}

.login-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.login-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #e2e8f0;
}

.login-divider-text {
  position: relative;
  background-color: #ffffff;
  padding: 0 0.75rem;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   20. WHATSAPP
   ========================================================================== */

/* ==========================================================================
   21. OPERATIONAL DIAGNOSTIC
   ========================================================================== */
.op-diag-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.2s ease !important;
}

.op-diag-card:hover {
  border-color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.op-check-item {
  background-color: rgba(248, 250, 252, 0.6) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.625rem !important;
  transition: all 0.2s ease !important;
}

.op-check-item:hover {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.03) !important;
}

.op-icon-box {
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 0.75rem !important;
}

.op-icon-box.emerald { background-color: #ecfdf5 !important; color: #059669 !important; border: 1px solid #a7f3d0 !important; }
.op-icon-box.blue { background-color: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }
.op-icon-box.sky { background-color: #f0f9ff !important; color: #0284c7 !important; border: 1px solid #bae6fd !important; }
.op-icon-box.purple { background-color: #faf5ff !important; color: #9333ea !important; border: 1px solid #e9d5ff !important; }
.op-icon-box.amber { background-color: #fffbeb !important; color: #d97706 !important; border: 1px solid #fde68a !important; }
.op-icon-box.indigo { background-color: #eef2ff !important; color: #4f46e5 !important; border: 1px solid #c7d2fe !important; }

.op-status-pipeline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.375rem !important;
  margin-top: 0.5rem !important;
  padding-top: 0.5rem !important;
  border-top: 1px solid #f1f5f9 !important;
  width: 100% !important;
}

.op-pipeline-step {
  flex: 1 1 0% !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.375rem 0.25rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}

.op-pipeline-step .step-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
  margin-bottom: 2px !important;
}

/* ==========================================================================
   22. TEMPLATES
   ========================================================================== */

/* ==========================================================================
   23. INTEGRATION / API
   ========================================================================== */
.postman-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  padding: 1.25rem 1.5rem !important;
  border: 1px solid #334155 !important;
  margin-bottom: 1.5rem !important;
}
.postman-hero-card h3 {
  color: #ffffff !important;
}
.postman-hero-card p {
  color: #94a3b8 !important;
}
.postman-hero-card .btn-postman-sub {
  background-color: #334155 !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}
.postman-hero-card .btn-postman-sub:hover {
  background-color: #475569 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   24. BILLING
   ========================================================================== */
.billing-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.billing-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
}

.billing-plan-avatar {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
  flex-shrink: 0 !important;
  border-radius: 0.75rem !important;
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
  font-weight: 800 !important;
  font-size: 1.125rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.billing-metric-card {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.625rem !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0.375rem !important;
  min-width: 0 !important;
}

.billing-metric-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
}

.billing-metric-value {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 0.25rem !important;
  flex-wrap: wrap !important;
}

.progress-track-ui {
  width: 100% !important;
  height: 0.5rem !important;
  background-color: #e2e8f0 !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  display: block !important;
  margin-top: 0.625rem !important;
  margin-bottom: 0.625rem !important;
}

.progress-fill-ui {
  height: 100% !important;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
  border-radius: 9999px !important;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pricing-card-ui {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1.25rem !important;
  padding: 2.25rem 1.75rem 1.75rem 1.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03) !important;
}

.pricing-card-ui:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.pricing-card-ui.popular {
  border: 2px solid #059669 !important;
  box-shadow: 0 12px 25px -5px rgba(5, 150, 105, 0.18) !important;
}

.popular-badge-ui {
  position: absolute !important;
  top: -0.875rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  font-size: 0.6875rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.3125rem 0.875rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 6px 0 rgba(5, 150, 105, 0.3) !important;
  white-space: nowrap !important;
  z-index: 10 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   25. ADMIN / TENANTS
   ========================================================================== */

/* ==========================================================================
   26. LANDING / PUBLIC
   ========================================================================== */
.tech-grid-pattern {
  background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-glow-emerald {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-glow-blue {
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
}

/* ==========================================================================
   27. ANIMATIONS
   ========================================================================== */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pulseLine {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

.animate-float {
  animation: floatSlow 9s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 11s ease-in-out infinite 2.5s;
}

.animate-flow-line {
  stroke-dasharray: 6 6;
  animation: pulseLine 1.5s linear infinite;
}

.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-visible,
.reveal-up.reveal-visible,
.reveal-left.reveal-visible,
.reveal-right.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   28. UTILITIES
   ========================================================================== */
.sticky { position: sticky !important; }
.top-0 { top: 0 !important; }
.z-50 { z-index: 50 !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-pre-wrap { white-space: pre-wrap !important; word-break: break-word !important; }
.break-all { word-break: break-all !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }

.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }

.shrink-0, .flex-shrink-0 { flex-shrink: 0 !important; }
.grow, .flex-grow { flex-grow: 1 !important; }
.flex-1 { flex: 1 1 0% !important; }

.w-3 { width: 0.75rem !important; max-width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; max-height: 0.75rem !important; }
.w-3\.5 { width: 0.875rem !important; max-width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; max-height: 0.875rem !important; }
.w-4 { width: 1rem !important; max-width: 1rem !important; }
.h-4 { height: 1rem !important; max-width: 1rem !important; }
.w-4\.5 { width: 1.125rem !important; max-width: 1.125rem !important; }
.h-4\.5 { height: 1.125rem !important; max-height: 1.125rem !important; }
.w-5 { width: 1.25rem !important; max-width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; max-height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; max-width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; max-height: 1.5rem !important; }
.w-7 { width: 1.75rem !important; max-width: 1.75rem !important; }
.h-7 { height: 1.75rem !important; max-height: 1.75rem !important; }
.w-8 { width: 2rem !important; max-width: 2rem !important; }
.h-8 { height: 2rem !important; max-height: 2rem !important; }
.w-9 { width: 2.25rem !important; max-width: 2.25rem !important; }
.h-9 { height: 2.25rem !important; max-height: 2.25rem !important; }
.w-10 { width: 2.5rem !important; max-width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; max-width: 2.5rem !important; }
.w-11 { width: 2.75rem !important; min-width: 2.75rem !important; max-width: 2.75rem !important; }
.h-11 { height: 2.75rem !important; min-height: 2.75rem !important; max-height: 2.75rem !important; }
.w-12 { width: 3rem !important; min-width: 3rem !important; max-width: 3rem !important; }
.h-12 { height: 3rem !important; min-height: 3rem !important; max-height: 3rem !important; }
.h-16 { height: 4rem !important; }
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.h-auto { height: auto !important; }

.max-w-xs { max-width: 20rem !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.min-w-0 { min-width: 0 !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-4\.5 { gap: 1.125rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-7 { gap: 1.75rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }
.gap-12 { gap: 3rem !important; }

#op-checks-grid {
  gap: 1rem !important;
}

.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-7 { padding: 1.75rem !important; }
.p-8 { padding: 2rem !important; }

.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-7 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-28 { padding-top: 7rem !important; padding-bottom: 7rem !important; }

.pt-3 { padding-top: 0.75rem !important; }
.pt-4 { padding-top: 1rem !important; }
.pt-6 { padding-top: 1.5rem !important; }
.pb-4 { padding-bottom: 1rem !important; }
.pb-6 { padding-bottom: 1.5rem !important; }
.pb-10 { padding-bottom: 2.5rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 3.5rem !important; }
.me-2 { margin-end: 0.5rem !important; margin-right: 0.5rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-14 { margin-top: 3.5rem !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }
.ml-auto, .ms-auto { margin-left: auto !important; }
.mr-auto, .me-auto { margin-right: auto !important; }
.m-auto { margin: auto !important; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem !important; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem !important; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem !important; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem !important; }

.text-\[9px\] { font-size: 0.5625rem !important; line-height: 0.75rem !important; }
.text-\[10px\] { font-size: 0.625rem !important; line-height: 0.8125rem !important; }
.text-\[11px\] { font-size: 0.6875rem !important; line-height: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.8125rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 0.875rem !important; line-height: 1.375rem !important; }
.text-lg { font-size: 1rem !important; line-height: 1.5rem !important; }
.text-xl { font-size: 1.125rem !important; line-height: 1.625rem !important; }
.text-2xl { font-size: 1.375rem !important; line-height: 1.75rem !important; }
.text-3xl { font-size: 1.625rem !important; line-height: 2rem !important; }
.text-4xl { font-size: 2rem !important; line-height: 2.375rem !important; }

.font-normal { font-weight: 400 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }

.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-relaxed { line-height: 1.625 !important; }

.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }

.bg-white { background-color: #ffffff !important; }
.bg-slate-50 { background-color: #f8fafc !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-slate-200 { background-color: #e2e8f0 !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-900 { background-color: #0f172a !important; color: #ffffff !important; }
.bg-slate-950 { background-color: #020617 !important; }

.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.bg-emerald-500 { background-color: #10b981 !important; color: #ffffff !important; }
.bg-emerald-600 { background-color: #059669 !important; color: #ffffff !important; }
.bg-emerald-700 { background-color: #047857 !important; color: #ffffff !important; }

.hover\:bg-emerald-700:hover { background-color: #047857 !important; color: #ffffff !important; }
.hover\:bg-slate-800:hover { background-color: #1e293b !important; color: #ffffff !important; }

.text-white { color: #ffffff !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-900 { color: #0f172a !important; }

.text-emerald-300 { color: #6ee7b7 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-500 { color: #10b981 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #065f46 !important; }
.text-sky-300 { color: #7dd3fc !important; }
.text-sky-400 { color: #38bdf8 !important; }
.text-amber-300 { color: #fcd34d !important; }
.text-amber-400 { color: #fbbf24 !important; }

.border-b { border-bottom-width: 1px !important; }
.border-t { border-top-width: 1px !important; }
.border-slate-100 { border-color: #f1f5f9 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-800 { border-color: #1e293b !important; }
.border-emerald-100 { border-color: #d1fae5 !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-emerald-500 { border-color: #10b981 !important; }

.shadow-2xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-sm { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

/* ==========================================================================
   29. RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 280px !important;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
  .app-content {
    padding: 1.25rem 1rem;
  }
}

@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
  .sm\:w-auto { width: auto !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .sm\:text-5xl { font-size: 3rem !important; line-height: 1 !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg\:py-28 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
  .lg\:text-6xl { font-size: 3.75rem !important; line-height: 1.1 !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
}

@media (min-width: 1280px) {
  .xl\:col-span-8 { grid-column: span 8 / span 8 !important; }
  .xl\:col-span-7 { grid-column: span 7 / span 7 !important; }
  .xl\:col-span-5 { grid-column: span 5 / span 5 !important; }
  .xl\:col-span-4 { grid-column: span 4 / span 4 !important; }
}

/* ==========================================================================
   30. ACCESSIBILITY / REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nav-drawer-overlay,
  .nav-drawer-content,
  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .animate-float,
  .animate-float-delayed,
  .animate-flow-line,
  .btn-ui:hover,
  .card-interactive:hover {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}