/* ==========================================================================
   MARMELO WORKSPACE · OFFICIAL PRICING CALCULATOR STYLES
   Exact reproduction of contas.marmelo.tech calculator design system
   ========================================================================== */

:root {
  --brand-yellow: #FFC01E;
  --brand-gold: #E6A700;
  --brand-light: #FFE382;
  --brand-gradient: linear-gradient(135deg, #FFC01E 0%, #FFD666 50%, #E6A700 100%);
  --brand-glow: rgba(255, 192, 30, 0.25);
  --accent-green: #10B981;
  --accent-cyan: #06B6D4;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --card-bg-calc: rgba(14, 20, 34, 0.85);
  --card-border-calc: rgba(255, 255, 255, 0.08);
}

/* Modal Dialog Sizing for Calculator */
.modal-dialog-calculator {
  max-width: 1080px !important;
  width: 95% !important;
  padding: 32px 36px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
}

.modal-calc-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.2rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 16px;
}

@media (max-width: 960px) {
  .modal-calc-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Mode Tabs */
.tab-pills {
  display: flex;
  background: rgba(6, 8, 14, 0.7);
  border: 1px solid var(--card-border-calc);
  border-radius: 100px;
  padding: 0.35rem;
  gap: 0.35rem;
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #FFFFFF;
}

.tab-btn.active {
  background: var(--brand-gradient);
  color: #05070B;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--brand-glow);
}

/* Slider Controls */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F8FAFC;
}

.slider-value-display {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: #182035;
  outline: none;
  transition: all 0.2s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-yellow);
  cursor: pointer;
  box-shadow: 0 0 14px var(--brand-glow);
  transition: transform 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Feature Checkboxes / Switches */
.features-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.toggle-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.addon-toggle-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.addon-price-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-yellow);
}

.addon-price-tag.free {
  color: var(--accent-green);
}

.addon-price-tag:empty {
  display: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  transition: .25s ease;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
}

input:checked + .slider-round {
  background: var(--brand-gradient);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
  background-color: #05070B;
}

/* Calculator Summary Card */
.calc-summary {
  background: rgba(8, 12, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.calc-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

.calc-billing-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.calc-billing-toggle button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-billing-toggle button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 700;
}

.calc-save-tag {
  color: var(--accent-green);
  font-size: 0.76rem;
  font-weight: 800;
  margin-left: 3px;
}

.calc-save-tag:empty {
  display: none;
}

.price-box {
  margin: 1rem 0 1.5rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.currency-sym {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F8FAFC;
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-yearly-note {
  font-size: 0.82rem;
  color: var(--accent-green);
  margin-top: 0.4rem;
  font-weight: 600;
}

.summary-breakdown {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breakdown-row strong {
  color: #F8FAFC;
}

.breakdown-row.discount {
  color: var(--accent-green);
}

.summary-cta-wrap {
  margin-top: auto;
}

.btn-calc-cta {
  width: 100%;
  padding: 0.95rem 1.4rem;
  background: var(--brand-gradient);
  color: #05070B;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px var(--brand-glow);
  transition: all 0.2s ease;
}

.btn-calc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 192, 30, 0.4);
}

/* Free Base Card in Calculator */
.free-base-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(14, 20, 34, 0.6) 60%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 1.2rem;
}

.free-base-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.free-base-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.free-base-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8FAFC;
}

.free-base-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.free-base-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.free-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.free-spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Storage & Mind Chips */
.storage-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
}

.mind-chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.storage-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  color: #F8FAFC;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  transition: all 0.2s ease;
}

.storage-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.storage-chip[aria-pressed="true"],
.storage-chip.active {
  background: rgba(255, 192, 30, 0.12);
  border-color: var(--brand-yellow);
  box-shadow: 0 0 12px var(--brand-glow);
}

.storage-chip[aria-pressed="true"] .addon-price-tag,
.storage-chip.active .addon-price-tag {
  color: var(--brand-yellow);
  font-weight: 700;
}

/* Stepper Component */
.calc-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-label-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
  color: #F8FAFC;
  font-size: 0.92rem;
  font-weight: 600;
}

.calc-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.calc-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.calc-stepper button {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.calc-stepper button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.calc-stepper button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calc-stepper input {
  width: 52px;
  height: 34px;
  text-align: center;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Interests Grid */
.calc-interests {
  margin: 0.8rem 0 1.2rem;
}

.calc-interests-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #F8FAFC;
}

.calc-interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.calc-interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-interest-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.calc-interest-chip[aria-pressed="true"] {
  background: rgba(255, 192, 30, 0.12);
  border-color: var(--brand-yellow);
  color: #FFFFFF;
}

.calc-soon-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.calc-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 1.2rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.calc-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 192, 30, 0.08);
  border: 1px solid rgba(255, 192, 30, 0.25);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--brand-light);
  margin-bottom: 0.8rem;
}

.corporate-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-top: 1.2rem;
  font-size: 0.85rem;
}

.btn-link-gold {
  background: none;
  border: none;
  color: var(--brand-yellow);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Confirmation Dialog */
.upgrade-confirm-dialog {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: inherit;
  animation: fadeIn 0.25s ease;
}

.upgrade-confirm-dialog[hidden] {
  display: none !important;
}

.confirm-dialog-card {
  max-width: 520px;
  width: 100%;
  background: #0D1424;
  border: 1px solid rgba(255, 192, 30, 0.4);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confirm-dialog-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.confirm-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.confirm-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #05070B;
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.confirm-plan-summary {
  background: rgba(255, 192, 30, 0.06);
  border: 1px solid rgba(255, 192, 30, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #F8FAFC;
}

.confirm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.btn-confirm-submit {
  flex: 1.6;
  padding: 12px 16px;
  background: var(--brand-gradient);
  color: #05070B;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--brand-glow);
  transition: all 0.2s ease;
}

.btn-confirm-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 192, 30, 0.4);
}
