/* Scoped Styling for Pricing Page - Matching Phố SEO AI App Exactly */
.pricing-page-wrap {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  position: relative;
}

.pricing-hero {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 3.5rem;
}

.pricing-hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.pricing-hero p {
  font-size: 1.15rem;
  color:var(--text-secondary);
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto 2rem;
}

/* 1. TOP: Custom Pay-As-You-Go Topup Card */
.pricing-calc-box {
  background:#fff;
  border:1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  max-width: 880px;
  margin: 0 auto 4.5rem;
  box-shadow:none;
  position: relative;
  overflow: hidden;
}

.pricing-calc-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background:var(--grad-primary);
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color:#5b5c5d;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.calc-min-badge {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background:rgba(56, 189, 248, 0.12);
  color:#1f698a;
  border:1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
}

.calc-input-group {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.calc-input-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.calc-input-wrap input {
  width: 100%;
  height: 58px;
  background:#fff;
  border:1.5px solid rgba(56,64,44,.16);
  border-radius: var(--radius-md);
  padding: 0 4.5rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color:#1f698a;
  outline: none;
  transition: all 0.25s ease;
}

.calc-input-wrap input:focus {
  border-color:#38bdf8;
  box-shadow:none;
  background:#fff;
}

.calc-input-suffix {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  color:#556276;
  font-family: var(--font-mono);
  pointer-events: none;
}

.calc-result-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 58px;
  background:rgba(16, 185, 129, 0.12);
  border:1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color:#1b6c4f;
  white-space: nowrap;
}

.calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.calc-pills-label {
  font-size: 0.82rem;
  color:#556276;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.calc-pill-btn {
  background:rgba(255, 255, 255, 0.05);
  border:1px solid rgba(56,64,44,.16);
  color:#585d62;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-pill-btn:hover {
  background:rgba(56, 189, 248, 0.15);
  border-color:rgba(56, 189, 248, 0.4);
  color:#1f698a;
  transform: translateY(-1px);
}

.calc-pill-btn.active {
  background:#0284c7;
  border-color:#38bdf8;
  color:#5e5e5e;
  box-shadow:none;
}

.calc-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top:1px solid rgba(56,64,44,.16);
}

.calc-note {
  font-size: 0.86rem;
  color:#5a6370;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 2. 5 GÓI CONTENT AI CHUYÊN NGHIỆP (30 NGÀY) - EXACT APP PACKAGES */
.content-packages-section {
  margin-bottom: 5.5rem;
}

.packages-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.packages-section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 900;
  color:#5b5c5d;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.packages-section-header p {
  font-size: 1.05rem;
  color:var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.75;
}

/* 5 Cards Responsive Grid: 3 Top + 2 Bottom for optimal readability */
.packages-grid-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 1.6rem;
  align-items: stretch;
}

.packages-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .packages-grid-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-grid-bottom {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .packages-grid-top,
  .packages-grid-bottom {
    grid-template-columns: 1fr;
  }
}

/* The Package Card */
.pkg-card {
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:none;
  border:1.5px solid rgba(56,64,44,.16);
}

.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow:none;
}

/* Package Color Themes */
.pkg-starter {
  background:#fff;
  border-color:rgba(59, 130, 246, 0.35);
}
.pkg-starter:hover {
  border-color:#3b82f6;
  box-shadow:none;
}

.pkg-growth {
  background:#fff;
  border-color:#a855f7;
  box-shadow:none;
  transform: scale(1.02);
  z-index: 2;
}
.pkg-growth:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow:none;
}

.pkg-pro {
  background:#fff;
  border-color:rgba(16, 185, 129, 0.35);
}
.pkg-pro:hover {
  border-color:#10b981;
  box-shadow:none;
}

.pkg-scale {
  background:#fff;
  border-color:rgba(245, 158, 11, 0.35);
}
.pkg-scale:hover {
  border-color:#f59e0b;
  box-shadow:none;
}

