/* ===================================================================
   BLACK SAFFRON - COMPONENTS STYLING
   =================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-saffron);
  color: #0b0b0e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--saffron-main);
  border: 1px solid var(--border-gold);
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--saffron-main);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Badges & Chips */
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.14);
  color: var(--saffron-main);
  border: 1px solid var(--border-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-verified {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(212, 175, 55, 0.1));
  border: 1px solid var(--border-gold-bright);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Ecosystem Switcher Tabs */
.ecosystem-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(18, 18, 23, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-full);
  max-width: 820px;
  margin: 0 auto 50px auto;
  backdrop-filter: blur(16px);
}

.eco-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.eco-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.eco-tab-btn.active {
  background: var(--grad-saffron);
  color: #0b0b0e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.eco-tab-btn .tab-icon {
  font-size: 1.2rem;
}

/* Feature Cards */
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-saffron);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--saffron-main);
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.product-img-wrap {
  position: relative;
  height: 260px;
  background: #131318;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(11, 11, 14, 0.85);
  border: 1px solid var(--border-gold);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--saffron-main);
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.product-rating span {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-left: 4px;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.product-price-old {
  text-decoration: line-through;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-left: 6px;
  font-weight: 400;
}

/* Interactive ROI Calculator Styles */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

.calc-control-group {
  margin-bottom: 28px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.calc-val-pill {
  background: rgba(245, 158, 11, 0.15);
  color: var(--saffron-glow);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.calc-range {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #272732;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--saffron-main);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
  cursor: pointer;
  transition: transform 0.15s;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-tier-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calc-tier-btn {
  padding: 12px 14px;
  background: #15151c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.calc-tier-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--saffron-main);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.calc-results-card {
  background: linear-gradient(145deg, #16161f 0%, #0d0d12 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.calc-metric-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.calc-metric-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.calc-metric-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.calc-metric-number.highlight {
  color: var(--saffron-glow);
}

/* Software Simulator UI */
.software-sim-window {
  background: #0f0f14;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow-lg);
}

.sim-window-header {
  background: #17171e;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-mac-dots {
  display: flex;
  gap: 8px;
}

.sim-mac-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.sim-dot-red { background: #ff5f56; }
.sim-dot-yellow { background: #ffbd2e; }
.sim-dot-green { background: #27c93f; }

.sim-window-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-tabs-nav {
  display: flex;
  background: #121218;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  overflow-x: auto;
}

.sim-tab-item {
  padding: 14px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sim-tab-item:hover {
  color: var(--text-main);
}

.sim-tab-item.active {
  color: var(--saffron-main);
  border-bottom-color: var(--saffron-main);
  background: rgba(245, 158, 11, 0.05);
}

.sim-tab-content {
  padding: 24px;
  min-height: 480px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #13131a;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--saffron-main);
  color: #0b0b0e;
}

/* Slide-in Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #111116;
  border-left: 1px solid var(--border-gold);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: #1c1c24;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.cart-item-price {
  font-family: var(--font-mono);
  color: var(--saffron-glow);
  font-size: 0.9rem;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a22;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  border: 1px solid var(--border-subtle);
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  background: #0d0d12;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #171720;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 0.9rem;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
