/* css/price.css
   Pricing page: dark site background + white plan cards with black text,
   responsive grid, no fixed footer overlay, and no Bootstrap grid breakage.
*/

:root{
  --bg0: #000;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --blue: #007bff;
  --blueHover: #0062cc;

  --cardRadius: 14px;
  --shadow: 0 18px 44px rgba(0,0,0,0.30);
  --shadowHover: 0 26px 62px rgba(0,0,0,0.28), 0 18px 44px rgba(0,123,255,0.10);
}

html, body{
  height: 100%;
}

body{
  font-family: Arial, sans-serif;
  background: var(--bg0) !important;
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Navbar text sizing (works with your navbar-ghost too) */
.navbar-brand{ font-size: 1.25rem; }
.nav-link{ font-size: 1.05rem; }

/* Container sizing */
.container{
  width: 100%;
  padding: 0 15px;
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 36px; /* footer is not fixed now */
}

/* Header */
.pricing-header{
  margin-bottom: 20px;
  padding-top: 24px;
  text-align: center;
}

.pricing-header h1{
  color: rgba(255,255,255,0.96);
  font-weight: 900;
  margin: 0 0 14px;
}

/* Toggle */
.toggle-buttons{
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 12px;
}

.toggle-button{
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.toggle-button:hover{
  background: rgba(0,123,255,0.14);
  border-color: rgba(0,123,255,0.28);
}

.toggle-button.active{
  background: rgba(0,123,255,0.22);
  border-color: rgba(0,123,255,0.55);
  color: rgba(255,255,255,0.96);
}

/* IMPORTANT: do not override Bootstrap .row / .col with flex rules.
   Your old CSS broke the grid. This keeps Bootstrap intact. */
.row{
  margin-left: -15px;
  margin-right: -15px;
}

.row > [class*="col-"]{
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 18px;
}

/* Make cards stretch evenly per row */
.row.justify-content-center > [class*="col-"]{
  display: flex;
}

/* Pricing cards: white background, black text */
.pricing-card{
  background: #fff !important;
  border-radius: var(--cardRadius) !important;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.10);
  overflow: hidden;
  padding: 0; /* let card-body handle padding */
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 420px; /* consistent height */
}

/* Force black text inside cards even if global site sets white */
.pricing-card,
.pricing-card *{
  color: #111 !important;
}

.pricing-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadowHover);
  border-color: rgba(0,123,255,0.28);
}

.pricing-card.popular{
  border: 2px solid rgba(0,123,255,0.70) !important;
}

/* Card body */
.card-body{
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
}

.card-title{
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: #0b0f14 !important;
}

.card-price{
  font-size: 2.05rem;
  font-weight: 950;
  color: var(--blue) !important;
  margin-bottom: 10px;
}

.card-details{
  margin-bottom: 10px;
  color: rgba(0,0,0,0.70) !important;
}

/* Features list */
.card-features{
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
  flex-grow: 1;
  text-align: left;
}

.card-features li{
  margin-bottom: 10px;
  color: rgba(0,0,0,0.85) !important;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
}

.card-features li:first-child{
  border-top: 0;
  padding-top: 0;
}

/* Button inside card */
.pricing-card .btn{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}

.pricing-card .btn.btn-primary{
  background: var(--blue);
  border-color: var(--blue);
  color: #fff !important; /* button text white */
}

.pricing-card .btn.btn-primary:hover,
.pricing-card .btn.btn-primary:focus{
  background: var(--blueHover);
  border-color: var(--blueHover);
}

/* Footer: do not fix it (fixed footer created “frame/overlay”) */
.footer{
  background-color: #000;
  color: #fff;
  padding: 14px 0;
  position: static;
  width: 100%;
}

/* Enterprise section */
.enterprise-container{
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 6px 0 18px;
}

.enterprise-card{
  background: rgba(30,30,30,0.92);
  color: rgba(255,255,255,0.92);
  padding: 18px;
  margin: 0;
  border-radius: 16px;
  flex: 1;
  max-width: 900px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

.enterprise-card h2{
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.95);
}

.enterprise-card p,
.enterprise-card ul,
.enterprise-card li{
  color: rgba(255,255,255,0.76);
}

.enterprise-card ul{
  margin: 10px 0 14px;
}

.enterprise-card .btn{
  background-color: #fff;
  color: #111 !important;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 900;
}

/* Compare tables: dark table */
.compare-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: rgba(18,18,18,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.compare-table th,
.compare-table td{
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.82);
}

.compare-table th{
  background: rgba(0,0,0,0.55);
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.compare-table tr:hover td{
  background: rgba(0,123,255,0.06);
}

/* Check marks */
.check-mark{
  color: #28a745;
  font-size: 1.2em;
}

/* Divider fade */
hr.fader{
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.18), rgba(255,255,255,0));
  margin: 26px 0;
}

/* Mobile adjustments */
@media (max-width: 768px){
  .toggle-buttons{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .toggle-button{
    flex: 1 1 auto;
  }
  .pricing-card{
    min-height: 0; /* let content drive height on mobile */
  }
}
