/* WC Fitness Referral — Frontend Styles */
.wcfr-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 900px; margin: 0 auto; color: #1a1a2e; }
.wcfr-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.wcfr-notice--error   { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.wcfr-notice--success { background: #f0fdf4; border-left: 4px solid #22c55e; color: #166534; }
.wcfr-notice--info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }

/* Register Box */
.wcfr-register-box { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.wcfr-register-box h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.wcfr-subtitle { color: #6b7280; margin-bottom: 28px; }

/* Tier Cards */
.wcfr-tiers-overview { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.wcfr-tier-card { flex: 1; min-width: 140px; background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px; text-align: center; transition: all .2s; }
.wcfr-tier-card.active { border-color: #6366f1; background: #eef2ff; }
.wcfr-tier-card strong { display: block; margin-top: 8px; font-size: 13px; }
.wcfr-tier-card p { font-size: 12px; color: #6b7280; margin: 6px 0 0; }
.wcfr-tier-badge { display: inline-block; border-radius: 20px; padding: 6px 16px; font-weight: 700; font-size: 18px; color: #fff; }
.wcfr-tier-badge.standard       { background: #10b981; }
.wcfr-tier-badge.high_performer { background: #3b82f6; }
.wcfr-tier-badge.elite          { background: #f59e0b; }
.wcfr-current-badge { display: inline-block; background: #6366f1; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-top: 4px; }

/* Form */
.wcfr-form { display: flex; flex-direction: column; gap: 18px; }
.wcfr-field { display: flex; flex-direction: column; gap: 6px; }
.wcfr-field label { font-weight: 600; font-size: 14px; }
.wcfr-field label span { color: #ef4444; }
.wcfr-field input, .wcfr-field select, .wcfr-field textarea { border: 2px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-size: 15px; transition: border-color .2s; width: 100%; box-sizing: border-box; }
.wcfr-field input:focus, .wcfr-field select:focus, .wcfr-field textarea:focus { outline: none; border-color: #6366f1; }
.wcfr-field small { color: #9ca3af; font-size: 12px; }

/* Buttons */
.wcfr-btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.wcfr-btn--primary   { background: #6366f1; color: #fff; }
.wcfr-btn--primary:hover   { background: #4f46e5; }
.wcfr-btn--secondary { background: #e5e7eb; color: #374151; }
.wcfr-btn--secondary:hover { background: #d1d5db; }
.wcfr-small { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* Dashboard */
.wcfr-dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.wcfr-dash-header h2 { margin: 0 0 6px; font-size: 24px; }
.wcfr-status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.wcfr-status-badge.active    { background: #dcfce7; color: #166534; }
.wcfr-status-badge.pending   { background: #fef9c3; color: #854d0e; }
.wcfr-status-badge.suspended { background: #fee2e2; color: #991b1b; }
.wcfr-status-badge.approved  { background: #dcfce7; color: #166534; }
.wcfr-status-badge.paid      { background: #ede9fe; color: #5b21b6; }
.wcfr-status-badge.rejected  { background: #fee2e2; color: #991b1b; }

/* Stats Grid */
.wcfr-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.wcfr-stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); text-align: center; }
.wcfr-stat-value { font-size: 28px; font-weight: 700; color: #6366f1; }
.wcfr-stat-label { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* Referral Link */
.wcfr-ref-link-box { display: flex; gap: 10px; margin: 10px 0; }
.wcfr-ref-link-box input { flex: 1; border: 2px solid #e5e7eb; border-radius: 8px; padding: 10px 14px; font-size: 13px; background: #f9fafb; }

/* Section */
.wcfr-section { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 20px; }
.wcfr-section h3 { margin: 0 0 16px; font-size: 17px; font-weight: 700; border-bottom: 2px solid #f3f4f6; padding-bottom: 10px; }

/* Table */
.wcfr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wcfr-table th { background: #f9fafb; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #6b7280; }
.wcfr-table td { padding: 10px 14px; border-top: 1px solid #f3f4f6; }
.wcfr-table tr:hover td { background: #fafafa; }
.wcfr-empty { text-align: center; color: #9ca3af; padding: 20px; }

/* Progress Bar */
.wcfr-progress-bar { background: #e5e7eb; border-radius: 10px; height: 10px; margin: 10px 0; overflow: hidden; }
.wcfr-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa); border-radius: 10px; transition: width .4s; }
