/* Al Barkat Real Estate - Exact Maan Estate DHA Files Page Replica Styles */

.ab-files-portal {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 16px 80px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

/* 1. Header Banner */
.me-files-hero {
  background: linear-gradient(180deg, #fefbf3 0%, #ffffff 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.06);
  margin-bottom: 24px;
}
.me-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.me-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: mePulse 1.5s infinite;
}
@keyframes mePulse {
  0% { opacity: 1; transform: scale(0.9); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(0.9); }
}
.me-files-title {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
}
.me-files-date {
  font-size: 13.5px;
  color: #9a3412;
  font-weight: 700;
  margin-bottom: 6px;
}
.me-files-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* 2. Filter Controls (3 Input Bar) */
.me-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  align-items: center;
}
.me-search-wrap {
  position: relative;
}
.me-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
}
.me-input {
  width: 100%;
  padding: 11px 36px 11px 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.me-input:focus {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.me-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
}
.me-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}
.me-select:focus {
  border-color: #0f172a;
  background: #ffffff;
}

/* Secondary Filter Pills */
.me-pill-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 0 4px;
}
.me-pill-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.me-pill-btn {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.me-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.me-results-indicator {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

/* 3. Phase-Grouped Table Cards (Exact Maan Style) */
.me-phase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.me-phase-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* Dark Navy Header Row */
.me-phase-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.me-phase-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.me-phase-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}
.me-phase-badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
/* Table Content */
.me-phase-table {
  width: 100%;
  border-collapse: collapse;
}
.me-phase-table thead {
  background: #0f172a;
}
.me-thead-row th {
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.me-thead-row th.col-sz { width: 19%; }
.me-thead-row th.col-tp { width: 15%; }
.me-thead-row th.col-pr { width: 22%; }
.me-thead-row th.col-tr { width: 15%; }
.me-thead-row th.col-act { width: 29%; text-align: right; }

.me-phase-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 13.5px;
}
.me-phase-table td.col-sz { width: 19%; }
.me-phase-table td.col-tp { width: 15%; }
.me-phase-table td.col-pr { width: 22%; }
.me-phase-table td.col-tr { width: 15%; }
.me-phase-table td.col-act { width: 29%; text-align: right; }

.me-phase-table tbody tr:last-child td {
  border-bottom: none;
}
.me-phase-table tbody tr:hover {
  background-color: #fafbfc;
}

/* Size & Category Cell */
.me-size-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.me-size-val {
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
}
.me-pill-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.2;
}
.me-pill-res {
  background: #dcfce7;
  color: #15803d;
}
.me-pill-comm {
  background: #fef3c7;
  color: #b45309;
}

/* Type Cell */
.me-type-clean {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

/* Price Cell */
.me-price-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.me-trend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.me-trend-stable {
  color: #f97316;
}
.me-trend-down {
  color: #dc2626;
}
.me-trend-up {
  color: #16a34a;
}
.me-price-text {
  display: flex;
  flex-direction: column;
}
.me-price-headline {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.me-price-sub {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
}

/* Trend & Actions Cell */
.me-actions-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.me-trend-chart-box {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.me-trend-chart-box:hover {
  transform: scale(1.05);
}
.me-trend-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

/* Transfer Calculate Button */
.me-btn-calc {
  background: #0f172a;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.15);
  transition: all 0.15s ease;
  border: 1px solid #1e293b;
  cursor: pointer;
}
.me-btn-calc:hover {
  background: #c59b27;
  border-color: #c59b27;
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(197, 155, 39, 0.3);
}

/* Trade WhatsApp Button */
.me-btn-trade {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  transition: all 0.15s ease;
}
.me-btn-trade:hover {
  background: #1eb857;
  transform: translateY(-1px);
}

/* 4. Investor Guide Section (Exact Maan Estate Format) */
.me-guide-wrap {
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 36px 30px;
  margin-top: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.me-guide-head-bar {
  text-align: center;
  margin-bottom: 28px;
}
.me-guide-badge {
  display: inline-block;
  background: #ffedd5;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.me-guide-sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 32px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #ea580c;
  font-family: 'Playfair Display', Georgia, serif;
}
.me-guide-sec-title:first-of-type {
  margin-top: 0;
}
.me-guide-p {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 16px;
}

/* Cards inside Guide */
.me-guide-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.me-card-alloc {
  border-left: 4px solid #1e40af;
}
.me-card-aff {
  border-left: 4px solid #ea580c;
}
.me-guide-card-box h5 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
.me-guide-card-box p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Video Thumbnail Card */
.me-video-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin: 20px 0;
  background: #0f172a;
  aspect-ratio: 16 / 8.5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.me-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.me-video-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}
.me-play-btn {
  width: 64px;
  height: 64px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.3);
  transition: transform 0.2s;
  cursor: pointer;
}
.me-play-btn:hover {
  transform: scale(1.08);
}
.me-video-overlay h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}
.me-video-overlay p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
}

