/* =====================================================
   Pricing Page — Full Redesign
   Matches the 4 reference-image design
   ===================================================== */

/* ── CSS Custom Properties ── */
:root {
  --clr-yellow: #E8BA00;
  --clr-yellow-lt: #FFF6CC;
  --clr-yellow-dk: #C9A200;
  --clr-text: #1a1a1a;
  --clr-sub: #555;
  --clr-border: #e5e5e5;
  --clr-card-bg: #ffffff;
  --clr-free-bg: #FFFBE8;
  --clr-page-bg: #f7f7f7;
  --radius-card: 18px;
  --radius-btn: 50px;
  --shadow-card: 0 2px 18px rgba(0, 0, 0, .07);
  --font-main: 'Inter', 'Segoe UI', sans-serif;
}

/* ── Page Background ── */
body {
  background-color: var(--clr-page-bg);
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.pricing-page-header {
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--clr-page-bg);
}

.pricing-page-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.35;
  margin: 0 auto 16px;
  max-width: 760px;
}

.pricing-page-title strong {
  font-weight: 800;
}

.pricing-page-subtitle {
  font-size: 1.05rem;
  color: var(--clr-sub);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-text);
  font-weight: 600;
}

.whatsapp-inline .fab {
  color: #25D366;
  font-size: 1.2em;
}

/* CTA Cards (Buttons) */
.pricing-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pricing-cta-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 10px 20px 10px 12px;
  text-decoration: none;
  color: var(--clr-text);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

html[dir="rtl"] .pricing-cta-card {
  padding: 10px 12px 10px 12px;
  flex-direction: row-reverse;
}

.pricing-cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--clr-yellow);
  text-decoration: none;
  color: var(--clr-text);
}

.pricing-cta-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

html[dir="rtl"] .pricing-cta-icon-box {
  margin-right: 0;
  margin-left: 0;
}

.pricing-cta-icon-box img {
  width: 22px;
  height: 22px;
}

.pricing-cta-text {
  white-space: nowrap;
  font-size: 24px;
  font-weight: 300;
}

/* =====================================================
   PRICING BODY WRAPPER
   ===================================================== */
.pricing-body-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* =====================================================
   ROLE TABS
   ===================================================== */
.pricing-role-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 36px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
  border: 1px solid var(--clr-border-lt);
}

.pricing-role-tab {
  padding: 10px 32px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: var(--clr-sub);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.pricing-role-tab.active {
  background: var(--clr-yellow);
  color: var(--clr-text);
  box-shadow: 0 4px 12px rgba(232, 186, 0, .3);
}

.pricing-role-tab:hover:not(.active) {
  background: rgba(0, 0, 0, .03);
  color: var(--clr-text);
}

/* =====================================================
   MONTHLY / YEARLY TOGGLE
   ===================================================== */
.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  background: #fff;
  border-radius: 40px;
  padding: 5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.pricing-toggle-btn {
  padding: 10px 28px;
  border-radius: var(--radius-btn);
  border: none;
  background: transparent;
  color: var(--clr-sub);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pricing-toggle-btn.active {
  background: var(--clr-yellow);
  color: var(--clr-text);
  box-shadow: 0 3px 10px rgba(232, 186, 0, .35);
}

.save-tag {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, .4);
  border-radius: 12px;
  padding: 2px 8px;
  font-weight: 500;
}

/* =====================================================
   TAB PANELS
   ===================================================== */
.pricing-tab-panel {
  display: none;
}

.pricing-tab-panel.active {
  display: block;
}

/* =====================================================
   PLANS GRID
   ===================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* =====================================================
   PLAN CARD
   ===================================================== */
.plan-card {
  background: var(--clr-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1.5px solid transparent;
  min-height: 450px !important;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .11);
}

/* Free plan — yellow tint */
.plan-card--free {
  background: var(--clr-free-bg);
  border-color: var(--clr-yellow-lt);
}

/* Current plan — light yellow tint */
.plan-card--current {
  background: #fff9e6;
  border-color: var(--clr-yellow);
}

/* Plan Name */
.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  text-align: center;
  margin-bottom: 14px;
}

/* Price display */
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-bottom: 20px;
}

.plan-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
}

