/* ===================================================================
   Subscription Components — Phase 3 & Phase 6
   Dùng cho: _SubscriptionBanner.cshtml, _WorkspaceSwitcher.cshtml,
             Index.cshtml, MySubscriptions.cshtml, Checkout.cshtml, Topup.cshtml
   =================================================================== */

/* ── Fonts & General ────────────────────────────────────────────── */
#sub-banner-container,
.sub-pricing-container,
.sub-my-container,
.sub-checkout-container,
.sub-topup-container {
  font-family: "Be Vietnam Pro", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Subscription Banner ─────────────────────────────────────────── */
#sub-banner-container {
  margin-bottom: 20px;
}

.sub-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 13.5px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.sub-banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.sub-banner-text {
  flex: 1;
  line-height: 1.5;
}

.sub-banner-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
  
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sub-banner-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sub-banner-btn-urgent {
  animation: subBannerPulse 2s infinite;
}

@keyframes subBannerPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}

.sub-banner-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.sub-banner-close:hover { opacity: 1; }

/* Banner types */
.sub-banner-trial {
  background: #f0f7ff;
  border-color: #bae6fd;
  color: #0369a1;
}
.sub-banner-trial .sub-banner-btn  { background: #0284c7; color: #fff; }
.sub-banner-trial .sub-banner-close { color: #0369a1; }

.sub-banner-warning {
  background: #fffbeb;
  border-color: #fef08a;
  color: #b45309;
}
.sub-banner-warning .sub-banner-btn  { background: #d97706; color: #fff; }
.sub-banner-warning .sub-banner-close { color: #b45309; }

.sub-banner-pastdue {
  background: #fff7ed;
  border-color: #ffedd5;
  color: #c2410c;
}
.sub-banner-pastdue .sub-banner-btn  { background: #ea580c; color: #fff; }
.sub-banner-pastdue .sub-banner-close { color: #c2410c; }

.sub-banner-danger,
.sub-banner-suspended {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #b91c1c;
}
.sub-banner-danger .sub-banner-btn,
.sub-banner-suspended .sub-banner-btn { background: #dc2626; color: #fff; }
.sub-banner-danger .sub-banner-close,
.sub-banner-suspended .sub-banner-close { color: #b91c1c; }


/* ── Workspace Switcher ──────────────────────────────────────────── */
.sub-switcher-dropdown .sub-switcher-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 10px 12px !important;
}

.sub-switcher-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.sub-switcher-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.sub-switcher-badge {
  font-size: 10px !important;
  padding: 2px 6px !important;
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 10px !important;
  font-weight: 600;
}

.sub-switcher-menu {
  min-width: 320px !important;
  padding: 6px 0 !important;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.sub-switcher-loading,
.sub-switcher-empty {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.sub-switcher-item > a,
.sub-switcher-viewall > a,
.sub-switcher-new > a {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px !important;
  font-size: 13px;
  transition: all 0.15s ease;
  color: #374151 !important;
  text-decoration: none !important;
}

.sub-switcher-item > a:hover,
.sub-switcher-viewall > a:hover,
.sub-switcher-new > a:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.sub-switcher-item--active {
  background: #eff6ff !important;
}

.sub-switcher-item--active > a {
  color: #2563eb !important;
  font-weight: 600;
}

.sub-ws-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.sub-ws-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  flex: 1;
}

.sub-ws-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #111827;
}

.sub-ws-name small {
  font-weight: 400;
  
  color: #6b7280;
}

.sub-ws-status {
  
  color: #4b5563;
}

.sub-switcher-viewall > a,
.sub-switcher-new > a {
  color: #3b82f6 !important;
  font-size: 13px;
  border-top: 1px solid #f3f4f6;
  font-weight: 500;
}

.sub-switcher-new > a {
  font-weight: 600;
  color: #10b981 !important;
}

.nav-quota-mini {
  display: block;
  
  color: #6b7280;
  padding: 2px 10px 6px 38px;
  line-height: 1.4;
}

.nav-quota-mini.is-warning { color: #d97706 !important; font-weight: 500; }
.nav-quota-mini.is-critical { color: #dc2626 !important; font-weight: 600; }


/* ── Phase 6: Pricing Table (Index) ─────────────────────────────── */
.sub-pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}

.sub-pricing-header {
  text-align: center;
  margin-bottom: 50px;
}

.sub-pricing-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.sub-pricing-header p {
  font-size: 16px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.sub-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .sub-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

.sub-pricing-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sub-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.sub-pricing-card.is-popular {
  border-color: #3b82f6;
  border-width: 2px;
}

.sub-pricing-card.is-current-pkg {
  border-color: #10b981;
  border-width: 2px;
  background: #fcfdfd;
}

.sub-pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.sub-pricing-current-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.sub-pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.sub-pricing-desc {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
  height: 40px;
  overflow: hidden;
}

.sub-pricing-price-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 28px;
}

.sub-pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}

.sub-pricing-period {
  font-size: 14px;
  color: #6b7280;
  margin-left: 4px;
  font-weight: 500;
}

.sub-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  flex: 1;
}

.sub-pricing-features li {
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.sub-pricing-features li i {
  font-size: 16px;
  flex-shrink: 0;
}

.sub-pricing-features li i.icon-checkmark-circle { color: #10b981; }
.sub-pricing-features li i.icon-blocked { color: #d1d5db; }
.sub-pricing-features li.is-disabled {
  color: #9ca3af;
  text-decoration: line-through;
}

.sub-pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.sub-pricing-btn-primary {
  background: #3b82f6;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}
.sub-pricing-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.sub-pricing-btn-secondary {
  background: #f3f4f6;
  color: #374151 !important;
  border: 1px solid #e5e7eb;
}
.sub-pricing-btn-secondary:hover {
  background: #e5e7eb;
  color: #111827 !important;
}

.sub-pricing-btn-disabled {
  background: #f3f4f6;
  color: #9ca3af !important;
  cursor: not-allowed;
  border: 1px solid #e5e7eb;
}


/* ── Phase 6: My Subscriptions ──────────────────────────────────── */
.sub-my-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 15px;
}

.sub-my-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sub-my-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

.sub-my-header p {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.sub-my-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-my-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.sub-my-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.sub-my-card-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.sub-my-card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.sub-my-card-header-top .sub-my-company-info {
  flex: 1;
  min-width: 0;
}

.sub-my-card-header .sub-my-card-actions {
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sub-my-card-header .sub-my-card-actions .actions-left,
.sub-my-card-header .sub-my-card-actions .actions-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sub-my-card-header .sub-my-card-actions .sub-btn.is-active-ws:disabled {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb !important;
  margin: 0;
  opacity: 1;
}

@media (max-width: 900px) {
  .sub-my-card-header-top {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-my-card-header .sub-my-card-actions {
    align-items: stretch;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
  }

  .sub-my-card-header .sub-my-card-actions .actions-left,
  .sub-my-card-header .sub-my-card-actions .actions-right {
    justify-content: flex-start;
  }
}

.sub-my-company-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-my-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
}

.sub-my-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-my-company-details h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px 0;
}

.sub-my-package-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-my-package-name {
  font-size: 13.5px;
  color: #4b5563;
  font-weight: 500;
}

.sub-my-card-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .sub-my-card-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.sub-my-quota-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sub-my-quota-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-my-quota-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.sub-my-quota-progress {
  height: 6px;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.sub-my-quota-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
  background: #3b82f6;
}

.sub-my-quota-fill.is-warning { background: #f59e0b; }
.sub-my-quota-fill.is-critical { background: #ef4444; }

/* Timeline */
.sub-my-timeline { display: flex; flex-direction: column; gap: 6px; }
.sub-my-timeline-dates { display: flex; justify-content: space-between;  color: #6b7280; }
.sub-my-timeline-remaining { font-weight: 700; color: #3b82f6; }
.sub-my-timeline-bar { height: 6px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }
.sub-my-timeline-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 6px; transition: width 0.4s ease; }
.sub-my-timeline-label {  color: #9ca3af; text-align: center; }

.sub-my-details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.sub-my-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.sub-my-detail-row .label { color: #6b7280; }
.sub-my-detail-row .value { font-weight: 600; color: #374151; }

.sub-my-card-actions {
  display: flex;
  gap: 8px;
}

/* MySubscriptions — gói chỗ ngồi trên header workspace */
.sub-my-workspace-seat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.sub-my-workspace-seat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sub-my-workspace-seat-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.sub-my-workspace-seat-plan {
  font-size: 14px;
  color: #334155;
}

.sub-my-workspace-seat-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.sub-my-workspace-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .sub-my-workspace-dates {
    grid-template-columns: 1fr;
  }
}

.sub-my-workspace-date-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-my-workspace-date-item .label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sub-my-workspace-date-item .value {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.sub-my-workspace-storage {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.sub-my-timeline-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

.sub-my-timeline-block-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sub-my-timeline-maintenance .sub-my-timeline-block-title {
  color: #b45309;
}

.sub-my-maintenance-fee {
  font-size: 14px;
  color: #78350f;
  margin-bottom: 10px;
}

.sub-my-maintenance-fee strong {
  font-size: 15px;
  color: #92400e;
}

.sub-my-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.sub-my-timeline-legend strong {
  color: #334155;
}

.sub-my-apps-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 4px;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}

/* MySubscriptions — danh sách ứng dụng theo Application */
.sub-my-services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0 16px;
}

.sub-my-service-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
}

.sub-my-service-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.sub-my-service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.sub-my-service-icon.icon-green { color: #10b981; background: #ecfdf5; border-color: #a7f3d0; }
.sub-my-service-icon.icon-blue { color: #3b82f6; background: #eff6ff; border-color: #bfdbfe; }
.sub-my-service-icon.icon-red { color: #ef4444; background: #fef2f2; border-color: #fecaca; }
.sub-my-service-icon.icon-orange { color: #f59e0b; background: #fffbeb; border-color: #fde68a; }

.sub-my-service-meta {
  flex: 1;
  min-width: 0;
}

.sub-my-service-meta h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.sub-my-service-package {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.sub-my-service-status {
  text-align: right;
  flex-shrink: 0;
}

.sub-my-service-body {
  margin-bottom: 12px;
}

.sub-my-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

@media (max-width: 600px) {
  .sub-my-service-head {
    flex-wrap: wrap;
  }
  .sub-my-service-status {
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }
}

/* Base button styles */
.sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.sub-btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  
}

.sub-btn-primary {
  background: #3b82f6;
  color: #ffffff !important;
}
.sub-btn-primary:hover { background: #2563eb; }

.sub-btn-secondary {
  background: #f3f4f6;
  color: #374151 !important;
  border: 1px solid #e5e7eb;
}
.sub-btn-secondary:hover { background: #e5e7eb; color: #111827 !important; }

.sub-btn-success {
  background: #10b981;
  color: #ffffff !important;
}
.sub-btn-success:hover { background: #059669; }

.sub-btn-danger {
  background: #ef4444;
  color: #ffffff !important;
}
.sub-btn-danger:hover { background: #dc2626; }

.sub-btn-outline {
  background: transparent;
  color: #3b82f6 !important;
  border: 1px solid #3b82f6;
}
.sub-btn-outline:hover { background: #eff6ff; }


/* ── Phase 6: Checkout (Order Summary) ──────────────────────────── */
.sub-checkout-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 15px;
}

.sub-checkout-container h1 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.sub-checkout-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .sub-checkout-layout {
    grid-template-columns: 1fr;
  }
}

.sub-checkout-main {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.sub-checkout-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.sub-checkout-package-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.sub-checkout-package-icon {
  width: 44px;
  height: 44px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #3b82f6;
  flex-shrink: 0;
}

.sub-checkout-package-details h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px 0;
}

.sub-checkout-package-details p {
  
  color: #6b7280;
  margin: 0;
}

.sub-wallet-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-wallet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

.sub-wallet-header i {
  font-size: 18px;
  color: #3b82f6;
}

.sub-wallet-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sub-wallet-balance-row .label {
  font-size: 13px;
  color: #6b7280;
}

.sub-wallet-balance-row .value {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.sub-wallet-alert {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  
  color: #991b1b;
  line-height: 1.4;
}

.sub-wallet-alert i {
  font-size: 16px;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.sub-checkout-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 24px;
}

.sub-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.sub-checkout-summary-row .label { color: #6b7280; }
.sub-checkout-summary-row .value { font-weight: 600; color: #374151; }
.sub-checkout-summary-row .value.discount { color: #10b981; }

.sub-checkout-summary-total {
  border-top: 1px dashed #e5e7eb;
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.sub-checkout-summary-total .label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.sub-checkout-summary-total .value {
  font-size: 22px;
  font-weight: 800;
  color: #3b82f6;
}


/* ── Phase 6: Topup Quota ────────────────────────────────────────── */
.sub-topup-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 30px 15px;
}

.sub-topup-container h1 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.sub-topup-container p.subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 30px;
}

.sub-topup-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sub-topup-option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 500px) {
  .sub-topup-option-grid {
    grid-template-columns: 1fr;
  }
}

.sub-topup-option {
  position: relative;
  cursor: pointer;
}

.sub-topup-option input {
  display: none;
}

.sub-topup-option-content {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.2s ease;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-topup-option-content .qty {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.sub-topup-option-content .label {
  
  color: #6b7280;
  font-weight: 500;
}

.sub-topup-option input:checked + .sub-topup-option-content {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.sub-topup-option input:checked + .sub-topup-option-content .qty {
  color: #2563eb;
}

.sub-topup-custom-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-topup-custom-input label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

.sub-topup-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sub-topup-input-wrapper input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  transition: all 0.15s ease;
}

.sub-topup-input-wrapper input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sub-topup-input-wrapper .suffix {
  position: absolute;
  right: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  pointer-events: none;
}

.sub-topup-calc-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

.sub-topup-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.sub-topup-calc-row:last-child {
  margin-bottom: 0;
}

.sub-topup-calc-row .label { color: #6b7280; }
.sub-topup-calc-row .value { font-weight: 600; color: #374151; }

.sub-topup-calc-total {
  border-top: 1px dashed #e5e7eb;
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sub-topup-calc-total .label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.sub-topup-calc-total .value {
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
}

/* ── Regist — panel shell + iSign pricing cards ───────────────── */
.regist-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 15px 36px;
}

.regist-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 15px 36px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
  .regist-panel {
    padding: 24px 18px 28px;
  }
}

.regist-shell .sub-pricing-header {
  margin-bottom: 24px;
  text-align: left;
}

.regist-shell .sub-pricing-header p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.regist-shell .sub-pricing-header h1 {
  font-size: 26px;
}

.regist-isign-intro {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.regist-isign-intro p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #334155;
}

.regist-isign-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .regist-isign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .regist-isign-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.regist-isign-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.regist-isign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.regist-isign-card.is-popular {
  border-color: #1a56db;
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.12);
}

.regist-isign-card.is-current {
  border-color: #10b981;
  background: #fcfffe;
}

.regist-isign-card.regist-card-selected {
  outline: 3px solid rgba(26, 86, 219, 0.18);
  outline-offset: 2px;
}

.regist-isign-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.regist-isign-badge-popular {
  background: #1a56db;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(26, 86, 219, 0.25);
}

.regist-isign-badge-current {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.regist-isign-plan-head {
  margin-bottom: 18px;
}

.regist-isign-plan-name {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.regist-isign-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.regist-isign-price {
  font-size: 30px;
  font-weight: 800;
  color: #1a56db;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.regist-isign-period {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.regist-isign-quota {
  font-size: 13px;
  color: #64748b;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.regist-isign-quota-add {
  font-size: 16px;
  font-weight: 700;
  color: #f97316;
}

.regist-isign-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
  text-align: left;
}

.regist-isign-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.regist-isign-features li i.fa-check {
  color: #16a34a;
  
  margin-top: 3px;
  flex-shrink: 0;
}

.regist-isign-features li i.fa-times {
  color: #cbd5e1;
  
  margin-top: 3px;
  flex-shrink: 0;
}

.regist-isign-features li.is-disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

.regist-isign-features li.is-highlight {
  font-weight: 700;
  color: #1e40af;
}

.regist-isign-card-footer {
  margin-top: auto;
}

.regist-isign-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.regist-isign-btn-primary {
  background: #1a56db;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.22);
}

.regist-isign-btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.regist-isign-btn-disabled {
  background: #f1f5f9;
  color: #94a3b8 !important;
  cursor: not-allowed;
  border: 1px solid #e2e8f0;
}

.regist-isign-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 12px;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.55;
}

.regist-isign-note i {
  color: #d97706;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Phí duy trì hàng năm — bảng ──────────────────────── */
.regist-maintenance-block {
  margin-top: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.regist-maintenance-title {
  background: #f8fafc;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.regist-maintenance-title i {
  color: #d97706;
  margin-right: 6px;
}

.regist-maintenance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.regist-maintenance-table thead tr {
  background: #f1f5f9;
}

.regist-maintenance-table th {
  padding: 9px 16px;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid #e2e8f0;
}

.regist-maintenance-table td {
  padding: 11px 16px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.regist-maintenance-table tbody tr:last-child td {
  border-bottom: none;
}

.regist-maintenance-free td {
  color: #15803d;
}

.regist-maintenance-badge-free {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
}

.regist-maintenance-paid td:nth-child(2) strong {
  color: #b45309;
  font-size: 14px;
}

/* Storage upgrade — pricing cards */
.storage-upgrade-page .storage-upgrade-plans {
  padding-top: 14px;
}

.storage-upgrade-plan-card {
  position: relative;
  width: 100%;
}

.storage-upgrade-plan-card.is-recommended {
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.12);
}

.storage-upgrade-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: #0d6efd;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}
