:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --bg-main: #0b0f19;
  --bg-card: #151d2c;
  --bg-card-alt: #1a2436;
  --bg-card-header: #131b2a;
  --bg-subtle: #243044;
  --border-color: #26354a;
  --border-focus: #38bdf8;
  --border-accent: #0ea5e9;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --accent-green: #10b981;
  --accent-green-light: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  --accent-purple: #8b5cf6;
  --accent-blue: #38bdf8;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.45), 0 4px 12px -2px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.3);
  --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header */
.app-header {
  background: linear-gradient(180deg, #131d2e 0%, #0b0f19 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-toggle-group {
  display: flex;
  background-color: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.curr-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curr-btn.active {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-pill.standard {
  background-color: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-pill.tax-badge {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: #080c14;
  padding: 0.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: #fff;
  background-color: var(--bg-card);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--border-focus);
}

/* Wide Container (Full Screen Responsive Workstation) */
.main-container {
  width: 98%;
  max-width: 1860px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Full-Width 2-Column Workstation Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(560px, 1.25fr);
  gap: 1.5rem;
  align-items: start;
}

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

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.card-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card-header);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
}

.card-title span.step-num {
  background: var(--primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.card-body {
  padding: 1.25rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background-color: #0b111c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background-color: #0f172a;
}

textarea.form-control {
  min-height: 75px;
  resize: vertical;
}

/* Section Header Bar */
.section-subtitle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-xs);
  margin: 1.2rem 0 0.85rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.cat-pill {
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-pill:hover {
  background-color: #1e293b;
  border-color: var(--border-focus);
  color: #fff;
}

.cat-pill.active {
  background-color: var(--primary);
  border-color: var(--border-focus);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Cantech Cloud Server Selected Plan Card (Matches Screenshot) */
.server-plan-card {
  background: #0d131f;
  border: 2px solid #233247;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.75rem;
  position: relative;
  transition: all 0.2s;
}

.server-plan-card:hover {
  border-color: #38bdf8;
  box-shadow: var(--shadow-glow);
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.plan-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.popular-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.plan-specs-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* Interactive Storage Stepper Matching User Screenshot */
.plan-config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #090e17;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.storage-stepper-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.stepper-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.stepper-box {
  display: inline-flex;
  align-items: center;
  background: #151f30;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.stepper-btn {
  background: #1b263b;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--primary);
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-input {
  width: 55px;
  height: 32px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
}

.stepper-input:focus {
  outline: none;
  background: rgba(56, 189, 248, 0.15);
}

.storage-rate-hint {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
}

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

.plan-price-amount {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.plan-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cloud Backup Options Cards */
.backup-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.6rem;
}

@media (max-width: 640px) {
  .backup-options-grid {
    grid-template-columns: 1fr;
  }
}

.backup-option-card {
  background: #0d131f;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.backup-option-card:hover {
  border-color: #38bdf8;
}

.backup-option-card.selected {
  border: 2px solid #0284c7;
  background: #111a2c;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

.backup-opt-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.backup-opt-rate {
  font-size: 1.05rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.3rem;
}

.backup-opt-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Security Add-ons Cards */
.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.addon-card {
  background: #0e1523;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.addon-card:hover {
  border-color: #38bdf8;
}

.addon-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.addon-card-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #10b981;
  margin: 0.25rem 0;
}

.addon-card-setup {
  font-size: 0.72rem;
  color: #f59e0b;
  font-weight: 600;
}

/* Pricing Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.pricing-table th {
  background-color: #0b111c;
  color: var(--text-muted);
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.pricing-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-input {
  background: #090e17;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  font-family: inherit;
  width: 100%;
}

.table-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn-remove-row {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-remove-row:hover {
  opacity: 1;
}

/* Financial Summary & GST Calculator Section */
.gst-calc-card {
  background: linear-gradient(180deg, #101826 0%, #0c121e 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.gst-mode-tabs {
  display: flex;
  background: #080c14;
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 0.85rem;
}

.gst-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.gst-mode-btn.active {
  background: var(--primary);
  color: #fff;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.totals-row.grand-total {
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.totals-row.grand-total .amount {
  color: #38bdf8;
  font-size: 1.35rem;
}

.inclusive-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-success {
  background: #10b981;
  color: #fff;
}

.btn-success:hover {
  background: #059669;
  box-shadow: var(--shadow-glow-green);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #334155;
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .btn-group {
    flex-direction: column;
  }
}

/* Customer BOM Recommendation Matrix Table */
.matrix-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.matrix-header {
  padding: 1rem 1.25rem;
  background: #141f32;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge-cheap {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-best {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.matrix-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.matrix-compare-table th {
  background: #090e17;
  color: var(--text-muted);
  padding: 0.75rem 0.85rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.matrix-compare-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.upload-dropzone {
  border: 2px dashed #334155;
  border-radius: var(--radius-md);
  padding: 1.85rem 1.5rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.dropzone-icon {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  transition: transform 0.2s;
}

.upload-dropzone:hover .dropzone-icon {
  transform: scale(1.1);
}

.dropzone-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: dz-spin 0.8s linear infinite;
  margin-bottom: 0.85rem;
}

@keyframes dz-spin {
  to { transform: rotate(360deg); }
}

.dropzone-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.dropzone-error-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: #fff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.toast-notice.show {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.code-inline {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 0.8rem;
  color: #38bdf8;
}

/* ==========================================================================
   Multi-Tenure Commitment & Discount Calibration Styles
   ========================================================================== */
.multi-tenure-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.tenure-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tenure-pill-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tenure-pill-btn:hover {
  background: var(--bg-subtle);
  color: #fff;
  border-color: var(--primary);
}

.tenure-pill-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.discount-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.discount-chips-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.discount-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.discount-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #fff;
}

.discount-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

.tenure-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .tenure-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tenure-cards-grid {
    grid-template-columns: 1fr;
  }
}

.tenure-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tenure-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4);
}

.tenure-card.active {
  border-color: #38bdf8;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.12) 0%, var(--bg-card-alt) 100%);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.tenure-card.recommended {
  border-color: #0284c7;
}

.tenure-card.recommended.active {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.tenure-card.enterprise {
  border-color: #059669;
}

.tenure-card.enterprise.active {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.tenure-card-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tenure-card-badge.badge-blue {
  background: #0284c7;
  color: #fff;
  border: 1px solid #38bdf8;
}

.tenure-card-badge.badge-green {
  background: #059669;
  color: #fff;
  border: 1px solid #10b981;
}

.tenure-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tenure-card-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.tenure-card-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.tenure-card-price-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tenure-card-contract {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.tenure-card-savings {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

/* ==========================================
   Add / Replace Service Modal & Calibration Styles
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0d1527;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 25px rgba(2, 132, 199, 0.2);
  width: 94%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111b33;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #111b33;
}

.modal-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.modal-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal-tab-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.cal-role-input {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  transition: all 0.15s ease;
}

.cal-role-input:focus,
.cal-role-input:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

.cal-desc-input {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  transition: all 0.15s ease;
}

.cal-desc-input:focus,
.cal-desc-input:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.btn-remove-cal-row {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-remove-cal-row:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: scale(1.08);
}


