/* ===============================
   CART PAGE – CLOUDDB PRO
   Isolated & Clean CSS
=============================== */

:root{
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg: #f8fafc;
  --dark: #020617;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --success: #16a34a;
}

/* 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: 80px 20px;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: #fff;
  text-align: center;
}

.cart-hero h1{
  font-size: 40px;
  font-weight: 800;
}

.cart-hero p{
  margin-top: 10px;
  color: #cbd5f5;
}

/* ===============================
   BILLING TOGGLE
=============================== */
.billing-toggle{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.toggle-label{
  font-weight: 600;
  color: #64748b;
}

.toggle-label.active{
  color: var(--primary);
}

.save-tag{
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
}

/* SWITCH */
.switch{
  position: relative;
  width: 52px;
  height: 26px;
}

.switch input{display: none;}

.slider{
  position: absolute;
  inset: 0;
  background: #cbd5f5;
  border-radius: 999px;
  transition: .3s;
}

.slider::before{
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  transition: .3s;
}

.switch input:checked + .slider{
  background: var(--primary);
}

.switch input:checked + .slider::before{
  transform: translateX(22px);
}

/* ===============================
   WRAPPER
=============================== */
.cart-wrapper{
  padding: 80px 0 120px;
}

/* ===============================
   PANELS
=============================== */
.cart-panel,
.billing-panel{
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0,0,0,.08);
}

/* ===============================
   CART ITEMS
=============================== */
#cartItemsContainer{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 0 14px 38px rgba(0,0,0,.06);
}

.cart-item-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  align-items: center;
  gap: 20px;
}

/* LEFT */
.cart-item h6{
  font-size: 17px;
  font-weight: 600;
}

.cart-item small{
  font-size: 14px;
  color: var(--muted);
}

/* QTY */
.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: #fff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.cart-qty button:hover{
  background: var(--primary);
  color: #fff;
}

.cart-qty span{
  width: 28px;
  text-align: center;
  font-weight: 600;
}

/* 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;
}

/* ===============================
   ADD USERS
=============================== */
.add-users-box{
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-users-box h6{
  font-size: 15px;
  font-weight: 600;
}

.add-users-box p{
  font-size: 14px;
  color: var(--muted);
}
  
/* ===============================
   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;
}

/* FOOTER BOTTOM LINE */
.site-footer::after{
  content: "";
  display: block;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* 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;
}

.cart-wrapper {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* -------------------------------
   SELECTED PLANS PANEL
--------------------------------- */
.cart-panel {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.cart-panel h4 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Plan item styling */
.cart-item {
  margin-bottom: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-item h6 {
  font-weight: 600;
}

.cart-qty {
  display: flex;
  align-items: center;
}

.cart-qty button {
  padding: 5px 10px;
  border-radius: 8px;
  background-color: #2563eb;
  color: white;
  border: none;
  margin: 0 10px;
  cursor: pointer;
}

.cart-qty span {
  font-size: 16px;
  font-weight: 600;
}

/* -------------------------------
   BILLING SUMMARY PANEL
--------------------------------- */
.billing-panel {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.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;
}

/* -------------------------------
   YEARLY BREAKDOWN
--------------------------------- */
.yearly-breakdown {
  margin-top: 16px;
  padding: 14px;
  background: #f3f4f6;
  border-radius: 12px;
}

.calc-text {
  font-size: 14px;
  color: #6b7280;
}

.save-text {
  font-size: 16px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 4px;
}

/* -------------------------------
   BUTTON AND CTA
--------------------------------- */
.checkout-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-1px);
}

/* -------------------------------
   TRUST LIST
--------------------------------- */
.trust-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.trust-list li {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}
