@import url('https://fonts.googleapis.com/css2?family=Vazir:wght@300;400;500;600;700&display=swap');

* {
  font-family: 'Vazir', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Container */
.shop-container {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: #fff;
}

/* Header Section */
.header-section {
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
}

/* Main Content */
.main-content {
  padding: 20px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .icon {
  font-size: 32px;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 40px;
}

/* Package Card */
.package-card {
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

.package-card.featured {
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.95) 0%, rgba(37, 99, 235, 0.1) 100%);
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

.discount-badge.premium {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Package Header */
.package-header {
  margin-bottom: 20px;
}

.package-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.package-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.package-badge.recommended {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

/* Package Body */
.package-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.package-icon {
  font-size: 48px;
  text-align: center;
}

.package-details {
  flex: 1;
}

.package-quantity {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 15px;
}

.package-quantity .number {
  font-size: 36px;
  font-weight: 700;
  color: #60a5fa;
}

.package-quantity .text {
  font-size: 18px;
  color: #9ca3af;
}

/* Package Price */
.package-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.package-price .original-price {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 18px;
}

.package-price .price {
  font-size: 28px;
  font-weight: 700;
  color: #10b981;
}

.package-price .currency {
  font-size: 16px;
  color: #9ca3af;
}

/* Package Features */
.package-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.package-features .feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d5db;
  font-size: 14px;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.add-to-cart-btn.featured-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.add-to-cart-btn.featured-btn:hover {
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* Cart Section */
.cart-section {
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  position: sticky;
  top: 100px;
  margin-bottom: 30px;
}

.cart-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart Items */
.cart-items {
  min-height: 150px;
  margin-bottom: 20px;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.empty-cart .empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-cart p {
  font-size: 16px;
  margin-bottom: 8px;
  color: #9ca3af;
}

.empty-cart span {
  font-size: 14px;
  color: #6b7280;
}

/* Cart Item */
.cart-item {
  background: rgba(55, 65, 81, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-item-title {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

.cart-item-remove {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

.cart-item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: rgba(59, 130, 246, 0.3);
}

.quantity-value {
  color: #fff;
  font-weight: 500;
  min-width: 30px;
  text-align: center;
}

.cart-item-price {
  color: #10b981;
  font-weight: 600;
  font-size: 16px;
}

/* Discount Section */
.discount-section {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.discount-label {
  display: block;
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}

.discount-input-group {
  display: flex;
  gap: 10px;
}

.discount-input {
  flex: 1;
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.discount-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(55, 65, 81, 0.7);
}

.apply-discount-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.apply-discount-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.discount-message {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.discount-message.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: block;
}

.discount-message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

/* Cart Summary */
.cart-summary {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #d1d5db;
  font-size: 15px;
}

.summary-row.total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.discount-amount {
  color: #ef4444;
}

/* Checkout Button */
.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* Features Section */
.features-section {
  background: rgba(30, 30, 46, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
}

.features-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(55, 65, 81, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(55, 65, 81, 0.5);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: #9ca3af;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.modal-icon.success {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.modal-text {
  color: #9ca3af;
  font-size: 16px;
  margin-bottom: 25px;
}

.modal-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* Payment Modal */
.payment-modal {
  max-width: 500px;
  padding: 0;
  overflow: hidden;
}

.modal-header {
  background: rgba(37, 99, 235, 0.1);
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header .modal-title {
  margin: 0;
  font-size: 20px;
}

.close-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

.payment-form {
  padding: 25px;
}

.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-group label {
  display: block;
  color: #d1d5db;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  background: rgba(55, 65, 81, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(55, 65, 81, 0.7);
}

.payment-summary {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  text-align: right;
}

.payment-summary h4 {
  color: #60a5fa;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}

#orderSummary {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.8;
}

.submit-payment-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.submit-payment-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-section {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
  }
  
  .package-title {
    font-size: 18px;
  }
  
  .package-quantity .number {
    font-size: 28px;
  }
  
  .package-price .price {
    font-size: 24px;
  }
  
  .cart-section {
    padding: 20px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .payment-modal {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .header-section h1 {
    font-size: 18px;
  }
  
  .back-btn span {
    display: none;
  }
  
  .package-card {
    padding: 20px;
  }
  
  .discount-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .features-section {
    padding: 20px;
  }
  
  .feature-item {
    padding: 12px;
  }
  
  .feature-icon {
    font-size: 24px;
  }
}
/* ========== Direct Sale (Radio Plans) ========== */
:root{
  --primary:#2563eb;
  --primary-700:#1d4ed8;
  --success:#10b981;
  --danger:#ef4444;
  --text-900:#0f172a;
  --text-700:#334155;
  --muted:#6b7280;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --ring:rgba(37,99,235,.15);
}

/* Wrapper to center the plan card */
.plan-wrapper{
  max-width: 760px;
  margin: 0 auto;
}

/* White card like screenshot */
.plan-card{
  background: var(--surface);
  color: var(--text-900);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid #eef2f7;
  box-shadow: 0 20px 40px rgba(2,6,23,.08);
}

/* Segmented control (tabs) */
.segmented{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface-2);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 18px;
}
.segmented-btn{
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-700);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.segmented-btn.active{
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 16px var(--ring);
  border: 1px solid #e5e7eb;
}
.segmented-btn:hover{ color: var(--primary-700); }

/* Plan list */
.plan-list{
  list-style: none;
  margin: 12px 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e9edf4;
  background: #fff;
  transition: all .18s ease;
  cursor: pointer;
}
.plan-row input[type="radio"]{
  width: 18px; height: 18px;
  accent-color: var(--primary);
}
.plan-row:hover{
  transform: translateY(-1px);
  border-color: #dbe5ff;
  box-shadow: 0 10px 24px var(--ring);
}
.plan-row.selected{
  border-color: var(--primary);
  box-shadow: 0 10px 26px var(--ring);
}
.plan-row-text{ display:flex; flex-direction:column; gap:4px; }
.plan-row-title{ font-weight:800; color:var(--text-900); font-size:16px; }
.plan-row-sub{ color:#64748b; font-size:13px; }

/* Price pill (beige) */
.price-pill{
  background: #f4e7cf;
  color: #7a5b26;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid #efdcb8;
  min-width: 130px;
  text-align: center;
}

/* Notice */
.notice-danger{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #b91c1c;
}
.notice-icon{
  width: 36px; height: 36px;
  background: #fecdd3;
  color: #991b1b;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 900;
}

/* Actions */
.plan-actions{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 16px;
}
.btn-primary,.btn-secondary{
  appearance:none;border:0;border-radius:12px;padding:12px 18px;
  font-weight:800; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  transition: all .18s ease; font-size:15px;
}
.btn-primary{
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color:#fff; box-shadow:0 14px 32px var(--ring);
}
.btn-primary[disabled]{opacity:.5; cursor:not-allowed; box-shadow:none;}
.btn-primary:hover{ transform: translateY(-2px); }
.btn-secondary{
  background: #eef2f7; color:#334155; border:1px solid #e5e7eb;
}
.btn-secondary:hover{ background:#e9eef6; }

/* Dark page compatibility: ensure text inside white card is dark */
.plan-card .modal-title,
.plan-card .payment-summary h4,
.plan-card .payment-summary,
.plan-card label,
.plan-card input,
.plan-card span,
.plan-card div{ color: inherit; }

/* Modal keeps previous styling; no change */

/* Responsive */
@media (max-width:640px){
  .plan-actions{ grid-template-columns: 1fr; }
  .price-pill{ min-width: unset; }
}
/* ===== UI Enhancements (polish) ===== */
.plan-wrapper{max-width:720px}
.segmented{display:flex;justify-content:center;gap:8px;background:var(--surface-2);padding:6px;border-radius:12px;border:1px solid #e5e7eb;margin-bottom:18px}
.segmented-btn{min-width:180px}
.plan-card{border-radius:18px;padding:22px;border:1px solid #e9edf4;background:#fff;box-shadow:0 22px 44px rgba(2,6,23,.08)}
.plan-row{border:1.5px solid #e8eef7}
.plan-row:hover{transform:translateY(-1px);border-color:#cfe0ff;box-shadow:0 10px 24px var(--ring)}
.plan-row.selected{border-color:var(--primary);box-shadow:0 0 0 4px var(--ring)}
.plan-row:focus-within{outline:0;box-shadow:0 0 0 4px var(--ring)}
.plan-row input[type="radio"]{width:20px;height:20px;accent-color:var(--primary)}
.price-pill{background:#f7e7c7;border-color:#f1ddb6;color:#7b5b1f}
.btn-primary{border:1px solid rgba(37,99,235,.4)}
.btn-secondary{background:#f3f6fb}
.notice-danger{border-radius:14px}
/* ===== Brand Blue Theme Overrides (match site) — appended at end to override previous rules ===== */
:root{
  --brand-50:#eef6ff;
  --brand-100:#dbeafe;
  --brand-200:#bfdbfe;
  --brand-300:#93c5fd;
  --brand-600:#2563eb;
  --brand-700:#1d4ed8;
  --brand-800:#1e40af;
}

/* Page background → آبی روشن گرادیانی */
.shop-container{
  background: linear-gradient(180deg, var(--brand-50) 0%, #f7faff 100%) !important;
  color:#0f172a;
}

/* Header → نیمه شفاف با گرادیان آبی */
.header-section{
  background: linear-gradient(135deg, rgba(29,78,216,.85) 0%, rgba(37,99,235,.85) 100%) !important;
  border-bottom: 0;
}

/* کارت اصلی → سطح آبی خیلی روشن (جایگزین سفید) */
.plan-card{
  background:#f3f8ff !important;
  border:1px solid #dbe7ff !important;
  box-shadow: 0 24px 50px rgba(37,99,235,.12) !important;
}

/* سگمنت کنترل هماهنگ با آبی */
.segmented{
  background:#eaf1ff !important;
  border-color:#dbe7ff !important;
}
.segmented-btn.active{
  color:var(--brand-700) !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.18) !important;
  border:1px solid #dbe7ff !important;
}

/* ردیف‌های پلن */
.plan-row{
  background:#ffffff !important;
  border-color:#e2eaff !important;
}
.plan-row:hover{
  border-color:#cfe0ff !important;
  box-shadow:0 12px 26px rgba(37,99,235,.14) !important;
}
.plan-row.selected{
  border-color:var(--brand-700) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.14) !important;
}

/* تگ قیمت → آبی روشن بجای بیژ */
.price-pill{
  background:#e7efff !important;
  border:1px solid #d6e4ff !important;
  color:#1e3a8a !important;
}

/* دکمه‌ها */
.btn-primary{
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%) !important;
  box-shadow: 0 16px 36px rgba(37,99,235,.28) !important;
  border:1px solid rgba(29,78,216,.35) !important;
}
.btn-secondary{
  background:#edf2ff !important;
  color:#1e3a8a !important;
  border:1px solid #dbe7ff !important;
}

/* مودال پرداخت → روشن و هماهنگ با تم آبی */
.modal-content{
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%) !important;
  border:1px solid #e3ecff !important;
}
.modal-header{
  background: rgba(37,99,235,.09) !important;
  border-bottom:1px solid #e3ecff !important;
}
.payment-summary{
  background: rgba(37,99,235,.08) !important;
  border-color: rgba(37,99,235,.22) !important;
}
/* ===== Heavy Dark Theme Overrides (match index.html) — FINAL ===== */
.shop-container{
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%) !important;
  color:#fff !important;
}

/* Glass header like index */
.header-section{
  background: rgba(30,30,46,0.95) !important;
  backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Main card (glassy, dark) */
.plan-card{
  background: rgba(30,30,46,0.95) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color:#fff !important;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}

/* Segmented (tabs) */
.segmented{
  background: rgba(17,24,39,0.6) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.segmented-btn{ color:#cbd5e1 !important; }
.segmented-btn.active{
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color:#fff !important;
  border:1px solid rgba(59,130,246,0.35) !important;
  box-shadow: 0 10px 24px rgba(37,99,235,0.35) !important;
}

/* Plan rows (glassy dark) */
.plan-row{
  background: rgba(55,65,81,0.35) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color:#e5e7eb !important;
}
.plan-row:hover{
  border-color: rgba(59,130,246,0.35) !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.35) !important;
}
.plan-row.selected{
  border-color: rgba(59,130,246,0.8) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25) !important;
}
.plan-row-title{ color:#ffffff !important; }
.plan-row-sub{ color:#9ca3af !important; }

/* Price pill → blue glass (no beige) */
.price-pill{
  background: rgba(59,130,246,0.18) !important;
  border: 1px solid rgba(59,130,246,0.35) !important;
  color:#93c5fd !important;
  font-weight:800 !important;
}

/* Buttons */
.btn-primary{
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid rgba(59,130,246,0.35) !important;
  box-shadow: 0 15px 35px rgba(37,99,235,0.45) !important;
}
.btn-secondary{
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,0.12) !important;
}

/* Modal (dark glass) */
.modal-content{
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.modal-header{
  background: rgba(37,99,235,0.15) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.payment-summary{
  background: rgba(37,99,235,0.10) !important;
  border-color: rgba(59,130,246,0.25) !important;
}

/* Keep all text inside card bright */
.plan-card .modal-title,
.plan-card .payment-summary h4,
.plan-card .payment-summary,
.plan-card label,
.plan-card input,
.plan-card span,
.plan-card div{ color: inherit !important; }
/* ===== Fix: Dark Danger Notice + Discounted Price Pill ===== */
.notice-danger{
  background: rgba(239,68,68,.12) !important;
  border: 1px solid rgba(239,68,68,.35) !important;
  color: #fecaca !important;
}
.notice-icon{
  background: rgba(239,68,68,.25) !important;
  color:#fca5a5 !important;
  border: 1px solid rgba(239,68,68,.35) !important;
}

/* Discounted price styling inside the blue pill */
.price-pill.has-discount{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
  background: rgba(59,130,246,0.18) !important;
  border: 1px solid rgba(59,130,246,0.35) !important;
  border-radius: 999px !important;
}
.price-pill .orig-price{
  text-decoration: line-through;
  color:#9ca3af;
  font-weight:700;
  font-size: 12px;
  opacity:.9;
}
.price-pill .final-price{
  color:#93c5fd;
  font-weight:900;
  font-size: 14px;
}
.price-pill .off-badge{
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color:#fff;
  border:1px solid rgba(220,38,38,.45);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}