.rb-sub {
      --primary-color: #1DB954;
      --primary-hover: #1ed760;
      --background: #0a0a0a;
      --surface: #1a1a1a;
      --surface-hover: #252525;
      --border: #333;
      --text-primary: #ffffff;
      --text-secondary: #999;
      --text-on-primary: #000;
      --accent-color: #1DB954;
      --warning-color: #ffc107;
      --warning-bg: #fff3cd;
      --warning-border: #ffc107;
      --warning-text: #856404;
      --danger-color: #dc3545;
      --danger-bg: #f8d7da;
      --danger-border: #dc3545;
      --danger-text: #721c24;
      --success-color: #1DB954;
      --success-bg: #d4edda;
      --success-border: #1DB954;
      --success-text: #155724;
      --radius-sm: 6px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-pill: 50px;
    }
    .rb-sub * { margin: 0; padding: 0; box-sizing: border-box; }
    .rb-sub { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--background); color: var(--text-primary); line-height: 1.5; min-height: 100vh; }
    .manage-page { max-width: 1000px; margin: 0 auto; padding: 16px 20px 32px; }
    .page-header { text-align: center; margin-bottom: 16px; }
    .page-header h1 { font-size: 28px; margin-bottom: 4px; font-weight: 700; color: var(--text-primary); }
    .page-header p { font-size: 14px; color: var(--text-secondary); }
    .loading-container { text-align: center; padding: 32px; }
    .spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .current-plan-card { background: var(--surface); border: 2px solid var(--primary-color); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; }
    .current-plan-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
    .current-plan-info h2 { font-size: 20px; color: var(--primary-color); margin-bottom: 2px; }
    .current-plan-details { color: var(--text-secondary); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
    .credit-balance { text-align: right; }
    .credit-balance .balance-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
    .credit-balance .balance-amount { font-size: 28px; font-weight: 700; color: var(--primary-color); }
    .credit-balance .balance-amount.loading { font-size: 16px; color: var(--text-secondary); }
    .credit-balance .balance-unit { font-size: 14px; color: var(--text-secondary); margin-left: 4px; }
    .cancellation-warning { background: var(--warning-bg); border-left: 4px solid var(--warning-border); padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 12px; }
    .cancellation-warning p { color: var(--warning-text); font-size: 13px; margin-bottom: 8px; }
    .cancellation-warning p:last-child { margin-bottom: 0; }
    .reactivate-btn { background: var(--warning-border); color: var(--text-on-primary); border: none; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
    .reactivate-btn:hover { opacity: 0.9; }
    .billing-toggle { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 12px 0 16px; }
    .toggle-container { position: relative; width: 52px; height: 28px; background: var(--surface); border-radius: var(--radius-pill); cursor: pointer; border: 2px solid var(--border); transition: all 0.3s ease; }
    .toggle-container.active { background: var(--primary-color); border-color: var(--primary-color); }
    .toggle-slider { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--text-primary); border-radius: 50%; transition: transform 0.3s ease; }
    .toggle-container.active .toggle-slider { transform: translateX(24px); }
    .toggle-label { font-size: 14px; font-weight: 600; cursor: pointer; transition: color 0.3s ease; }
    .toggle-label.active { color: var(--primary-color); }
    .toggle-label.inactive { color: var(--text-secondary); }
    .save-badge { background: var(--accent-color); color: var(--text-on-primary); padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
    .plans-section h3 { text-align: center; font-size: 18px; color: var(--text-primary); margin-bottom: 12px; }
    .plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
    @media (max-width: 768px) { .plan-grid { grid-template-columns: 1fr; } }
    .plan-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s; }
    .plan-card:hover:not(.current):not(.disabled) { transform: translateY(-3px); border-color: var(--primary-color); }
    .plan-card.current { border-color: var(--primary-color); position: relative; }
    .plan-card.current::before { content: '✓ CURRENT PLAN'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: var(--text-on-primary); padding: 3px 12px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; white-space: nowrap; }
    .plan-card.skeleton { pointer-events: none; }
    .plan-card.skeleton .plan-name, .plan-card.skeleton .plan-interval, .plan-card.skeleton .plan-price, .plan-card.skeleton .plan-credits { background: var(--border); border-radius: 4px; color: transparent; animation: pulse 1.5s ease-in-out infinite; }
    @keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
    .plan-name { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
    .plan-interval { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
    .plan-price { font-size: 24px; font-weight: 700; color: var(--primary-color); margin-bottom: 2px; }
    .plan-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
    .plan-credits { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
    .change-info { background: rgba(29, 185, 84, 0.1); border: 1px solid rgba(29, 185, 84, 0.3); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 10px; font-size: 12px; }
    .change-info.upgrade { background: rgba(29, 185, 84, 0.1); border-color: rgba(29, 185, 84, 0.3); }
    .change-info.downgrade { background: rgba(255, 193, 7, 0.1); border-color: rgba(255, 193, 7, 0.3); }
    .change-info .credits-add { color: var(--primary-color); font-weight: 700; font-size: 14px; display: block; margin-bottom: 2px; }
    .change-info .charge-info { color: var(--text-secondary); display: block; margin-bottom: 1px; }
    .change-info .effective-info { color: var(--text-secondary); font-style: italic; }
    .plan-btn { width: 100%; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; margin-top: auto; }
    .plan-btn.primary { background: var(--primary-color); color: var(--text-on-primary); }
    .plan-btn.primary:hover { background: var(--primary-hover); }
    .plan-btn.outline { background: transparent; color: var(--text-secondary); border: 2px solid var(--border); }
    .plan-btn.outline:hover { border-color: var(--text-secondary); color: var(--text-primary); }
    .plan-btn.disabled { background: var(--border); color: var(--text-secondary); cursor: not-allowed; }
    .plan-btn:disabled { cursor: not-allowed; }
    .cancel-section { text-align: center; padding: 16px; border-top: 1px solid var(--border); }
    .cancel-section p { color: var(--text-secondary); font-size: 13px; margin-bottom: 6px; }
    .cancel-link { color: var(--danger-color); background: none; border: none; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
    .cancel-link:hover { color: #ff6b6b; }
    .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 1000; align-items: center; justify-content: center; padding: 16px; }
    .modal-overlay.active { display: flex; }
    .modal { background: var(--surface); border-radius: var(--radius-lg); max-width: 420px; width: 100%; padding: 24px; position: relative; }
    .modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; line-height: 1; }
    .modal-close:hover { color: var(--text-primary); }
    .modal h3 { font-size: 18px; margin-bottom: 12px; color: var(--text-primary); }
    .modal p { color: var(--text-secondary); margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
    .modal-summary { background: var(--background); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
    .modal-summary .summary-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
    .modal-summary .summary-row:last-child { margin-bottom: 0; }
    .modal-summary .summary-label { color: var(--text-secondary); }
    .modal-summary .summary-value { color: var(--text-primary); font-weight: 600; }
    .modal-summary .summary-value.highlight { color: var(--primary-color); }
    .modal-actions { display: flex; gap: 10px; }
    .modal-actions button { flex: 1; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; }
    .modal-actions .btn-cancel { background: var(--border); color: var(--text-primary); }
    .modal-actions .btn-cancel:hover { background: var(--surface-hover); }
    .modal-actions .btn-confirm { background: var(--primary-color); color: var(--text-on-primary); }
    .modal-actions .btn-confirm:hover { background: var(--primary-hover); }
    .modal-actions .btn-danger { background: var(--danger-color); color: var(--text-primary); }
    .modal-actions .btn-danger:hover { background: #c82333; }
    .alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; display: none; }
    .alert.show { display: block; }
    .alert.success { background: var(--success-bg); border-left: 4px solid var(--success-border); color: var(--success-text); }
    .alert.error { background: var(--danger-bg); border-left: 4px solid var(--danger-border); color: var(--danger-text); }
    .alert.warning { background: var(--warning-bg); border-left: 4px solid var(--warning-border); color: var(--warning-text); }
    .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary) !important; text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
    .back-link:hover { color: var(--primary-color) !important; }
    .no-subscription { text-align: center; padding: 32px; background: var(--surface); border-radius: var(--radius-lg); border: 2px solid var(--border); }
    .no-subscription h2 { color: var(--text-primary); margin-bottom: 12px; font-size: 20px; }
    .no-subscription p { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }
    .no-subscription .subscribe-cta { background: var(--primary-color); color: var(--text-on-primary); padding: 12px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; transition: background 0.2s; }
    .no-subscription .subscribe-cta:hover { background: var(--primary-hover); }
