/* TCM Home Membership & Paywall Styles */
/* v=20260814 */

/* Paywall Container */
.tcm-paywall {
  position: relative;
  width: 100%;
}

.tcm-paywall-overlay {
  background: linear-gradient(135deg, var(--tcm-surface-2) 0%, var(--tcm-surface) 100%);
  border: 1px solid var(--tcm-border);
  border-radius: var(--tcm-radius-lg);
  padding: 48px 32px;
  margin: 24px 0;
  text-align: center;
  box-shadow: var(--tcm-shadow-2);
}

.tcm-paywall-card {
  max-width: 520px;
  margin: 0 auto;
}

/* Paywall Icon */
.tcm-paywall-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* Paywall Title & Description */
.tcm-paywall-title {
  font-family: var(--tcm-font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--tcm-foreground);
  margin-bottom: 12px;
  line-height: 1.2;
}

.tcm-paywall-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--tcm-foreground-secondary);
  margin-bottom: 28px;
}

/* Paywall Features List */
.tcm-paywall-features {
  text-align: left;
  max-width: 440px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tcm-paywall-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--tcm-foreground-secondary);
  line-height: 1.5;
}

.tcm-paywall-check {
  color: var(--tcm-state-success);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Paywall Plans */
.tcm-paywall-plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.tcm-paywall-btn-primary,
.tcm-paywall-btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 24px;
  border-radius: var(--tcm-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--tcm-font-sans);
  text-decoration: none;
}

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

.tcm-paywall-btn-primary:hover {
  background: var(--tcm-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(95, 125, 98, 0.3);
}

.tcm-paywall-btn-secondary {
  background: var(--tcm-surface);
  color: var(--tcm-foreground);
  border: 2px solid var(--tcm-primary);
}

.tcm-paywall-btn-secondary:hover {
  background: var(--tcm-primary-50);
  transform: translateY(-1px);
}

.tcm-paywall-btn-price {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.tcm-paywall-btn-period {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
}

.tcm-paywall-btn-label {
  font-size: 15px;
  font-weight: 600;
}

.tcm-paywall-btn-sub {
  font-size: 12px;
  opacity: 0.8;
}

/* Paywall Divider */
.tcm-paywall-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tcm-foreground-tertiary);
  font-size: 13px;
}

.tcm-paywall-divider::before,
.tcm-paywall-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tcm-border);
}

/* Paywall Footer */
.tcm-paywall-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tcm-foreground-tertiary);
}

.tcm-paywall-link {
  color: var(--tcm-primary);
  text-decoration: none;
  cursor: pointer;
}

.tcm-paywall-link:hover {
  text-decoration: underline;
}

.tcm-paywall-dot {
  opacity: 0.5;
}

.tcm-paywall-secure {
  opacity: 0.7;
}

/* Locked Content (blur overlay) */
.tcm-locked-content {
  position: relative;
  overflow: hidden;
}

.tcm-locked-content > *:not(.tcm-blur-overlay) {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.tcm-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(2px);
  z-index: 10;
}

.tcm-blur-content {
  text-align: center;
  padding: 24px;
}

