/* ===============================
   CART PAGE – CLOUDDB PRO
   Isolated & Clean CSS
=============================== */

:root{
  --primary: #f3d706;
  --primary-dark: #1e40af;
  --bg-dark: #000000;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --border: #e5e7eb;
  --success: #16a34a;
  --shadow: rgba(37, 99, 235, 0.1);
}

/* RESET */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===============================
   NAVBAR
=============================== */
.navbar{
  background: rgba(2,6,23,.9);
  backdrop-filter: blur(10px);
  padding: 14px 32px;
}

/* ===============================
   HERO
=============================== */
.cart-hero{
  padding: 90px 20px;
  background:var(--bg-dark);
  color: #fff;
  text-align: center;
}

.cart-hero h1{
  font-size: 40px;
  font-weight: 800;
}

.cart-hero p{
  margin-top: 10px;
  color: #cbd5f5;
} 

 
 
 
/* PRICE */
.cart-total{
  text-align: right;
}

.cart-total strong{
  font-size: 18px;
  font-weight: 700;
}

.cart-total .btn{
  margin-top: 6px;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 8px;
} 
  
/* ===============================
   FOOTER
=============================== */
.site-footer{
  background: #020617;
  color: #cbd5f5;
  padding: 70px 20px 50px;
  margin-top: 80px;
}

.site-footer h5,
.site-footer h6{
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px;
}

.site-footer .footer-text{
  font-size: 15px;
  color: #94a3b8;
  max-width: 420px;
  line-height: 1.6;
}

.site-footer .footer-small{
  font-size: 13px;
  margin-top: 22px;
  color: #64748b;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li{
  margin-bottom: 10px;
}

.footer-links a{
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}

.footer-links a:hover{
  color: #2563eb;
}

.footer-contact{
  font-size: 14px;
  color: #cbd5f5;
  line-height: 1.7;
}

.footer-social{
  margin-top: 16px;
}

.footer-social a{
  font-size: 20px;
  color: #cbd5f5;
  margin-right: 14px;
  transition: .25s ease;
}

.footer-social a:hover{
  color: #2563eb;
}
 
/* MOBILE */
@media(max-width:768px){
  .site-footer{
    text-align: center;
  }

  .footer-social{
    justify-content: center;
  }
}

/* ===== EMPTY CART – PREMIUM ===== */
.empty-cart-pro {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #e5e7eb;
  border-radius: 18px;
  background: #f9fafb;
}

.empty-cart-pro .icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.empty-cart-pro h4 {
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-cart-pro p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
}

.empty-cart-pro .cta-actions {
  margin-bottom: 12px;
}

.empty-cart-pro .hint {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 16px;
}

/* -------------------------------
   GENERAL LAYOUT AND SPACING
--------------------------------- */
.container {
  max-width: 1300px;
  margin: auto;
}

.row {
  margin-top: 20px;
}
 

 

.billing-title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 20px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #374151;
  margin-bottom: 16px;
}

.billing-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #f5faff, #ffffff);
  border-radius: 12px;
  margin-top: 14px;
}

.billing-amount span {
  font-size: 14px;
  color: #6b7280;
}

.amount-value {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
}
 
.save-text {
  font-size: 16px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 4px;
}

 

