/*
 * CC User Dashboard — Stylesheet
 * Version: 1.3.0
 */

/* ── CC User Dashboard ── */
.cc-db *,.cc-db *::before,.cc-db *::after{box-sizing:border-box;}
.cc-db{font-family:inherit;margin:0;}

/* Header */
.cc-db__header{background:#1a1f2e;border-radius:10px;padding:1.25rem 1.5rem;display:flex;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;}
.cc-db__avatar{width:52px;height:52px;border-radius:50%;background:#d85a30;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;flex-shrink:0;text-transform:uppercase;line-height:1;}
.cc-db__header-info{min-width:0;}
.cc-db__header-info h2{color:#fff;font-size:17px;font-weight:600;margin:0 0 2px;line-height:1.3;}
.cc-db__header-info p{color:#9ca3af;font-size:13px;margin:0;line-height:1.4;}
.cc-db__logout{display:inline-block;font-size:12px;color:#9ca3af;text-decoration:none;margin-top:4px;line-height:1.4;}
.cc-db__logout:hover{color:#f0997b;}
.cc-db__header-right{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px;}

/* Guardian Nation header pills */
.cc-db__gn-active{display:inline-flex;align-items:center;gap:5px;background:rgba(29,158,117,0.2);border:1px solid rgba(29,158,117,0.45);color:#5dcaa5;border-radius:20px;padding:5px 13px;font-size:12px;font-weight:600;text-decoration:none;}
.cc-db__gn-on-hold{display:inline-flex;align-items:center;gap:5px;background:rgba(251,191,36,0.15);border:1px solid rgba(251,191,36,0.5);color:#fbbf24;border-radius:20px;padding:5px 13px;font-size:12px;font-weight:600;text-decoration:none;}
.cc-db__gn-on-hold:hover{border-color:rgba(251,191,36,0.8);color:#fbbf24;text-decoration:none;}
.cc-db__gn-inactive{display:inline-flex;align-items:center;gap:5px;background:rgba(136,135,128,0.2);border:1px solid rgba(136,135,128,0.4);color:#b4b2a9;border-radius:20px;padding:5px 13px;font-size:12px;font-weight:600;text-decoration:none;}
.cc-db__gn-inactive:hover{border-color:rgba(216,90,48,0.5);color:#f0997b;}
.cc-db__gn-dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0;}
.cc-db__gn-dot--green{background:#5dcaa5;}
.cc-db__gn-dot--amber{background:#fbbf24;}
.cc-db__gn-dot--gray{background:#888780;}

/* Stat cards row */
.cc-db__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:1rem;}
.cc-db__stat{background:#f3f4f6;border-radius:8px;padding:14px 16px;text-decoration:none;display:block;color:inherit;transition:background 0.15s;}
.cc-db__stat:hover{background:#e9eaec;text-decoration:none;color:inherit;}
.cc-db__stat-label{font-size:11px;color:#6b7280;margin-bottom:4px;display:block;}
.cc-db__stat-value{font-size:22px;font-weight:700;color:#111827;display:block;line-height:1.2;}
.cc-db__stat-value--gold{color:#92400e;}
.cc-db__stat-value--rank{font-size:15px;line-height:1.4;padding-top:2px;}
.cc-db__stat-sub{font-size:11px;color:#6b7280;margin-top:3px;display:block;}

/* Two-column grid */
.cc-db__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin-bottom:1rem;}

/* Cards */
.cc-db__card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem 1.25rem;}
.cc-db__card-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px;gap:8px;}
.cc-db__card-title{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:0.06em;}
.cc-db__card-link{font-size:12px;color:#1d6abf;text-decoration:none;white-space:nowrap;flex-shrink:0;}
.cc-db__card-link:hover{text-decoration:underline;}

/* Permit rows */
.cc-db__permit{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f3f4f6;gap:8px;}
.cc-db__permit:last-child{border-bottom:none;padding-bottom:0;}
.cc-db__permit-state{font-size:14px;font-weight:600;color:#111827;margin:0;}
.cc-db__permit-type{font-size:12px;color:#6b7280;margin:0;}
.cc-db__pill{font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px;white-space:nowrap;flex-shrink:0;}
.cc-pill-green{background:#d1fae5;color:#065f46;}
.cc-pill-amber{background:#fef3c7;color:#92400e;}
.cc-pill-red{background:#fee2e2;color:#991b1b;}
.cc-pill-none{background:#f3f4f6;color:#6b7280;}

/* Course rows */
.cc-db__course{padding:9px 0;border-bottom:1px solid #f3f4f6;}
.cc-db__course:last-child{border-bottom:none;padding-bottom:0;}
.cc-db__course-title{font-size:14px;font-weight:600;color:#111827;text-decoration:none;display:block;margin-bottom:6px;line-height:1.4;}
.cc-db__course-title:hover{color:#d85a30;}
.cc-db__progress-track{background:#f3f4f6;border-radius:20px;height:6px;overflow:hidden;}
.cc-db__progress-bar{height:6px;border-radius:20px;background:#d85a30;min-width:2px;}
.cc-db__course-sub{font-size:12px;color:#6b7280;margin-top:4px;}

/* Order rows */
.cc-db__order{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f3f4f6;gap:8px;}
.cc-db__order:last-child{border-bottom:none;}
.cc-db__order-id{font-size:13px;font-weight:600;color:#1d6abf;text-decoration:none;}
.cc-db__order-id:hover{text-decoration:underline;}
.cc-db__order-date{font-size:12px;color:#6b7280;}
.cc-db__order-right{text-align:right;}
.cc-db__order-amt{font-size:14px;font-weight:700;color:#111827;}
.cc-db__order-name{font-size:12px;color:#6b7280;margin-top:2px;}
.cc-db__order-status{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;margin-left:5px;vertical-align:middle;}
.cc-db__status--completed{background:#d1fae5;color:#065f46;}
.cc-db__status--processing{background:#dbeafe;color:#1e40af;}
.cc-db__status--on-hold{background:#fef3c7;color:#92400e;}
.cc-db__status--pending,.cc-db__status--pending-payment{background:#f3f4f6;color:#6b7280;}
.cc-db__status--cancelled,.cc-db__status--refunded{background:#fee2e2;color:#991b1b;}

/* Payment method rows */
.cc-db__token{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f3f4f6;}
.cc-db__token:last-child{border-bottom:none;}
.cc-db__token-icon{width:38px;height:26px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#6b7280;flex-shrink:0;}
.cc-db__token-icon.cc-sub__pm-icon--apple{background:#000;color:#fff;font-size:9px;border-color:#000;}
.cc-db__token-icon.cc-sub__pm-icon--google{background:#fff;color:#374151;font-size:9px;}
.cc-db__token-icon.cc-sub__pm-icon--link{background:#00d66b;color:#fff;font-size:9px;border-color:#00d66b;}
.cc-db__token-icon.cc-sub__pm-icon--card{background:#f3f4f6;color:#374151;}
.cc-db__token-num{font-size:13px;font-weight:600;color:#111827;}
.cc-db__token-exp{font-size:12px;color:#6b7280;}
.cc-db__token-default{margin-left:auto;font-size:10px;font-weight:700;background:#f3f4f6;color:#6b7280;padding:2px 7px;border-radius:20px;white-space:nowrap;}
.cc-db__add-card{font-size:13px;color:#1d6abf;text-decoration:none;display:block;padding-top:10px;margin-top:10px;border-top:1px solid #f3f4f6;}
.cc-db__add-card:hover{text-decoration:underline;}

/* Badges */
.cc-db__badges-grid{display:flex;flex-wrap:wrap;gap:10px;}
.cc-db__badge{display:flex;flex-direction:column;align-items:center;gap:4px;width:64px;}
.cc-db__badge-icon{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.cc-db__badge-icon--earned{border:2px solid #d85a30;background:rgba(216,90,48,0.08);}
.cc-db__badge-icon--locked{border:2px dashed #d1d5db;background:#f9fafb;opacity:0.5;}
.cc-db__badge-img{width:28px;height:28px;object-fit:contain;display:block;}
.cc-db__badge-label{font-size:10px;color:#6b7280;text-align:center;line-height:1.3;word-break:break-word;}

/* Guardian Nation footer banner */
.cc-db__gn-banner{background:#1a1f2e;border-radius:10px;padding:1rem 1.25rem;display:flex;align-items:center;gap:14px;margin-top:1rem;flex-wrap:wrap;}
.cc-db__gn-icon{width:44px;height:44px;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;}
.cc-db__gn-icon--active{background:rgba(216,90,48,0.2);border:1.5px solid rgba(216,90,48,0.5);}
.cc-db__gn-icon--on-hold{background:rgba(251,191,36,0.15);border:1.5px solid rgba(251,191,36,0.5);}
.cc-db__gn-icon--inactive{background:rgba(136,135,128,0.15);border:1.5px solid rgba(136,135,128,0.4);}
.cc-db__gn-text h3{color:#fff;font-size:15px;font-weight:600;margin:0 0 3px;}
.cc-db__gn-text p{color:#9ca3af;font-size:12px;margin:0;line-height:1.5;}
.cc-db__gn-right{margin-left:auto;}
.cc-db__gn-badge-active{font-size:12px;font-weight:600;color:#5dcaa5;background:rgba(29,158,117,0.15);border:1px solid rgba(29,158,117,0.4);border-radius:20px;padding:5px 14px;display:inline-block;text-decoration:none;}
.cc-db__gn-badge-active:hover{background:rgba(29,158,117,0.25);color:#5dcaa5;text-decoration:none;}
.cc-db__gn-join{font-size:12px;font-weight:600;color:#f0997b;background:rgba(216,90,48,0.2);border:1px solid rgba(216,90,48,0.4);border-radius:20px;padding:5px 14px;text-decoration:none;display:inline-block;}
.cc-db__gn-join:hover{background:rgba(216,90,48,0.35);color:#f0997b;text-decoration:none;}

/* Empty states */
.cc-db__empty{font-size:13px;color:#6b7280;padding:6px 0;margin:0;}
.cc-db__empty a{color:#1d6abf;}
.cc-db__courses-more{font-size:12px;color:#6b7280;margin:10px 0 0;padding-top:10px;border-top:1px solid #f3f4f6;}
.cc-db__courses-more a{color:#1d6abf;}

/* Responsive — single column below 640px */
@media(max-width:640px){
	.cc-db__header-right{width:100%;flex-direction:row;justify-content:flex-start;margin-left:0;}
	.cc-db__stats{grid-template-columns:repeat(2,minmax(0,1fr));}
	.cc-db__grid{grid-template-columns:minmax(0,1fr);}
	.cc-db__gn-right{width:100%;}
}

/* ═══════════════════════════════════════════
   SUBSCRIPTION ENDPOINT STYLES
   ═══════════════════════════════════════════ */

/* Sub block separators (multiple active subscriptions) */
.cc-sub__block{margin-bottom:2rem;}
.cc-sub__block+.cc-sub__block{padding-top:2rem;border-top:2px solid #e5e7eb;}
.cc-sub__block-label{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:10px;}

/* Banner */
.cc-sub__banner{border-radius:10px;padding:1.25rem 1.5rem;display:flex;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;}
.cc-sub__banner--active{background:#1a1f2e;}
.cc-sub__banner--on-hold{background:#431407;}
.cc-sub__banner-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.cc-sub__banner-icon--active{background:rgba(216,90,48,0.2);border:1.5px solid rgba(216,90,48,0.5);}
.cc-sub__banner-icon--on-hold{background:rgba(251,191,36,0.15);border:1.5px solid rgba(251,191,36,0.5);}
.cc-sub__banner-text h2{color:#fff;font-size:17px;font-weight:600;margin:0 0 3px;}
.cc-sub__banner-text p{color:#9ca3af;font-size:13px;margin:0;}
.cc-sub__banner-right{margin-left:auto;}
.cc-sub__status-active{display:inline-flex;align-items:center;gap:5px;background:rgba(29,158,117,0.2);border:1px solid rgba(29,158,117,0.45);color:#5dcaa5;border-radius:20px;padding:5px 13px;font-size:12px;font-weight:600;}
.cc-sub__status-on-hold{display:inline-flex;align-items:center;gap:5px;background:rgba(251,191,36,0.15);border:1px solid rgba(251,191,36,0.5);color:#fbbf24;border-radius:20px;padding:5px 13px;font-size:12px;font-weight:600;}
.cc-sub__status-dot--green{width:7px;height:7px;border-radius:50%;background:#5dcaa5;display:inline-block;flex-shrink:0;}
.cc-sub__status-dot--amber{width:7px;height:7px;border-radius:50%;background:#fbbf24;display:inline-block;flex-shrink:0;}

/* On-hold alert */
.cc-sub__alert{display:flex;align-items:flex-start;gap:12px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:1rem 1.25rem;margin-bottom:1rem;}
.cc-sub__alert-icon{flex-shrink:0;width:32px;height:32px;background:#fef3c7;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:1px;}
.cc-sub__alert-body h3{font-size:14px;font-weight:700;color:#92400e;margin:0 0 4px;}
.cc-sub__alert-body p{font-size:13px;color:#78350f;line-height:1.6;margin:0;}
.cc-sub__alert-body a{color:#92400e;font-weight:600;}

/* Detail cards */
.cc-sub__details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem;}
.cc-sub__detail{background:#f9fafb;border-radius:8px;padding:14px 16px;}
.cc-sub__detail-label{font-size:11px;color:#6b7280;margin-bottom:4px;}
.cc-sub__detail-value{font-size:15px;font-weight:600;color:#111827;}
.cc-sub__detail-value--warn{color:#b45309;}
.cc-sub__detail-value--highlight{color:#d85a30;}

/* Address cards */
.cc-sub__addr-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;margin-bottom:1rem;}
.cc-sub__addr{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem 1.25rem;}
.cc-sub__addr-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px;gap:8px;}
.cc-sub__addr-title{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:0.06em;}
.cc-sub__addr-name{font-size:14px;font-weight:600;color:#111827;margin-bottom:4px;}
.cc-sub__addr-lines{font-size:13px;color:#374151;line-height:1.7;}
.cc-sub__addr-note{display:flex;align-items:flex-start;gap:7px;margin-top:12px;padding:9px 12px;background:#fef3c7;border:1px solid #fde68a;border-radius:7px;}
.cc-sub__addr-note-text{font-size:12px;color:#92400e;line-height:1.5;}
.cc-sub__addr-note-text strong{font-weight:700;}

/* Inline address edit form */
.cc-sub__addr-form{display:none;margin-top:14px;padding-top:14px;border-top:1px solid #f3f4f6;}
.cc-sub__addr-form.cc-sub__addr-form--open{display:block;}
.cc-sub__form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:10px;}
.cc-sub__form-row--full{grid-template-columns:minmax(0,1fr);}
.cc-sub__field label{display:block;font-size:11px;font-weight:600;color:#6b7280;margin-bottom:4px;}
.cc-sub__field input,.cc-sub__field select{width:100%;padding:8px 10px;font-size:13px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#111827;outline:none;font-family:inherit;}
.cc-sub__field input:focus,.cc-sub__field select:focus{border-color:#93c5fd;box-shadow:0 0 0 2px rgba(147,197,253,0.3);}
.cc-sub__form-actions{display:flex;gap:8px;margin-top:14px;}

/* Payment method rows */
.cc-sub__pm-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f3f4f6;flex-wrap:wrap;}
.cc-sub__pm-row:last-of-type{border-bottom:none;}
.cc-sub__pm-icon{width:52px;height:34px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:700;font-size:11px;border:1px solid #e5e7eb;}
.cc-sub__pm-icon--card{background:#f3f4f6;color:#374151;}
.cc-sub__pm-icon--apple{background:#000;color:#fff;font-size:10px;letter-spacing:-0.3px;}
.cc-sub__pm-icon--google{background:#fff;color:#374151;font-size:10px;}
.cc-sub__pm-icon--link{background:#00d66b;color:#fff;font-size:10px;letter-spacing:-0.3px;}
.cc-sub__pm-details{flex:1;min-width:0;}
.cc-sub__pm-name{font-size:14px;font-weight:600;color:#111827;}
.cc-sub__pm-sub{font-size:12px;color:#6b7280;margin-top:1px;}
.cc-sub__pm-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.cc-sub__badge--in-use{font-size:10px;font-weight:700;background:#d1fae5;color:#065f46;padding:2px 8px;border-radius:20px;white-space:nowrap;}
.cc-sub__badge--failed{font-size:10px;font-weight:700;background:#fee2e2;color:#991b1b;padding:2px 8px;border-radius:20px;white-space:nowrap;}
.cc-sub__badge--default{font-size:10px;font-weight:700;background:#f3f4f6;color:#6b7280;padding:2px 8px;border-radius:20px;white-space:nowrap;}

/* Tooltip */
.cc-sub__tooltip{position:relative;display:inline-block;}
.cc-sub__tooltip-text{visibility:hidden;opacity:0;transition:opacity 0.15s;background:#1a1f2e;color:#fff;font-size:11px;line-height:1.4;text-align:center;border-radius:6px;padding:6px 10px;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);width:220px;pointer-events:none;z-index:10;}
.cc-sub__tooltip:hover .cc-sub__tooltip-text{visibility:visible;opacity:1;}

/* Retry prompt */
.cc-sub__retry-prompt{display:none;margin-top:14px;padding:14px 16px;background:#f0fdf4;border:1px solid #86efac;border-radius:8px;}
.cc-sub__retry-prompt--visible{display:block;}
.cc-sub__retry-prompt p{font-size:13px;color:#166534;line-height:1.6;margin:0 0 12px;}
.cc-sub__retry-prompt strong{font-weight:700;}

/* Retry result messages */
.cc-sub__retry-result{margin-top:14px;padding:12px 16px;border-radius:8px;font-size:13px;font-weight:600;}
.cc-sub__retry-result--success{background:#f0fdf4;border:1px solid #86efac;color:#166534;}
.cc-sub__retry-result--failed{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b;}

/* Renewal history */
.cc-sub__renewal{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f3f4f6;gap:8px;}
.cc-sub__renewal:last-child{border-bottom:none;padding-bottom:0;}
.cc-sub__renewal-id{font-size:13px;font-weight:600;color:#1d6abf;text-decoration:none;}
.cc-sub__renewal-id:hover{text-decoration:underline;}
.cc-sub__renewal-date{font-size:12px;color:#6b7280;}
.cc-sub__renewal-amt{font-size:13px;font-weight:600;color:#111827;}
.cc-sub__renewal-status{font-size:10px;font-weight:700;padding:2px 8px;border-radius:20px;margin-left:5px;vertical-align:middle;}
.cc-sub__renewal--completed{background:#d1fae5;color:#065f46;}
.cc-sub__renewal--failed{background:#fee2e2;color:#991b1b;}
.cc-sub__renewal--pending,.cc-sub__renewal--pending-payment{background:#f3f4f6;color:#6b7280;}
.cc-sub__renewal--processing{background:#dbeafe;color:#1e40af;}
.cc-sub__history-footer{display:flex;align-items:center;justify-content:space-between;padding-top:12px;margin-top:4px;border-top:1px solid #f3f4f6;flex-wrap:wrap;gap:8px;}
.cc-sub__history-count{font-size:12px;color:#6b7280;}
.cc-sub__history-nav{display:flex;align-items:center;gap:8px;}

/* Past subscriptions accordion */
.cc-sub__past-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:14px 20px;cursor:pointer;font-size:14px;font-weight:600;color:#374151;font-family:inherit;}
.cc-sub__past-toggle:hover{background:#f9fafb;}
.cc-sub__past-count{font-size:12px;font-weight:600;color:#6b7280;background:#f3f4f6;border-radius:20px;padding:2px 8px;margin-left:8px;}
.cc-sub__past-chevron{font-size:11px;color:#9ca3af;transition:transform 0.2s;margin-left:auto;}
.cc-sub__past-toggle--open .cc-sub__past-chevron{transform:rotate(180deg);}
.cc-sub__past-body{display:none;border:1px solid #e5e7eb;border-top:none;border-radius:0 0 10px 10px;background:#fff;overflow:hidden;margin-bottom:1rem;}
.cc-sub__past-body--open{display:block;}
.cc-sub__past-row{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #f3f4f6;flex-wrap:wrap;gap:8px;}
.cc-sub__past-row:last-child{border-bottom:none;}
.cc-sub__past-id{font-size:13px;font-weight:600;color:#374151;}
.cc-sub__past-dates{font-size:12px;color:#6b7280;margin-top:2px;}
.cc-sub__past-status{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;}
.cc-sub__past-status--cancelled{background:#fee2e2;color:#991b1b;}
.cc-sub__past-status--on-hold{background:#fef3c7;color:#92400e;}
.cc-sub__past-status--expired{background:#f3f4f6;color:#6b7280;}

/* Comp membership notice */
.cc-sub__comp-notice{border:1px solid #e5e7eb;border-radius:10px;padding:1rem 1.25rem;background:#f9fafb;margin-bottom:1rem;}
.cc-sub__comp-notice p{font-size:13px;color:#6b7280;margin:0;line-height:1.6;}
.cc-sub__comp-notice a{color:#1d6abf;}
.cc-sub__danger h3{font-size:14px;font-weight:600;color:#991b1b;margin:0 0 6px;}
.cc-sub__danger p{font-size:13px;color:#6b7280;margin:0 0 14px;line-height:1.5;}

/* Shared button styles */
.cc-sub__btn{font-size:13px;font-weight:600;border-radius:6px;padding:8px 18px;cursor:pointer;font-family:inherit;border:none;}
.cc-sub__btn--primary{color:#fff;background:#1a1f2e;}
.cc-sub__btn--primary:hover{background:#2d3548;}
.cc-sub__btn--secondary{color:#6b7280;background:#f9fafb;border:1px solid #e5e7eb;}
.cc-sub__btn--secondary:hover{background:#f3f4f6;}
.cc-sub__btn--danger{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5;}
.cc-sub__btn--danger:hover{background:#fecaca;}
.cc-sub__btn--success{color:#fff;background:#16a34a;}
.cc-sub__btn--success:hover{background:#15803d;}
.cc-sub__btn--sm{font-size:12px;padding:5px 12px;}
.cc-sub__btn--use{color:#1d6abf;background:#eff6ff;border:1px solid #bfdbfe;}
.cc-sub__btn--use:hover{background:#dbeafe;}
.cc-sub__btn:disabled{opacity:0.4;cursor:not-allowed;}

/* Section heading */
.cc-sub__section-heading{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:12px;}

/* Shared card */
.cc-sub__card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem 1.25rem;margin-bottom:1rem;}
.cc-sub__card-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px;gap:8px;}
.cc-sub__card-title{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:0.06em;}

/* No subscription */
.cc-sub__empty{text-align:center;padding:3rem 1rem;}
.cc-sub__empty h2{font-size:18px;font-weight:600;color:#111827;margin-bottom:8px;}
.cc-sub__empty p{font-size:14px;color:#6b7280;margin-bottom:1.5rem;line-height:1.6;}

/* Responsive */
@media(max-width:640px){
	.cc-sub__details{grid-template-columns:repeat(2,minmax(0,1fr));}
	.cc-sub__addr-grid{grid-template-columns:minmax(0,1fr);}
	.cc-sub__form-row{grid-template-columns:minmax(0,1fr);}
	.cc-sub__banner-right{width:100%;margin-left:0;}
}

/* ── Payment methods endpoint ── */
.cc-pm__card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem 1.25rem;}
.cc-pm__row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f3f4f6;flex-wrap:wrap;}
.cc-pm__row:last-of-type{border-bottom:none;}
.cc-pm__badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.cc-pm__badge--sub{font-size:10px;font-weight:700;background:#ede9fe;color:#5b21b6;padding:2px 8px;border-radius:20px;white-space:nowrap;}
.cc-pm__actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap;}

/* ── Badges endpoint ── */
.cc-badges__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:1.5rem;}
.cc-badges__stat{background:#f3f4f6;border-radius:8px;padding:14px 16px;}
.cc-badges__stat-label{font-size:11px;color:#6b7280;margin-bottom:4px;display:block;}
.cc-badges__stat-value{font-size:22px;font-weight:500;color:#111827;display:block;}
.cc-badges__stat-value--gold{color:#92400e;}
.cc-badges__stat-sub{font-size:11px;color:#6b7280;margin-top:2px;display:block;}
.cc-badges__section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.cc-badges__section-label{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:0.06em;}
.cc-badges__carousel-nav{display:flex;gap:6px;}
.cc-badges__nav-btn{width:28px;height:28px;border-radius:50%;border:0.5px solid #e5e7eb;background:#fff;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:13px;font-family:inherit;}
.cc-badges__nav-btn:hover{background:#f3f4f6;}
.cc-badges__nav-btn:disabled{opacity:0.3;cursor:not-allowed;}
.cc-badges__carousel-outer{overflow:hidden;}
.cc-badges__carousel-track{display:flex;gap:12px;transition:transform 0.3s ease;}
.cc-badges__dots{display:flex;justify-content:center;gap:6px;margin-top:10px;}
.cc-badges__dot{width:6px;height:6px;border-radius:50%;background:#e5e7eb;cursor:pointer;transition:background 0.15s;}
.cc-badges__dot--active{background:#d85a30;}
.cc-badges__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px;}
.cc-badges__card{background:#fff;border:0.5px solid #e5e7eb;border-radius:10px;padding:1.25rem 1rem;display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:inherit;transition:border-color 0.15s;flex-shrink:0;width:148px;}
.cc-badges__grid .cc-badges__card{width:auto;}
.cc-badges__card:hover{border-color:#d1d5db;}
.cc-badges__card--locked{opacity:0.65;}
.cc-badges__card--locked:hover{opacity:0.85;border-color:#d1d5db;}
.cc-badges__img-wrap{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.cc-badges__img-wrap--earned{border:2px solid #d85a30;background:rgba(216,90,48,0.08);}
.cc-badges__img-wrap--locked{border:2px dashed #d1d5db;background:#f9fafb;}
.cc-badges__thumb{width:40px;height:40px;object-fit:contain;display:block;}
.cc-badges__thumb-placeholder{width:36px;height:36px;border-radius:50%;}
.cc-badges__thumb-placeholder--earned{background:linear-gradient(135deg,#d85a30 0%,#f0997b 100%);}
.cc-badges__thumb-placeholder--locked{background:#e5e7eb;}
.cc-badges__name{font-size:12px;font-weight:500;color:#111827;text-align:center;line-height:1.4;}
.cc-badges__name--locked{color:#6b7280;}
.cc-badges__gold{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:500;padding:2px 8px;border-radius:20px;}
.cc-badges__gold--earned{background:#fef3c7;color:#92400e;}
.cc-badges__gold--locked{background:#f3f4f6;color:#6b7280;}
.cc-badges__gold--none{background:#f3f4f6;color:#6b7280;}
.cc-badges__gold-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;}
.cc-badges__gold-dot--earned{background:#ba7517;}
.cc-badges__gold-dot--gray{background:#d1d5db;}
@media(max-width:640px){.cc-badges__stats{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Cancelled subscription state */
.cc-sub__banner--cancelled{background:#2d2d2d;}
.cc-sub__status-cancelled{display:inline-flex;align-items:center;gap:5px;background:rgba(136,135,128,0.2);border:1px solid rgba(136,135,128,0.4);color:#b4b2a9;border-radius:20px;padding:5px 13px;font-size:12px;font-weight:600;}
.cc-sub__status-dot--gray{width:7px;height:7px;border-radius:50%;background:#888780;display:inline-block;flex-shrink:0;}
.cc-sub__reactivate-box{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1.25rem 1.5rem;margin-bottom:1rem;}
.cc-sub__reactivate-box h3{font-size:15px;font-weight:600;color:#111827;margin:0 0 6px;}
.cc-sub__reactivate-box p{font-size:13px;color:#6b7280;margin:0 0 14px;line-height:1.6;}