.tcm-blur-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.tcm-blur-content p {
  font-size: 14px;
  color: var(--tcm-foreground-secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

.tcm-blur-btn {
  background: var(--tcm-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--tcm-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tcm-blur-btn:hover {
  background: var(--tcm-primary-600);
}

/* Restore Modal */
.tcm-restore-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.tcm-restore-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(42, 41, 39, 0.5);
  backdrop-filter: blur(4px);
}

.tcm-restore-card {
  background: var(--tcm-surface);
  border-radius: var(--tcm-radius-lg);
  padding: 40px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--tcm-shadow-3);
}

.tcm-restore-card h3 {
  font-family: var(--tcm-font-serif);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--tcm-foreground);
}

.tcm-restore-card p {
  font-size: 14px;
  color: var(--tcm-foreground-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.tcm-restore-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--tcm-border);
  border-radius: var(--tcm-radius-md);
  font-size: 15px;
  margin-bottom: 16px;
  font-family: var(--tcm-font-sans);
  background: var(--tcm-surface);
  color: var(--tcm-foreground);
  box-sizing: border-box;
}

.tcm-restore-input:focus {
  outline: none;
  border-color: var(--tcm-primary);
  box-shadow: 0 0 0 3px var(--tcm-primary-100);
}

.tcm-restore-btn {
  width: 100%;
  padding: 14px;
  background: var(--tcm-primary);
  color: #fff;
  border: none;
  border-radius: var(--tcm-radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tcm-restore-btn:hover {
  background: var(--tcm-primary-600);
}

.tcm-restore-note {
  font-size: 12px !important;
  color: var(--tcm-foreground-tertiary);
  margin-top: 16px !important;
}

/* Membership Badge */
.tcm-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tcm-primary-100);
  color: var(--tcm-primary-600);
  padding: 4px 12px;
  border-radius: var(--tcm-radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.tcm-member-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--tcm-state-success);
  border-radius: 50%;
}

/* Pricing Page Specific */
.tcm-pricing-hero {
  background: linear-gradient(135deg, var(--tcm-primary-50) 0%, var(--tcm-surface-2) 100%);
  padding: 64px 24px;
  text-align: center;
}

.tcm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .tcm-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.tcm-pricing-card {
  background: var(--tcm-surface);
  border: 1px solid var(--tcm-border);
  border-radius: var(--tcm-radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.tcm-pricing-card:hover {
  box-shadow: var(--tcm-shadow-2);
  transform: translateY(-4px);
}

.tcm-pricing-card.featured {
  border-color: var(--tcm-primary);
  border-width: 2px;
  position: relative;
}

.tcm-pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tcm-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--tcm-radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tcm-pricing-card-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tcm-primary);
  margin-bottom: 8px;
}

.tcm-pricing-card-price {
  font-family: var(--tcm-font-serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--tcm-foreground);
  margin-bottom: 4px;
}

.tcm-pricing-card-period {
  font-size: 14px;
  color: var(--tcm-foreground-tertiary);
  margin-bottom: 24px;
}

.tcm-pricing-card-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  flex: 1;
}

.tcm-pricing-card-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--tcm-foreground-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--tcm-border);
}

.tcm-pricing-card-features li:last-child {
  border-bottom: none;
}

.tcm-pricing-card-features li::before {
  content: '✓';
  color: var(--tcm-state-success);
  font-weight: 700;
  flex-shrink: 0;
}

.tcm-pricing-card-features li.disabled {
  color: var(--tcm-foreground-tertiary);
  opacity: 0.6;
}

.tcm-pricing-card-features li.disabled::before {
  content: '✗';
  color: var(--tcm-foreground-tertiary);
}

.tcm-pricing-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--tcm-radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.tcm-pricing-btn-primary:hover {
  background: var(--tcm-primary-600);
}

.tcm-pricing-btn-secondary {
  background: var(--tcm-surface);
  color: var(--tcm-primary);
  border: 2px solid var(--tcm-primary);
}

.tcm-pricing-btn-secondary:hover {
  background: var(--tcm-primary-50);
}

.tcm-pricing-btn-tertiary {
  background: var(--tcm-surface-2);
  color: var(--tcm-foreground-secondary);
  border: 1px solid var(--tcm-border);
}

.tcm-pricing-btn-tertiary:hover {
  background: var(--tcm-surface-3);
}

/* Unlock Page */
.tcm-unlock-container {
  max-width: 600px;
  margin: 80px auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--tcm-surface);
  border: 1px solid var(--tcm-border);
  border-radius: var(--tcm-radius-lg);
  box-shadow: var(--tcm-shadow-2);
}

.tcm-unlock-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.tcm-unlock-title {
  font-family: var(--tcm-font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--tcm-foreground);
  margin-bottom: 12px;
}

.tcm-unlock-message {
  font-size: 16px;
  color: var(--tcm-foreground-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.tcm-unlock-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--tcm-primary);
  color: #fff;
  border: none;
  border-radius: var(--tcm-radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.tcm-unlock-btn:hover {
  background: var(--tcm-primary-600);
}

/* Responsive */
@media (max-width: 640px) {
  .tcm-paywall-overlay {
    padding: 32px 20px;
  }
  
  .tcm-paywall-title {
    font-size: 24px;
  }
  
  .tcm-paywall-features {
    max-width: 100%;
  }
  
  .tcm-pricing-hero {
    padding: 40px 16px;
  }
  
  .tcm-unlock-container {
    margin: 40px 16px;
    padding: 32px 20px;
  }
}
