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

:root {
  --primary-color: #1890ff;
  --primary-hover: #40a9ff;
  --text-primary: #3d3d3d;
  --text-secondary: #888;
  --text-muted: #6d6d6d;
  --text-disabled: #0000005c;
  --border-color: #efefef;
  --bg-gray: #0000000a;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  --radius-sm: 12px;
  --radius-full: 999px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5715;
  color: var(--text-primary);
}

/* Modal Container */
.modal-overlay {
  overflow-y: auto;
  padding-bottom: 40px;
}

.modal-content {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.modal-header {
  text-align: center;
  padding-top: 40px;
}

.modal-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Custom Tabs */
.custom-tabs {
  margin: 0 auto 30px;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: inline-flex;
  padding: 4px;
  white-space: nowrap;
}

.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-item {
  border-radius: var(--radius-full);
  color: var(--text-disabled);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 28px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

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

.tab-item.active {
  background-color: var(--white);
  outline: 1px solid #e7e7e7;
  color: var(--text-primary);
}

/* Subscription Toggle */
.subscription-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.discount-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #e6f4ff;
  color: var(--primary-color);
  border: 1px solid #91caff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* CSS Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-gray);
  transition: 0.3s;
  border-radius: 100px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Pricing Cards */
.pricing-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.card-name {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-price-wrapper {
  margin: 8px 0;
}

.price-per-day {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-main {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.card-action {
  margin: 14px 0;
}

.btn {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

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

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

.btn-link {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-link:hover {
  background: #f0f7ff;
}

.card-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-primary);
}

.check-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

/* Comparison Table Section */
.comparison-section {
  margin-top: 60px;
}

.comparison-header {
  text-align: center;
  margin-bottom: 20px;
}

.comparison-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.comparison-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.table-header {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  background: #fafafa;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

/* Enterprise table - 2 columns */
#comparison-table-enterprise .table-header,
#comparison-table-enterprise .table-row {
  grid-template-columns: 200px repeat(2, 1fr);
}

.table-header-cell {
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}

.table-header-cell:first-child {
  text-align: left;
}

.table-header-cell.disabled {
  color: var(--text-disabled);
  background: #f5f5f5;
}

.table-row {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}

.table-cell:first-child {
  text-align: left;
  font-weight: 500;
  background: #fafafa;
}

.table-cell-muted {
  color: var(--text-muted);
  font-size: 12px;
}

.subscribe-action {
  cursor: pointer;
  transition: 0.2s;
}

.subscribe-action:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-cards {
    flex-direction: column;
  }

  .pricing-card {
    min-width: 100%;
  }

  .table-header,
  .table-row {
    grid-template-columns: 120px repeat(3, 1fr);
    font-size: 12px;
  }

  .table-header-cell,
  .table-cell {
    padding: 10px 6px;
  }
}
