/* TideIQ — shared VIP / VIP Premium pricing UI */
.tq-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 151, 184, 0.12), rgba(0, 201, 177, 0.1));
  border: 1px solid rgba(0, 150, 190, 0.14);
}

.profile-subscription-grid.tq-profile-solo {
  grid-template-columns: 1fr !important;
}
.tq-pricing-section {
  max-width: 1180px;
  margin: 32px auto 0;
}

.tq-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tq-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(0, 150, 190, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 255, 0.88));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(2, 78, 106, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
  color: #013244;
}

.tq-plan-card--summary {
  padding: 22px;
}

.tq-plan-card--summary .tq-plan-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.tq-plan-card--highlight {
  border-color: rgba(0, 151, 184, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 151, 184, 0.18), 0 24px 56px rgba(2, 78, 106, 0.12);
}

#appDashboard .tq-plan-card,
#vipUpgradeModal .tq-plan-card {
  color: #013244;
}

.tq-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0097b8, #00c9b1);
  opacity: 0.85;
}

.tq-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(2, 78, 106, 0.12);
}

.tq-plan-card--vip {
  border-color: rgba(245, 181, 17, 0.32);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 228, 0.78));
}

.tq-plan-card--vip::before {
  background: linear-gradient(90deg, #f5b511, #e6900a);
}

.tq-plan-card--premium::before {
  background: linear-gradient(90deg, #024e6a, #0097b8);
}

.tq-plan-card--premium {
  border-color: rgba(2, 78, 106, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(224, 245, 252, 0.78));
}

.tq-plan-popular {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f5b511, #e6900a);
  box-shadow: 0 6px 16px rgba(245, 181, 17, 0.28);
}

.tq-plan-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 150, 190, 0.1);
}

.tq-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #0097b8, #00c9b1);
}

.tq-plan-card--premium .tq-plan-badge {
  background: linear-gradient(135deg, #024e6a, #036b8f);
}

.tq-plan-price {
  margin: 12px 0 8px;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  color: #024e6a;
}

.tq-plan-price small {
  font-size: 14px;
  font-weight: 700;
  color: #2a5568;
}

.tq-plan-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
  color: #013244;
  line-height: 1.25;
}

.tq-plan-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #2a5568;
}

.tq-plan-includes {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  color: #059c7f;
}

.tq-plan-features {
  display: grid;
  gap: 10px;
  flex: 1;
}

.tq-feat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 150, 190, 0.14);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.tq-feat-card:hover {
  border-color: rgba(0, 150, 190, 0.24);
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(2px);
}

[dir="rtl"] .tq-feat-card:hover {
  transform: translateX(-2px);
}

.tq-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #0097b8;
  background: linear-gradient(135deg, rgba(0, 151, 184, 0.12), rgba(0, 201, 177, 0.1));
  border: 1px solid rgba(0, 150, 190, 0.14);
}

.tq-plan-card--vip .tq-feat-icon {
  color: #c88700;
  background: linear-gradient(135deg, rgba(245, 181, 17, 0.14), rgba(230, 144, 10, 0.08));
  border-color: rgba(245, 181, 17, 0.2);
}

.tq-plan-card--premium .tq-feat-icon {
  color: #024e6a;
  background: linear-gradient(135deg, rgba(2, 78, 106, 0.1), rgba(0, 151, 184, 0.08));
}

.tq-feat-icon svg {
  width: 20px;
  height: 20px;
}

.tq-feat-title {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 900;
  color: #013244;
  line-height: 1.3;
}

.tq-feat-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #3d6578;
}

.tq-feat-check,
.tq-plan-card--vip .tq-feat-check,
.tq-plan-card--premium .tq-feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #0097b8;
  background: rgba(0, 151, 184, 0.14);
  border: 1px solid rgba(0, 151, 184, 0.28);
}

.tq-feat-check svg {
  width: 13px;
  height: 13px;
}

.tq-plan-features-btn {
  margin-top: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 150, 190, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #024e6a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tq-plan-features-btn:hover {
  background: rgba(0, 151, 184, 0.08);
  border-color: rgba(0, 151, 184, 0.35);
  color: #013244;
}

.tq-plan-cta {
  margin-top: 16px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #0097b8, #00c9b1);
  box-shadow: 0 8px 22px rgba(0, 150, 185, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tq-plan-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(0, 150, 185, 0.34);
}

.tq-plan-card--premium .tq-plan-cta {
  background: linear-gradient(135deg, #024e6a, #036b8f);
  box-shadow: 0 8px 22px rgba(2, 78, 106, 0.28);
}

/* Modal */
#vipUpgradeModal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 20, 36, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: tqFadeIn 0.25s ease;
}

@keyframes tqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tq-modal-panel {
  width: min(100%, 920px);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 40px 100px rgba(0, 60, 100, 0.3);
  animation: tqSlideUp 0.32s ease;
}

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

.tq-modal-head {
  position: relative;
  padding: 26px 24px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #024e6a, #0097b8);
  border-radius: 28px 28px 0 0;
}

.tq-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.tq-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tq-modal-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 950;
}

.tq-modal-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.tq-modal-body {
  padding: 20px;
}

.tq-modal-body .tq-pricing-grid,
.tq-pricing-grid--modal {
  grid-template-columns: 1fr;
  gap: 20px;
}

.tq-modal-body .tq-plan-card--full .tq-plan-features {
  max-height: none;
}

.tq-modal-foot {
  padding: 0 20px 20px;
  text-align: center;
  font-size: 11px;
  color: #2a5568;
}

/* In-app pricing (logged-in dashboard) */
.tq-pricing-app-section {
  max-width: 1180px;
  margin: 0 auto 8px;
}

#tqPricingApp .tq-pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Profile mount */
.tq-pricing-profile-wrap {
  min-width: 0;
}

.tq-pricing-profile-wrap .tq-pricing-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.tq-pricing-profile-wrap .tq-plan-card {
  padding: 18px;
}

.tq-pricing-profile-wrap .tq-plan-price {
  font-size: 28px;
}

[dir="rtl"] .tq-modal-head {
  text-align: right;
}

@media (max-width: 900px) {
  .tq-pricing-grid,
  #tqPricingApp .tq-pricing-grid {
    grid-template-columns: 1fr;
  }

  .tq-modal-body .tq-pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tq-plan-card {
    padding: 18px;
    border-radius: 20px;
  }

  .tq-plan-title {
    font-size: 19px;
  }

  .tq-feat-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .tq-feat-icon {
    width: 36px;
    height: 36px;
  }
}