/* -------------------------------
   TRUST LIST
--------------------------------- */
.trust-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.trust-list li {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

/* =========================
   DESIGN SYSTEM
========================= */

:root {

  --primary: #2563eb;
  --accent: #facc15;

  --bg: #f3f5f9;

  --card: #ffffff;

  --text: #0f172a;

  --muted: #64748b;

  --border: #e5e7eb;

  --success: #16a34a;

}

 
/* =========================
   BILLING TOGGLE
========================= */

.billing-toggle {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 18px;

}

.toggle-label {

  font-size: 15px;

  font-weight: 600;

  color: var(--muted);

  transition: .2s;

}

.toggle-label.active {

  color: var(--primary);

}

.save-tag {

  background: #dcfce7;

  color: #166534;

  font-size: 11px;

  padding: 3px 8px;

  border-radius: 6px;

  margin-left: 4px;

}

/* SWITCH */

.switch {

  position: relative;

  width: 56px;

  height: 28px;

}

.switch input {

  display: none;

}

.slider {

  position: absolute;

  inset: 0;

  background: #cbd5f5;

  border-radius: 999px;

  transition: .3s;

}

.slider::before {

  content: "";

  position: absolute;

  width: 22px;

  height: 22px;

  background: white;

  top: 3px;

  left: 4px;

  border-radius: 50%;

  transition: .3s;

}

.switch input:checked + .slider {

  background: var(--primary);

}

.switch input:checked + .slider::before {

  transform: translateX(26px);

}

/* =========================
   WRAPPER
========================= */

.cart-wrapper {

  margin-top: 30px;

}

/* =========================
   PANELS
========================= */

.cart-panel,
.billing-panel {

  background: var(--card);

  border-radius: 20px;

  padding: 36px;

  border: 1px solid var(--border);

  box-shadow:

    0 8px 24px rgba(0,0,0,0.05);

  transition: all .25s ease;

}

/* Sticky Billing */

.billing-panel {

  position: sticky;

  top: 110px;

}

/* =========================
   TITLES
========================= */

.cart-panel h4,
.billing-panel h4 {

  font-size: 22px;

  font-weight: 700;

  margin-bottom: 24px;

}

/* =========================
   CART ITEM
========================= */

#cartItemsContainer {

  display: flex;

  flex-direction: column;

  gap: 20px;

}

.cart-item {

  background: white;

  border-radius: 16px;

  padding: 24px 28px;

  border: 1px solid var(--border);

  transition: .25s;

}

.cart-item:hover {

  transform: translateY(-2px);

  box-shadow:

    0 12px 28px rgba(0,0,0,.08);

}

/* GRID */

.cart-item-grid {

  display: grid;

  grid-template-columns:

    1.6fr
    0.8fr
    0.8fr;

  align-items: center;

  gap: 20px;

}

/* =========================
   PLAN TEXT
========================= */

.cart-item h6 {

  font-size: 17px;

  font-weight: 600;

}

.price-note {

  font-size: 14px;

  color: var(--muted);

}

/* =========================
   QTY BUTTON
========================= */

.cart-qty {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

}

.cart-qty button {

  width: 42px;

  height: 42px;

  border-radius: 10px;

  border: 1px solid #dbeafe;

  background: white;

  font-size: 18px;

  font-weight: 600;

  color: var(--primary);

  cursor: pointer;

  transition: .2s;

}

.cart-qty button:hover {

  background: var(--primary);

  color: white;

}

.cart-qty span {

  font-size: 16px;

  font-weight: 600;

  width: 28px;

  text-align: center;

}

/* =========================
   USERS SUMMARY
========================= */

.users-summary-card {

  background:

    linear-gradient(
      180deg,
      #f8fafc,
      #ffffff
    );

  border-radius: 14px;

  padding: 20px 24px;

  margin-top: 20px;

  border: 1px solid var(--border);

}

.users-row {

  display: flex;

  justify-content: space-between;

  padding: 8px 0;

  font-size: 15px;

}

.users-row.success {

  color: var(--success);

  font-weight: 600;

}

.users-row.total {

  margin-top: 8px;

  padding-top: 12px;

  border-top: 1px dashed var(--border);

  font-size: 16px;

  font-weight: 700;

}

/* =========================
   APPLICATION USERS
========================= */

.add-users-box {

  margin-top: 30px;

  padding-top: 18px;

  border-top: 1px dashed var(--border);

  display: flex;

  justify-content: space-between;

  align-items: center;

}

#userSelect {

  border-radius: 10px;

  padding: 9px 14px;

  font-weight: 500;

  border: 1px solid var(--border);

}
 

/* =========================
   YEARLY BREAKDOWN
========================= */

.yearly-breakdown {

  margin-top: 12px;

  padding: 14px;

  background: #f3f4f6;

  border-radius: 10px;

}

.calc-text {

  font-size: 14px;

  color: var(--muted);

}

.save-text {

  font-size: 15px;

  font-weight: 600;

  color: var(--success);

}

/* =========================
   CHECKOUT BUTTON
========================= */

.checkout-btn {

  margin-top: 22px;

  padding: 16px;

  font-size: 17px;

  font-weight: 700;

  border-radius: 12px;

  border: none;

  width: 100%;

  background:

    linear-gradient(
      90deg,
      var(--accent),
      var(--primary)
    );

  color: white;

  transition: .25s;

  box-shadow:

    0 12px 30px rgba(0,0,0,.15);

}