.plan-amount {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1;
}

.plan-period {
  font-size: 0.85rem;
  color: var(--clr-sub);
  margin-right: 3px;
}

/* Features list */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  margin-top: auto;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--clr-sub);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.plan-features li.feature-disabled {
  color: #a0aec0;
  text-decoration: line-through #a0aec0;
}

.plan-check {
  color: var(--clr-yellow);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.plan-check--disabled {
  color: #cbd5e0 !important;
}

/* Plan action button */
.plan-action {
  margin-top: auto;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.plan-btn--select {
  background: var(--clr-yellow);
  color: var(--clr-text);
}

.plan-btn--select:hover {
  background: var(--clr-yellow-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 186, 0, .35);
  color: #000;
}

.plan-btn--current {
  background: var(--clr-yellow);
  color: var(--clr-text);
  cursor: default;
  box-shadow: 0 4px 12px rgba(232, 186, 0, .2);
}

/* =====================================================
   TEAM MODAL
   ===================================================== */
.dva-modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

/* Header */
.dva-modal-header {
  position: relative;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}

.dva-modal-close {
  position: absolute;
  top: 16px;
  left: 18px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--clr-sub);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

html[dir="rtl"] .dva-modal-close {
  left: auto;
  right: 18px;
}

.dva-modal-close:hover {
  background: #f0f0f0;
}

.dva-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  margin: 0;
}

/* Body */
.dva-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  background-color: #f9f9f9;
}

/* Company Wallet Card */
.dva-wallet-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--clr-border);
  padding: 18px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.dva-wallet-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.dva-wallet-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--clr-sub);
}

.dva-wallet-method {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 0.82rem;
  color: #333;
}

.dva-team-title {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--clr-text);
  margin-bottom: 16px;
}

/* Team grid */
.dva-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .dva-team-grid {
    grid-template-columns: 1fr;
  }
}

/* Team member card */
.team-member-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--clr-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-member-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.team-member-card .info-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--clr-sub);
  flex-wrap: wrap;
}

.team-member-card .info-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.team-member-card .info-label {
  font-size: 0.75rem;
  color: #000;
  background: #6B72801A;
  border-radius: 30px;
  padding: 5px;
}

.team-member-card .info-value {
  font-size: 0.82rem;
  color: var(--clr-text);
  font-weight: 600;
}

.team-member-card .whatsapp-btn {
  background: var(--clr-yellow);
  color: var(--clr-text);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.team-member-card .whatsapp-btn:hover {
  background: var(--clr-yellow-dk);
  color: var(--clr-text);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Pagination */
.dva-pagination-wrap {
  text-align: center;
  padding-top: 16px;
}

.dva-pagination .page-item.active .page-link {
  background: var(--clr-yellow);
  border-color: var(--clr-yellow);
  color: var(--clr-text);
}

.dva-pagination .page-link {
  color: var(--clr-text);
  border-radius: 8px;
  margin: 0 2px;
}

.dva-page-info {
  color: var(--clr-sub);
  font-size: 0.82rem;
  display: block;
  margin-top: 8px;
}

/* Footer */
.dva-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--clr-border);
}

.dva-close-btn {
  background: var(--clr-yellow);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--clr-text);
}

.dva-close-btn:hover {
  background: var(--clr-yellow-dk);
}

/* Loading / Error / Empty states */
.loading-animation,
.empty-state,
.error-state {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(232, 186, 0, .2);
  border-top: 4px solid var(--clr-yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text,
.empty-message,
.error-message {
  font-weight: 600;
  color: var(--clr-text);
}

/* Login Prompt Modal styles moved to component internal <style> */

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .pricing-page-header {
    padding: 40px 16px 28px;
  }

  .plans-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .plan-amount {
    font-size: 2.4rem;
  }
}

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

  .dva-team-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cta-btns {
    flex-direction: column;
    align-items: center;
  }
}

/* =====================================================
   RTL SUPPORT
   ===================================================== */
html[dir="rtl"] .plan-period {
  margin-right: 0;
  margin-left: 3px;
}

html[dir="rtl"] .plan-features li {
  flex-direction: row;
}

html[dir="rtl"] .pricing-page-subtitle {
  flex-direction: row;
}