/* WP Razorpay Subscriptions v2.0 — Frontend CSS */

/* ── Base ─────────────────────────────────────────────────────────────── */
.wprz-page,.wprz-dash-wrap{max-width:960px;margin:0 auto;padding:40px 20px 60px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;box-sizing:border-box}
.wprz-page *,.wprz-page *::before,.wprz-page *::after,
.wprz-dash-wrap *,.wprz-dash-wrap *::before,.wprz-dash-wrap *::after{box-sizing:border-box}
.wprz-hero{text-align:center;margin-bottom:36px}
.wprz-hero h2{font-size:32px;font-weight:800;color:#1e1b4b;margin:0 0 8px}
.wprz-hero p{font-size:15px;color:#64748b;margin:0}
.wprz-center{text-align:center}
.wprz-muted{color:#94a3b8}

/* ── Pricing Cards ────────────────────────────────────────────────────── */
.wprz-plans{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.wprz-plan-card{background:#fff;border:2px solid #e2e8f0;border-radius:16px;padding:32px 28px;width:280px;max-width:100%;text-align:center;position:relative;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;align-items:stretch}
.wprz-plan-card>*{align-self:center}
.wprz-plan-card>.wprz-plan-desc,.wprz-plan-card>.wprz-sub-form{align-self:stretch}
.wprz-plan-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,.06)}
.wprz-plan--pop{border-color:#7c3aed;box-shadow:0 4px 24px rgba(124,58,237,.12)}
.wprz-pop-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;padding:4px 16px;border-radius:99px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}
.wprz-plan-period{font-size:11px;font-weight:600;color:#94a3b8;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}
.wprz-plan-name{font-size:17px;font-weight:700;color:#1e1b4b;margin-bottom:12px}
.wprz-plan-price{display:flex;align-items:baseline;justify-content:center;gap:3px;margin-bottom:8px}
.wprz-plan-cur{font-size:16px;font-weight:600;color:#64748b}
.wprz-plan-amt{font-size:44px;font-weight:800;color:#1e1b4b;line-height:1}
.wprz-plan-per{font-size:15px;color:#94a3b8}
.wprz-plan-equiv{font-size:13px;color:#94a3b8;margin-bottom:12px}
.wprz-plan-equiv strong{color:#16a34a}
.wprz-plan-desc{font-size:14px;color:#475569;text-align:left;width:100%;margin:8px 0 20px;line-height:1.55}
.wprz-plan-desc .wprz-desc-p{margin:0 0 10px;color:#475569}
.wprz-plan-desc .wprz-feat-list{list-style:none;padding:0;margin:6px 0 12px;display:flex;flex-direction:column;gap:8px}
.wprz-plan-desc .wprz-feat-item{position:relative;padding-left:22px;font-size:14px;color:#334155;line-height:1.45}
.wprz-plan-desc .wprz-feat-item::before{content:"";position:absolute;left:6px;top:9px;width:6px;height:6px;border-radius:50%;background:#7c3aed}
.wprz-plan-desc .wprz-feat-item.wprz-feat-emoji{padding-left:0}
.wprz-plan-desc .wprz-feat-item.wprz-feat-emoji::before{display:none}
.wprz-plan-desc .wprz-feat-mark{display:inline-block;width:20px;color:#7c3aed;font-weight:700}
.wprz-plan-desc strong{color:#1e1b4b;font-weight:700}
.wprz-plan-desc em{font-style:italic}

/* ── Buttons (pricing) ────────────────────────────────────────────────── */
.wprz-btn{display:inline-block;padding:12px 28px;border-radius:10px;font-size:15px;font-weight:700;text-decoration:none!important;cursor:pointer;border:none;transition:transform .15s,box-shadow .15s}
.wprz-btn--primary{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff!important;box-shadow:0 4px 16px rgba(124,58,237,.2)}
.wprz-btn--primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(124,58,237,.3)}
.wprz-btn--disabled{background:#e2e8f0;color:#94a3b8!important;cursor:default;box-shadow:none}

/* ── Inline subscribe form ────────────────────────────────────────────── */
.wprz-sub-form{width:100%;display:flex;flex-direction:column;gap:10px;margin-top:8px;text-align:left}
.wprz-sub-form .wprz-btn{width:100%;text-align:center;margin-top:4px}
.wprz-field{display:flex;flex-direction:column;gap:4px}
.wprz-field>label{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.4px}
.wprz-input{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:14px;color:#1e1b4b;background:#fff;font-family:inherit;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.wprz-input:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.15)}
.wprz-phone-row{display:flex;gap:8px}
.wprz-phone-row .wprz-f-cc{flex:0 0 130px;max-width:140px}
.wprz-phone-row .wprz-f-phone{flex:1 1 auto;min-width:0}
.wprz-form-err{display:none;background:#fee2e2;color:#991b1b;border:1px solid #fecaca;border-radius:8px;padding:8px 10px;font-size:13px;margin-top:6px}
.wprz-page--single .wprz-plans{justify-content:center}
.wprz-page--single .wprz-plan-card{width:440px;padding:36px}

/* ── Paywall ──────────────────────────────────────────────────────────── */
.wprz-paywall{text-align:center;padding:48px 24px;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:16px;margin:20px 0}
.wprz-paywall-icon{font-size:48px;margin-bottom:8px}
.wprz-paywall-title{font-size:22px;font-weight:700;color:#1e1b4b;margin:0 0 8px}
.wprz-paywall-msg{font-size:14px;color:#64748b;margin:0 0 20px}
.wprz-paywall-plans{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:16px}
.wprz-paywall-plans .wprz-btn{width:100%;max-width:360px;text-align:center}
.wprz-paywall-link{margin-top:8px}
.wprz-paywall-link a{color:#7c3aed;font-size:13px;text-decoration:underline!important}

/* ── Badges ───────────────────────────────────────────────────────────── */
.wprz-badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
.wprz-badge--active,.wprz-badge--authenticated,.wprz-badge--charged{background:#ede9fe;color:#7c3aed}
.wprz-badge--cancelled,.wprz-badge--halted{background:#fee2e2;color:#991b1b}
.wprz-badge--completed{background:#dbeafe;color:#1e40af}
.wprz-badge--created,.wprz-badge--pending,.wprz-badge--paused{background:#fef3c7;color:#92400e}

/* ════════════════════════════════════════════════════════════════════════
   STUDENT DASHBOARD  [wprz_my_subs]
   ════════════════════════════════════════════════════════════════════════ */

/* Wrap */
.wprz-dash-wrap{max-width:760px}

/* Header */
.wprz-dash-header{display:flex;align-items:center;gap:16px;margin-bottom:28px;padding-bottom:24px;border-bottom:2px solid #f1f5f9}
.wprz-dash-avatar{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;font-size:22px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.wprz-dash-greeting{font-size:13px;color:#94a3b8}
.wprz-dash-name{font-size:22px;font-weight:800;color:#1e1b4b;line-height:1.2}

/* Stats row */
.wprz-dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:28px}
.wprz-dash-stat{background:#f8f5ff;border:1px solid #ede9fe;border-radius:12px;padding:16px;text-align:center}
.wprz-dash-stat-num{font-size:28px;font-weight:800;color:#7c3aed;line-height:1}
.wprz-dash-stat-lbl{font-size:12px;color:#94a3b8;margin-top:4px;font-weight:500}

/* Section headers */
.wprz-dash-section{margin-bottom:28px}
.wprz-dash-section-title{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.8px;margin:0 0 14px;display:flex;align-items:center;gap:8px}
.wprz-dash-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.wprz-dash-dot--active{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.2)}
.wprz-dash-dot--off{background:#cbd5e1}

/* Cards */
.wprz-dash-card{background:#fff;border:1.5px solid #e2e8f0;border-radius:16px;padding:24px;margin-bottom:16px;transition:box-shadow .2s}
.wprz-dash-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.06)}
.wprz-dash-card--active{border-color:#ddd6fe;background:linear-gradient(135deg,#faf9ff 0%,#fff 100%)}
.wprz-dash-card--off{opacity:.72}

/* Card top row */
.wprz-dash-card-top{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.wprz-dash-card-icon{font-size:28px;flex-shrink:0;line-height:1}
.wprz-dash-card-info{flex:1;min-width:0}
.wprz-dash-card-title{font-size:17px;font-weight:700;color:#1e1b4b;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wprz-dash-card-subid{font-size:11px;color:#94a3b8;margin-top:3px}
.wprz-dash-card-subid code{font-size:10px;background:#f1f5f9;padding:1px 4px;border-radius:3px}

/* Dashboard badges */
.wprz-dash-badge{flex-shrink:0;font-size:11px;font-weight:700;padding:4px 12px;border-radius:99px;text-transform:uppercase;letter-spacing:.3px}
.wprz-dash-badge--active{background:#dcfce7;color:#15803d}
.wprz-dash-badge--cancelled,.wprz-dash-badge--halted{background:#fee2e2;color:#991b1b}
.wprz-dash-badge--completed{background:#dbeafe;color:#1e40af}
.wprz-dash-badge--pending,.wprz-dash-badge--paused,.wprz-dash-badge--created{background:#fef3c7;color:#92400e}

/* Dates row */
.wprz-dash-dates{display:flex;align-items:center;gap:12px;margin-bottom:16px;background:#f8f5ff;border-radius:10px;padding:14px 16px;flex-wrap:wrap}
.wprz-dash-date-item{flex:1;min-width:90px}
.wprz-dash-date-item--right{text-align:right}
.wprz-dash-date-lbl{font-size:11px;color:#94a3b8;margin-bottom:3px;font-weight:500}
.wprz-dash-date-val{font-size:15px;font-weight:700;color:#1e1b4b}
.wprz-dash-date--warn{color:#dc2626}
.wprz-dash-date--green{color:#16a34a}
.wprz-dash-date-sep{color:#c4b5fd;font-size:18px;flex-shrink:0}

/* Progress bar */
.wprz-dash-progress-wrap{margin-bottom:16px}
.wprz-dash-progress-bar{height:8px;background:#ede9fe;border-radius:99px;overflow:hidden;margin-bottom:6px}
.wprz-dash-progress-fill{height:100%;background:linear-gradient(90deg,#7c3aed,#a855f7);border-radius:99px;transition:width .5s ease}
.wprz-dash-progress--warn{background:linear-gradient(90deg,#f59e0b,#ef4444)}
.wprz-dash-progress-labels{display:flex;justify-content:space-between;font-size:11px;color:#94a3b8}

/* Meta line */
.wprz-dash-meta{font-size:13px;color:#64748b;margin-bottom:16px}
.wprz-dash-meta strong{color:#1e1b4b}

/* Warning banner */
.wprz-dash-warn-banner{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 14px;font-size:13px;color:#991b1b;margin-bottom:16px}
.wprz-dash-warn-banner a{color:#7c3aed;font-weight:600;text-decoration:underline!important}

/* Action buttons */
.wprz-dash-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.wprz-dash-btn{display:inline-block;padding:10px 20px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;border:none;text-decoration:none!important;transition:all .2s;white-space:nowrap}
.wprz-dash-btn--primary{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff!important;box-shadow:0 4px 14px rgba(124,58,237,.25)}
.wprz-dash-btn--primary:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(124,58,237,.35)}
.wprz-dash-btn--renew{background:linear-gradient(135deg,#0ea5e9,#6366f1);color:#fff!important}
.wprz-dash-btn--renew:hover{opacity:.9}
.wprz-dash-btn--cancel{background:#fff;color:#ef4444!important;border:1.5px solid #fca5a5}
.wprz-dash-btn--cancel:hover{background:#fef2f2}
.wprz-dash-btn--ghost{background:#f1f5f9;color:#475569!important}
.wprz-dash-btn--ghost:hover{background:#e2e8f0}

/* Empty state */
.wprz-dash-empty{text-align:center;padding:48px 24px;background:#f8fafc;border-radius:16px}
.wprz-dash-empty h3{font-size:20px;font-weight:700;margin:0 0 8px;color:#1e1b4b}
.wprz-dash-empty p{color:#64748b;margin:0 0 24px}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media(max-width:600px){
    .wprz-hero h2{font-size:24px}
    .wprz-plans{flex-direction:column;align-items:center;gap:16px}
    .wprz-plan-card{width:100%;padding:24px 20px}
    .wprz-plan-amt{font-size:36px}
    .wprz-btn{display:block;text-align:center;width:100%;font-size:14px;padding:12px 20px}
    .wprz-page--single .wprz-plan-card{width:100%}
    .wprz-phone-row .wprz-f-cc{flex:0 0 110px;max-width:120px}
    .wprz-paywall{padding:32px 16px}
    /* Dashboard mobile */
    .wprz-dash-stats{grid-template-columns:repeat(3,1fr);gap:8px}
    .wprz-dash-stat-num{font-size:22px}
    .wprz-dash-dates{flex-direction:column;align-items:flex-start;gap:8px}
    .wprz-dash-date-sep{display:none}
    .wprz-dash-date-item--right{text-align:left}
    .wprz-dash-card-top{flex-wrap:wrap}
    .wprz-dash-badge{align-self:flex-start}
    .wprz-dash-actions{flex-direction:column}
    .wprz-dash-btn{width:100%;text-align:center}
}