.checkout-btn:hover {

  transform: translateY(-2px);

}

/* =========================
   TRUST BOX
========================= */

.trust-box {

  margin-top: 22px;

  padding-top: 16px;

  border-top: 1px dashed var(--border);

  font-size: 14px;

  color: var(--muted);

  line-height: 1.7;

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .billing-panel {

    position: static;

  }

  .cart-item-grid {

    grid-template-columns: 1fr;

    text-align: center;

    gap: 14px;

  }

  .add-users-box {

    flex-direction: column;

    gap: 12px;

  }

}

/* =========================
   BILLING PANEL
========================= */

.billing-panel {

  background: #ffffff;

  border-radius: 22px;

  padding: 36px;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.06);

  position: sticky;

  top: 110px;

  transition: all .25s ease;

}

.billing-panel:hover {

  box-shadow:
    0 18px 45px rgba(0,0,0,0.08);

}

/* =========================
   TITLE
========================= */

.billing-panel h4 {

  font-size: 22px;

  font-weight: 700;

  margin-bottom: 26px;

  color: #0f172a;

}

/* =========================
   BILLING LINE
========================= */

.billing-panel .d-flex {

  font-size: 15px;

  margin-bottom: 12px;

}

#billingText {

  font-weight: 700;

  letter-spacing: .6px;

  color: #2563eb;

}

/* =========================
   TOTAL AMOUNT
========================= */

#cartTotalAmount {

  font-size: 38px;

  font-weight: 800;

  color: #0f172a;

  letter-spacing: -.5px;

}

/* Label */

.billing-panel .fs-5 span {

  font-weight: 600;

}

/* =========================
   BREAKDOWN BOX
========================= */

.yearly-breakdown {

  margin-top: 18px;

  padding: 16px 18px;

  background:

    linear-gradient(
      180deg,
      #f8fafc,
      #eef2ff
    );

  border-radius: 14px;

  border: 1px solid #e5e7eb;

}

.calc-text {

  font-size: 14px;

  color: #64748b;

  margin-bottom: 4px;

}

.save-text {

  font-size: 15px;

  font-weight: 600;

  color: #16a34a;

}

/* =========================
   CHECKOUT BUTTON
========================= */

.checkout-btn {

  margin-top: 22px;

  padding: 17px;

  font-size: 17px;

  font-weight: 700;

  border-radius: 14px;

  border: none;

  width: 100%;

  background:

    linear-gradient(
      90deg,
      #facc15,
      #2563eb
    );

  color: white;

  transition: all .25s ease;

  box-shadow:
    0 12px 30px rgba(0,0,0,.18);

}

.checkout-btn:hover {

  transform: translateY(-2px);

  box-shadow:
    0 18px 40px rgba(0,0,0,.25);

}

/* =========================
   TRUST BOX
========================= */

.trust-box {

  margin-top: 26px;

  padding-top: 18px;

  border-top: 1px dashed #e5e7eb;

  font-size: 14px;

  color: #64748b;

  line-height: 1.9;

}

/* ICON SPACING */

.trust-box span {

  display: block;

  margin-bottom: 6px;

}

/* =========================
   HIGHLIGHT LINE
========================= */

.billing-panel::before {

  content: "";

  display: block;

  height: 4px;

  width: 100%;

  border-radius: 12px;

  background:

    linear-gradient(
      90deg,
      #facc15,
      #2563eb
    );

  margin-bottom: 20px;

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .billing-panel {

    position: static;

    margin-top: 20px;

  }

}

/* =========================
   TRUST SECTION
========================= */

.trust-section {

  margin-top: 26px;

  padding-top: 18px;

  border-top: 1px dashed #e5e7eb;

}

/* ITEM */

.trust-item {

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 10px 0;

  transition: .2s;

}

.trust-item:hover {

  transform: translateX(3px);

}

/* ICON */

.trust-icon {

  width: 38px;

  height: 38px;

  border-radius: 10px;

  background: #f1f5f9;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 16px;

}

/* TEXT */

.trust-text strong {

  font-size: 14px;

  font-weight: 600;

  color: #0f172a;

  display: block;

}

.trust-text small {

  font-size: 12px;

  color: #64748b;

}