/* FAQ Accordion */
.me-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.me-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.me-faq-q {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.me-faq-q:hover {
  background: #f8fafc;
}
.me-faq-a {
  padding: 0 18px 14px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

/* Branch / Contact Cards */
.me-branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.me-branch-card {
  background: #0f172a;
  color: #ffffff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.me-branch-tag {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.me-branch-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}
.me-branch-card p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 12px;
}
.me-branch-phone {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

/* Bottom Banner */
.me-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 40px;
  color: #ffffff;
  text-align: center;
  margin-top: 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}
.me-cta-tag {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.me-cta-banner h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
}
.me-cta-banner p {
  font-size: 14.5px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 24px;
}
.me-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.me-btn-gold {
  background: #c59b27;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}
.me-btn-gold:hover {
  background: #b08920;
}
.me-btn-white-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
}
.me-btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Responsive */
@media (max-width: 868px) {
  .me-filter-bar {
    grid-template-columns: 1fr;
  }
  .me-branch-grid {
    grid-template-columns: 1fr;
  }
  .me-phase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .me-phase-table th, .me-phase-table td {
    padding: 10px 12px;
  }
  .me-actions-cell {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

/* Floating Navigation Buttons (Exact Maan Style) */
.me-floating-left {
  position: fixed;
  left: 20px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9998;
}
.me-floating-gold-pill {
  background: linear-gradient(135deg, #c59828 0%, #e0b84c 50%, #b8861a 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  padding: 8px 18px 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(184, 134, 26, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.me-floating-gold-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(184, 134, 26, 0.45);
}
.me-pill-icon-circle {
  background: #111827;
  color: #dfb54b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.me-pill-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.me-pill-title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}
.me-pill-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  opacity: 0.9;
  line-height: 1.15;
}

/* Hide chat toggle bubble on files portal */
#ab-chat-toggle-btn {
  display: none !important;
}

/* Floating Scroll to Top in place of removed button */
.me-scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #dfb54b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.me-scroll-top-btn.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.me-scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 12px 28px rgba(223, 181, 75, 0.4) !important;
  background: #1e293b;
}
.me-scroll-top-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0b84c, #c59828);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

@media (max-width: 768px) {
  .me-floating-left {
    left: 12px;
    bottom: 20px;
    gap: 8px;
  }
  .me-floating-gold-pill {
    padding: 6px 14px 6px 8px;
  }
  .me-pill-title {
    font-size: 12px;
  }
  .me-pill-subtitle {
    font-size: 10px;
  }
  .me-pill-icon-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .me-scroll-top-btn {
    right: 14px;
    bottom: 84px;
    width: 40px;
    height: 40px;
  }
  .me-scroll-top-inner {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ====================================================
   DHA Transfer Expense Calculation Modal Styles
==================================================== */
.me-calc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: meFadeIn 0.2s ease-out;
}
@keyframes meFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.me-calc-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #fed7aa;
  display: flex;
  flex-direction: column;
  animation: mePopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mePopUp {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.me-calc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #fdfbf7;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.me-calc-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.me-modal-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.me-modal-title {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
}
.me-modal-sub {
  font-size: 11.5px;
  color: #b45309;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.me-calc-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.me-calc-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.me-calc-modal-body {
  padding: 20px 24px;
  flex: 1;
}
.me-calc-file-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.me-modal-file-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.me-modal-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748b;
}
.me-modal-tax-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #166534;
}
.me-notice-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.me-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}
.me-modal-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.me-modal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.me-row-highlight {
  background: #fffbeb;
}
.me-row-highlight td {
  border-bottom: 1.5px solid #fef3c7;
}
.me-badge-exempt {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.me-modal-totals-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 14px;
}
.me-modal-total-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.me-total-label {
  font-size: 11px;
  font-weight: 700;
  color: #713f12;
  letter-spacing: 0.03em;
}
.me-total-val {
  font-size: 21px;
  font-weight: 900;
  font-family: 'Playfair Display', Georgia, serif;
}
.me-calc-modal-foot {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.me-modal-btn-print {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.me-modal-btn-print:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.me-modal-btn-trade {
  background: #25D366;
  border: 1.5px solid #22c55e;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.me-modal-btn-trade:hover {
  background: #1eb857;
  transform: translateY(-1px);
}
@media print {
  body * {
    visibility: hidden !important;
  }
  #me-calc-modal, #me-calc-modal * {
    visibility: visible !important;
  }
  #me-calc-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: none !important;
    padding: 0 !important;
  }
  .me-calc-modal-close, .me-calc-modal-foot {
    display: none !important;
  }
}