.pkg-enterprise {
  background:#fff;
  border-color:rgba(239, 68, 68, 0.35);
}
.pkg-enterprise:hover {
  border-color:#ef4444;
  box-shadow:none;
}

.pkg-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background:linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color:#5e5e5e;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 99px;
  box-shadow:none;
  white-space: nowrap;
}

.pkg-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.pkg-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  border:1px solid rgba(56,64,44,.16);
}

.pkg-duration {
  font-size: 0.74rem;
  color:#556276;
  font-family: var(--font-mono);
  font-weight: 600;
}

.pkg-title {
  font-size: 1.25rem;
  font-weight: 800;
  color:#5b5c5d;
  margin-bottom: 0.75rem;
}

.pkg-price-row {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom:1px solid rgba(56,64,44,.16);
}

.pkg-price-val {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.pkg-price-unit {
  font-size: 0.88rem;
  font-weight: 600;
  color:#5a6370;
}

.pkg-points-fund {
  font-size: 0.92rem;
  font-weight: 800;
  color:#1f698a;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

/* 3 Clear Post Count Breakdown Lines */
.pkg-capacity-box {
  background:#fff;
  border:1px solid rgba(56,64,44,.16);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.pkg-capacity-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color:#5a6370;
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}

.pkg-capacity-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
  color:#585d62;
}

.pkg-capacity-row strong {
  color:#5b5c5d;
}

.pkg-capacity-note {
  border-top:1px dashed rgba(56,64,44,.16);
  padding-top: 0.35rem;
  font-size: 0.72rem;
  color:#556276;
  font-style: italic;
}

/* Daily Quotas Box */
.pkg-quotas-header {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pkg-quotas-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  color:#585d62;
}

.pkg-quota-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Free Unlimited Tools Box */
.pkg-free-header {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
  color:#1b6c4f;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pkg-free-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color:#5a6370;
}

.pkg-free-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pkg-cta-btn {
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

/* 3. Points Consumption Rate Table Section (Dark Glass) */
.consumption-section {
  margin-bottom: 5.5rem;
}

.consumption-table-card {
  background:#fff;
  border:1px solid rgba(56,64,44,.16);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow:none;
  overflow: hidden;
}

@media (max-width: 768px) {
  .consumption-table-card {
    padding: 1.5rem 1rem;
  }
}

.consumption-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.consumption-title-box h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color:#5b5c5d;
  margin-bottom: 0.35rem;
}

.consumption-title-box p {
  font-size: 0.92rem;
  color:#5a6370;
  margin: 0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.consumption-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.92rem;
}

.consumption-table thead tr {
  border-bottom:1.5px solid rgba(56,64,44,.16);
  color:#5a6370;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.consumption-table th {
  padding: 1rem 0.85rem;
  text-align: left;
}

.consumption-table th.text-right {
  text-align: right;
}

.consumption-table tbody tr {
  border-bottom:1px solid rgba(56,64,44,.16);
  transition: background 0.2s ease;
}

.consumption-table tbody tr:hover {
  background:rgba(56, 189, 248, 0.04);
}

.consumption-table td {
  padding: 1.1rem 0.85rem;
  vertical-align: middle;
}

.task-cell {
  font-weight: 700;
  color:#606264;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.desc-cell {
  color:#5a6370;
  font-size: 0.86rem;
  line-height: 1.6;
}

.cost-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 800;
  color:#1f698a;
  white-space: nowrap;
}

.cost-cell.free-cost {
  color:#1b6c4f;
}

.cost-cell.gold-cost {
  color:#775a11;
}

.cost-cell.purple-cost {
  color:#745099;
}

/* 4. Bottom CTA */
.pricing-cta-card {
  background:#fff;
  border:1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow:none;
}

.pricing-cta-card h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color:#5b5c5d;
  margin-bottom: 1rem;
}

.pricing-cta-card p {
  font-size: 1.1rem;
  color:var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
}

.pricing-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
