/* ===========================================================
 *  Mini IELTS Reading — Student Dashboard
 *  Styles for the [mrp_my_tests] shortcode
 * =========================================================== */
.mrp-dash {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    max-width: 1100px;
    margin: 0 auto;
}

.mrp-dash-msg {
    flex-basis: 100%;
    font-size: 13px;
    margin: 4px 0 0;
}
.mrp-dash-msg.is-error   { color: #b91c1c; }
.mrp-dash-msg.is-success { color: #047857; }

.mrp-dash-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.mrp-dash-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.mrp-dash-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.mrp-dash-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ----- Section ----- */
.mrp-dash-section {
    margin-bottom: 36px;
}
.mrp-dash-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.mrp-dash-section-icon {
    font-size: 18px;
}
.mrp-dash-section-count {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 999px;
    margin-left: auto;
}

/* ----- Test card grid ----- */
.mrp-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.mrp-dash-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    display: block;
}
.mrp-dash-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(15,23,42,0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.mrp-dash-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}
.mrp-dash-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}
.mrp-dash-card-best {
    color: #047857;
}
.mrp-dash-card-best b {
    color: #065f46;
}
.mrp-dash-card-new {
    color: #94a3b8;
    font-style: italic;
}

/* ----- Empty state ----- */
.mrp-dash-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
}

/* ----- Login box ----- */
.mrp-dash-loginbox {
    padding: 60px 20px;
}
.mrp-dash-loginbox-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
.mrp-dash-loginbox h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0f172a;
}
.mrp-dash-loginbox p {
    margin: 0 0 24px;
    color: #64748b;
}
.mrp-dash-loginbox-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================================================
 *  TEST CARD TAGS (level + words)
 * =========================================================== */
.mrp-dash-card {
    position: relative;
}
.mrp-dash-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.mrp-dash-card-level,
.mrp-dash-card-words {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
}
.mrp-dash-card-level {
    background: #eff6ff;
    color: #1e40af;
}
.mrp-dash-card-words {
    background: #f1f5f9;
    color: #475569;
}

/* ===========================================================
 *  MODAL (all-done) + LOADING
 * =========================================================== */
.mrp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mrp-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.mrp-modal-emoji {
    font-size: 56px;
    margin-bottom: 8px;
}
.mrp-modal-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #0f172a;
}
.mrp-modal-content p {
    margin: 0 0 24px;
    color: #475569;
    line-height: 1.6;
}

.mrp-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.mrp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: mrp-spin 0.8s linear infinite;
}
@keyframes mrp-spin {
    to { transform: rotate(360deg); }
}
.mrp-loading-overlay p {
    margin: 0;
    color: #475569;
    font-weight: 500;
}

/* ===========================================================
 *  DRAFTS (resume) — top section
 * =========================================================== */
.mrp-dash-drafts .mrp-dash-section-title {
    color: #1e40af;
}
.mrp-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mrp-draft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}
.mrp-draft-item:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 100%);
    transform: translateX(2px);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(59,130,246,0.15);
}
.mrp-draft-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mrp-draft-title {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}
.mrp-draft-meta {
    font-size: 12px;
    color: #475569;
}
.mrp-draft-meta b {
    color: #1e40af;
    font-weight: 700;
}
.mrp-draft-arrow {
    font-size: 13px;
    color: #2563eb;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ===========================================================
 *  STUDENT "MY FEEDBACK" — [mrp_my_feedback] shortcode
 * =========================================================== */
.mrp-my-feedback {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mrp-mf-title {
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 8px;
}
.mrp-mf-intro {
    color: #64748b;
    margin: 0 0 24px;
    font-size: 14px;
}
.mrp-mf-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 24px;
    text-align: center;
    border-radius: 8px;
    color: #64748b;
}
.mrp-mf-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mrp-mf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.mrp-mf-card.mrp-mf-status-new      { border-left: 3px solid #f59e0b; }
.mrp-mf-card.mrp-mf-status-reviewed { border-left: 3px solid #3b82f6; }
.mrp-mf-card.mrp-mf-status-resolved { border-left: 3px solid #10b981; }
.mrp-mf-card.mrp-mf-status-dismissed{ border-left: 3px solid #94a3b8; opacity: 0.7; }
.mrp-mf-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.mrp-mf-test-info {
    flex: 1;
}
.mrp-mf-test-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}
.mrp-mf-test-title a {
    color: #1e3a8a;
    text-decoration: none;
}
.mrp-mf-test-title a:hover { text-decoration: underline; }
.mrp-mf-qnum {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}
.mrp-mf-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.mrp-mf-badge-new       { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.mrp-mf-badge-reviewed  { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.mrp-mf-badge-resolved  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.mrp-mf-badge-dismissed { background: #e5e7eb; color: #6b7280; border: 1px solid #d1d5db; }

.mrp-mf-issue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
}
.mrp-mf-issue {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
}
.mrp-mf-date {
    color: #94a3b8;
}
.mrp-mf-desc,
.mrp-mf-admin-notes {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.mrp-mf-desc strong,
.mrp-mf-admin-notes strong {
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}
.mrp-mf-desc p,
.mrp-mf-admin-notes p {
    margin: 0;
    color: #475569;
}
.mrp-mf-admin-notes {
    background: #fef9e7;
    border-left: 3px solid #f59e0b;
    padding: 10px 12px;
    border-radius: 4px;
}
.mrp-mf-resolved {
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-top: 4px;
}

/* ============================================================
 *  Dashboard v2 — Sidebar + Main layout
 *  Use the 9Reading brand palette already defined in frontend.css
 *  (--mrp-cream, --mrp-coral, --mrp-moss, --mrp-ink, --mrp-cream-line)
 * ============================================================ */

.mrp-dash-v2 {
    background: var(--mrp-cream, #FBFAF6);
    color: var(--mrp-ink, #1A1816);
    padding: 0;
    max-width: 1280px;
    margin: 0 auto;
}

/* Drafts banner — sits ABOVE the main layout, full-width attention bar */
.mrp-dash-drafts-banner {
    background: var(--mrp-coral-soft, #F8E1DA);
    border-left: 4px solid var(--mrp-coral, #C8442C);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.mrp-dash-drafts-head {
    font-weight: 700;
    color: var(--mrp-coral, #C8442C);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mrp-dash-drafts-banner .mrp-drafts-list { gap: 8px; display: flex; flex-direction: column; }
.mrp-dash-drafts-banner .mrp-draft-item {
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
}

/* Profile card */
.mrp-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.mrp-profile-info { display: flex; align-items: center; gap: 16px; }
.mrp-profile-avatar {
    width: 64px; height: 64px;
    background: var(--mrp-coral-soft, #F8E1DA);
    color: var(--mrp-coral, #C8442C);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
    text-transform: uppercase;
}
.mrp-profile-details h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.mrp-profile-details p { color: var(--mrp-ink-soft, #5C5853); margin: 2px 0; font-size: 13px; }
.mrp-profile-stats { font-size: 12px !important; }

/* Card title — coral dash before label */
.mrp-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mrp-ink-soft, #5C5853);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mrp-card-title::before {
    content: '';
    display: inline-block;
    width: 18px; height: 2px;
    background: var(--mrp-coral, #C8442C);
}

/* Progress bars list */
.mrp-progress-list { display: flex; flex-direction: column; gap: 14px; }
.mrp-progress-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mrp-progress-label {
    width: 240px;
    flex-shrink: 0;
    font-weight: 500;
    font-size: 14px;
    display: flex; align-items: center; gap: 8px;
}
.mrp-badge-weak {
    background: var(--mrp-coral-soft, #F8E1DA);
    color: var(--mrp-coral, #C8442C);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}
.mrp-progress-bar-container { flex: 1; display: flex; align-items: center; }
.mrp-progress-track {
    width: 100%;
    height: 8px;
    background: var(--mrp-cream-deep, #F4EFE2);
    border-radius: 4px;
    overflow: hidden;
}
.mrp-progress-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.mrp-progress-fill.is-weak { background: var(--mrp-coral, #C8442C); }
.mrp-progress-fill.is-okay { background: #E8A33D; }     /* warm orange */
.mrp-progress-fill.is-good { background: var(--mrp-moss, #2F5D3A); }
.mrp-progress-percent {
    width: 44px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    color: var(--mrp-ink-soft, #5C5853);
}

.mrp-tab-btn {
    background: transparent;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--mrp-ink-soft, #5C5853);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: 0.15s;
}
.mrp-tab-btn:hover { color: var(--mrp-ink, #1A1816); }
.mrp-tab-btn.is-active {
    color: var(--mrp-coral, #C8442C);
    border-bottom-color: var(--mrp-coral, #C8442C);
}
.mrp-tab-content { display: none; }
.mrp-tab-content.is-active { display: block; }

/* Practice row — clickable, expandable */
.mrp-practice-row {
    border-bottom: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-practice-row:last-child { border-bottom: 0; }
.mrp-practice-header {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.mrp-practice-header:hover { background: var(--mrp-cream, #FBFAF6); }

.mrp-practice-header[aria-expanded="true"] .mrp-practice-chevron {
    transform: rotate(180deg);
}

/* Practice detail (accordion content) */
.mrp-practice-detail {
    padding: 4px 0 20px;
    animation: mrpExpand 0.25s ease-out;
}
@keyframes mrpExpand {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mrp-detail-loading {
    padding: 14px;
    text-align: center;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 13px;
}
.mrp-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--mrp-cream, #FBFAF6);
    border-radius: 8px;
    padding: 16px;
}
.mrp-detail-section h5 {
    margin: 0 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--mrp-ink-soft, #5C5853);
    font-weight: 700;
}
/* Mini bar chart for accuracy history */
.mrp-detail-chart {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 8px 0 0;
    border-bottom: 1px dashed var(--mrp-cream-line, #E8E2D2);
}
.mrp-chart-bar {
    flex: 1;
    background: var(--mrp-moss-soft, #DCEBDF);
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    position: relative;
    transition: 0.2s;
}
.mrp-chart-bar.is-low { background: var(--mrp-coral-soft, #F8E1DA); }
.mrp-chart-bar.is-mid { background: #FCE7B8; }
.mrp-chart-bar:hover::after {
    content: attr(data-pct) '%';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mrp-ink, #1A1816);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    margin-bottom: 4px;
}
.mrp-detail-chart-empty {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 12px;
    font-style: italic;
}
.mrp-chart-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--mrp-ink-soft, #5C5853);
}
.mrp-chart-stat b {
    color: var(--mrp-ink, #1A1816);
    font-weight: 700;
}

/* 3 recent submissions list */
.mrp-detail-recent { display: flex; flex-direction: column; gap: 8px; }
.mrp-recent-item {
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}
.mrp-recent-info { flex: 1; min-width: 0; }
.mrp-recent-title {
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mrp-recent-meta { color: var(--mrp-ink-soft, #5C5853); font-size: 11px; }
.mrp-recent-pct {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    flex-shrink: 0;
}
.mrp-recent-pct.is-high { background: var(--mrp-moss-soft, #DCEBDF); color: var(--mrp-moss, #2F5D3A); }
.mrp-recent-pct.is-mid  { background: #FCE7B8; color: #7A5C00; }
.mrp-recent-pct.is-low  { background: var(--mrp-coral-soft, #F8E1DA); color: var(--mrp-coral, #C8442C); }
.mrp-recent-review {
    color: var(--mrp-ink-soft, #5C5853);
    text-decoration: none;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-recent-review:hover {
    background: var(--mrp-ink, #1A1816);
    color: #fff;
    border-color: var(--mrp-ink, #1A1816);
}
.mrp-recent-empty {
    padding: 14px;
    text-align: center;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 12px;
    font-style: italic;
    background: #fff;
    border-radius: 6px;
}

/* Practice button (full-width below the 2-column grid) */
.mrp-detail-action {
    grid-column: 1 / -1;
    margin-top: 4px;
}
.mrp-btn-practice {
    width: 100%;
    background: var(--mrp-coral, #C8442C);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.15s;
    font-family: inherit;
}
.mrp-btn-practice:hover {
    background: var(--mrp-coral-hover, #A8341E);
    color: #fff;
}
.mrp-btn-practice:disabled {
    background: var(--mrp-cream-line, #E8E2D2);
    color: var(--mrp-ink-soft, #5C5853);
    cursor: not-allowed;
}

/* Hybrid row — non-expandable, uses direct button */
.mrp-practice-row-hybrid {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}
.mrp-practice-row-hybrid .mrp-btn-practice {
    width: auto;
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 860px) {
    .mrp-detail-body { grid-template-columns: 1fr; }
    .mrp-progress-label { width: 50%; font-size: 13px; }
}

/* ============================================================
 *  Dashboard v3 — Single-column simplified layout
 *  + Skill detail subpage with line chart
 * ============================================================ */

.mrp-dash-v3 {
    max-width: 960px;
    margin: 0 auto;
}

/* Hint under card title */
.mrp-card-hint {
    margin: -8px 0 16px;
    font-size: 13px;
    color: var(--mrp-ink-soft, #5C5853);
    font-style: italic;
}

/* Progress items as clickable links */
.mrp-progress-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    margin: -8px -14px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.mrp-progress-item-link:hover {
    background: var(--mrp-cream, #FBFAF6);
    color: inherit;
}
.mrp-progress-arrow {
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.mrp-progress-item-link:hover .mrp-progress-arrow {
    transform: translateX(2px);
    color: var(--mrp-coral, #C8442C);
}

/* Hybrid CTA card */
.mrp-hybrid-cta-card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.mrp-hybrid-info { flex: 1; min-width: 240px; }
.mrp-hybrid-info h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
}
.mrp-hybrid-info p {
    margin: 0;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 13px;
}
.mrp-hybrid-cta-card .mrp-btn-practice {
    width: auto;
    padding: 10px 24px;
}

/* Full-passage CTA — own brand-coral accent variant of hybrid card */
.mrp-fullpassage-cta-card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-left: 4px solid var(--mrp-coral, #C8442C);
}
.mrp-fullpassage-info { flex: 1; min-width: 240px; }
.mrp-fullpassage-info h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
}
.mrp-fullpassage-info p {
    margin: 0;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 13px;
}
.mrp-fullpassage-cta-card .mrp-btn-practice {
    width: auto;
    padding: 10px 24px;
}

/* ============== Skill subpage ============== */
.mrp-skill-page {
    padding-top: 20px;
}
.mrp-skill-back {
    display: inline-block;
    color: var(--mrp-ink-soft, #5C5853);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 4px 0;
    transition: color 0.15s;
}
.mrp-skill-back:hover { color: var(--mrp-coral, #C8442C); }

.mrp-skill-head {
    margin-bottom: 20px;
}
.mrp-skill-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
}
.mrp-skill-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(26, 24, 22, 0.04);
}
.mrp-skill-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mrp-skill-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
    font-variant-numeric: tabular-nums;
}
.mrp-skill-stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--mrp-ink-soft, #5C5853);
    font-weight: 600;
}

/* Line chart */
.mrp-line-chart {
    width: 100%;
    height: auto;
    max-height: 280px;
    display: block;
}
.mrp-line-chart-caption {
    text-align: center;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 12px;
    font-style: italic;
    margin: 8px 0 0;
}
.mrp-line-chart-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 14px;
    background: var(--mrp-cream, #FBFAF6);
    border-radius: 8px;
}

/* Skill recent submissions */
.mrp-skill-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mrp-skill-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--mrp-cream, #FBFAF6);
    border-radius: 8px;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-skill-recent-info { flex: 1; min-width: 0; }
.mrp-skill-recent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mrp-ink, #1A1816);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mrp-skill-recent-meta {
    font-size: 12px;
    color: var(--mrp-ink-soft, #5C5853);
}
.mrp-skill-empty {
    padding: 30px;
    text-align: center;
    color: var(--mrp-ink-soft, #5C5853);
    font-style: italic;
    margin: 0;
}

.mrp-btn-practice-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(200, 68, 44, 0.25);
}

@media (max-width: 600px) {
    .mrp-skill-title { font-size: 22px; }
    .mrp-skill-stats { gap: 16px; padding: 12px 16px; }
    .mrp-skill-stat-num { font-size: 18px; }
    .mrp-progress-item-link { flex-wrap: wrap; }
    .mrp-progress-label { width: 100%; margin-bottom: 6px; }
}

/* ============================================================
 *  v3.1 — Skill stats row redesign (stats + inline CTA)
 *         + Account edit form
 * ============================================================ */

/* Stats row — 2 stats on the left, CTA on the right */
.mrp-skill-stats-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(26, 24, 22, 0.04);
}
.mrp-skill-stats-row .mrp-skill-stats {
    flex: 1;
    display: flex;
    gap: 32px;
    padding: 16px 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-items: center;
}
.mrp-skill-cta-inline {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--mrp-cream, #FBFAF6);
    border-left: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-skill-cta-inline .mrp-btn-practice {
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 14px;
}

.mrp-account-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
}
.mrp-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mrp-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mrp-ink, #1A1816);
}
.mrp-form-row label small {
    font-weight: 400;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 11px;
    margin-left: 4px;
}
.mrp-form-row small {
    font-size: 11px;
    color: var(--mrp-ink-soft, #5C5853);
    margin-top: 2px;
}
.mrp-form-row input {
    padding: 8px 12px;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s;
}
.mrp-form-row input:focus {
    outline: none;
    border-color: var(--mrp-coral, #C8442C);
}
.mrp-form-divider {
    height: 1px;
    background: var(--mrp-cream-line, #E8E2D2);
    margin: 6px 0;
}
.mrp-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}
.mrp-account-msg {
    font-size: 13px;
    color: var(--mrp-ink-soft, #5C5853);
}
.mrp-account-msg.is-success { color: var(--mrp-moss, #2F5D3A); font-weight: 600; }
.mrp-account-msg.is-error   { color: var(--mrp-coral, #C8442C); font-weight: 600; }

/* Mobile */
@media (max-width: 600px) {
    .mrp-skill-stats-row { flex-direction: column; }
    .mrp-skill-cta-inline {
        border-left: 0;
        border-top: 1px solid var(--mrp-cream-line, #E8E2D2);
        justify-content: center;
    }
    .mrp-skill-cta-inline .mrp-btn-practice { width: 100%; }
}

/* ============================================================
 *  v3.2 — Edit info button in profile card (collapsible form)
 * ============================================================ */

.mrp-profile-edit-toggle {
    margin-top: 6px;
    margin-bottom: 6px;
    background: transparent;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    color: var(--mrp-ink, #1A1816);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mrp-profile-edit-toggle:hover {
    background: var(--mrp-cream, #FBFAF6);
    border-color: var(--mrp-ink, #1A1816);
}
.mrp-profile-edit-toggle.is-open {
    background: var(--mrp-coral-soft, #F8E1DA);
    border-color: var(--mrp-coral, #C8442C);
    color: var(--mrp-coral, #C8442C);
}

/* Form actions: cancel button styling */
.mrp-form-actions #mrp-account-cancel {
    background: transparent;
    color: var(--mrp-ink-soft, #5C5853);
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-form-actions #mrp-account-cancel:hover {
    background: var(--mrp-cream, #FBFAF6);
}

/* ============================================================
 *  v3.3 — Account edit MODAL popup
 * ============================================================ */

/* Modal overlay sizing — account form needs more room than alldone modal */
.mrp-account-modal {
    background: rgba(26, 24, 22, 0.55);
    backdrop-filter: blur(2px);
    overflow-y: auto;
    padding: 40px 16px;
    align-items: flex-start;  /* allow scroll if form taller than viewport */
}
.mrp-account-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 480px;
    width: 100%;
    text-align: left;       /* override centered alldone modal */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    margin: auto;           /* center vertically when smaller than viewport */
    animation: mrpAccountPop 0.18s ease-out;
}
@keyframes mrpAccountPop {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button (top-right X) */
.mrp-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--mrp-ink-soft, #5C5853);
    transition: 0.15s;
    font-family: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mrp-modal-close:hover {
    background: var(--mrp-cream-deep, #F4EFE2);
    color: var(--mrp-ink, #1A1816);
}

/* Form inside modal — full width since modal already constrains it */
.mrp-account-modal-content .mrp-account-form { max-width: 100%; }
.mrp-account-modal-content .mrp-card-title { margin-bottom: 18px; }

/* Mobile: modal takes near-full screen */
@media (max-width: 600px) {
    .mrp-account-modal { padding: 20px 12px; }
    .mrp-account-modal-content { padding: 20px 18px; }
}

/* ============================================================
 *  v3.4 — Dashboard polish: spacing, hierarchy, typography
 *  Overrides earlier v2/v3 rules where needed.
 * ============================================================ */

/* Container — generous breathing room */
.mrp-dash-v3 {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ---- Hero greeting ---- */
.mrp-dash-hero {
    margin-bottom: 32px;
}
.mrp-hero-title {
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 800;
    color: var(--mrp-ink, #1A1816);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mrp-hero-wave {
    display: inline-block;
    animation: mrpWave 1.8s ease-in-out 1;
    transform-origin: 70% 70%;
}
@keyframes mrpWave {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(12deg); }
    80% { transform: rotate(-6deg); }
}
.mrp-hero-sub {
    margin: 0;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 15px;
}

/* ---- Card baseline (override smaller v2) ---- */
.mrp-dash-v3 .mrp-dash-card {
    padding: 24px 28px;
    margin-bottom: 24px;
    border-radius: 14px;
}
.mrp-dash-v3 .mrp-dash-card:last-of-type { margin-bottom: 0; }

/* ---- Profile card 2-row layout ---- */
.mrp-dash-v3 .mrp-profile-card {
    display: block;
    padding: 0;
}
.mrp-profile-row {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.mrp-profile-row-main {
    border-bottom: 1px solid var(--mrp-cream-line, #E8E2D2);
}

/* Profile info refinement */
.mrp-profile-card .mrp-profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    box-shadow: 0 2px 4px rgba(200, 68, 44, 0.12);
}
.mrp-profile-details h2 { font-size: 19px; }
.mrp-profile-details p { font-size: 13px; }
.mrp-profile-stats { margin-top: 4px !important; }

/* Edit toggle button position — top-right of profile-row-main */
.mrp-profile-edit-toggle {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* ---- Section title (page-level h2) — used above class tests ---- */
.mrp-dash-v3 .mrp-dash-section {
    margin-bottom: 24px;
}
.mrp-dash-v3 .mrp-dash-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mrp-ink-soft, #5C5853);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mrp-cream-line, #E8E2D2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mrp-dash-v3 .mrp-dash-section-title::before {
    content: '';
    display: inline-block;
    width: 18px; height: 2px;
    background: var(--mrp-coral, #C8442C);
    flex-shrink: 0;
}
.mrp-dash-v3 .mrp-dash-section-icon { display: none; }  /* coral dash replaces emoji */
.mrp-dash-v3 .mrp-dash-section-count {
    margin-left: auto;
    background: var(--mrp-cream-deep, #F4EFE2);
    color: var(--mrp-ink-soft, #5C5853);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.4px;
}

/* ---- Card title spacing inside cards ---- */
.mrp-dash-v3 .mrp-dash-card .mrp-card-title {
    margin: 0 0 14px;
}
.mrp-dash-v3 .mrp-card-hint {
    margin: -8px 0 18px;
    font-size: 13px;
}

/* ---- Progress list spacing ---- */
.mrp-dash-v3 .mrp-progress-list { gap: 6px; }
.mrp-dash-v3 .mrp-progress-item-link {
    padding: 14px 16px;
    margin: 0 -16px;
    border-radius: 10px;
}
.mrp-dash-v3 .mrp-progress-label {
    width: 220px;
    font-size: 14px;
    font-weight: 500;
}

/* ---- Hybrid CTA refinement ---- */
.mrp-dash-v3 .mrp-hybrid-cta-card {
    background: linear-gradient(135deg, var(--mrp-cream, #FBFAF6) 0%, #fff 100%);
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-dash-v3 .mrp-hybrid-info h4 { font-size: 17px; }
.mrp-dash-v3 .mrp-hybrid-info p { font-size: 13px; line-height: 1.5; }

/* ---- Full-passage CTA refinement ---- */
.mrp-dash-v3 .mrp-fullpassage-cta-card {
    background: linear-gradient(135deg, var(--mrp-coral-soft, #F8E1DA) 0%, #fff 100%);
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
}
.mrp-dash-v3 .mrp-fullpassage-info h4 { font-size: 17px; }
.mrp-dash-v3 .mrp-fullpassage-info p { font-size: 13px; line-height: 1.5; }

/* ---- Drafts banner spacing ---- */
.mrp-dash-v3 .mrp-dash-drafts-banner {
    margin-bottom: 24px;
    padding: 20px 24px;
}

/* ---- Empty state ---- */
.mrp-dash-v3 .mrp-dash-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--mrp-ink-soft, #5C5853);
    font-size: 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed var(--mrp-cream-line, #E8E2D2);
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
    .mrp-dash-v3 { padding: 24px 16px 60px; }
    .mrp-hero-title { font-size: 24px; }
    .mrp-profile-row { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .mrp-profile-row-main { align-items: flex-start; }
    .mrp-profile-edit-toggle { align-self: flex-start; }
    .mrp-dash-v3 .mrp-dash-card { padding: 20px; }
    .mrp-dash-v3 .mrp-progress-label { width: 100%; }
}

/* ============================================================
 *  v3.5 — Modal polish + theme button overrides
 *  Fix close button shape (ellipse → circle) and submit button
 *  bleeding through to Flatsome theme's blue.
 * ============================================================ */

/* Membership badge */
.mrp-membership-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    vertical-align: middle;
}
.mrp-membership-badge.is-free {
    background: var(--mrp-cream-deep, #F4EFE2);
    color: var(--mrp-ink-soft, #5C5853);
}
.mrp-membership-badge.is-paid {
    background: var(--mrp-coral, #C8442C);
    color: #fff;
    box-shadow: 0 2px 4px rgba(200, 68, 44, 0.18);
}
.mrp-membership-expire {
    font-size: 12px;
    color: var(--mrp-ink-soft, #5C5853);
    margin-left: 6px;
}
.mrp-profile-stats .mrp-profile-stat-sep {
    color: var(--mrp-cream-line, #E8E2D2);
    margin: 0 4px;
}
.mrp-profile-stats .mrp-profile-stat {
    font-size: 12px;
    color: var(--mrp-ink-soft, #5C5853);
}

/* ---------- Modal close button fix ---------- */
.mrp-account-modal-content .mrp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent !important;
    border: 0 !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: var(--mrp-ink-soft, #5C5853);
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    text-shadow: none;
    box-sizing: border-box;
}
.mrp-account-modal-content .mrp-modal-close:hover,
.mrp-account-modal-content .mrp-modal-close:focus {
    background: var(--mrp-cream-deep, #F4EFE2) !important;
    color: var(--mrp-ink, #1A1816) !important;
    outline: none;
}

/* ---------- Modal form buttons — override theme (Flatsome etc.) ---------- */
.mrp-account-modal-content .mrp-form-actions {
    margin-top: 8px;
    align-items: center;
    gap: 12px;
}
.mrp-account-modal-content .mrp-dash-btn,
.mrp-account-modal-content button.mrp-dash-btn,
.mrp-account-modal-content button.mrp-dash-btn-primary {
    background: #fff !important;
    color: var(--mrp-ink, #1A1816) !important;
    border: 1px solid var(--mrp-cream-line, #E8E2D2) !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    transition: 0.15s;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    min-height: auto !important;
    margin: 0 !important;
}
.mrp-account-modal-content button.mrp-dash-btn-primary,
.mrp-account-modal-content .mrp-dash-btn-primary {
    background: var(--mrp-coral, #C8442C) !important;
    border-color: var(--mrp-coral, #C8442C) !important;
    color: #fff !important;
}
.mrp-account-modal-content button.mrp-dash-btn-primary:hover {
    background: var(--mrp-coral-hover, #A8341E) !important;
    border-color: var(--mrp-coral-hover, #A8341E) !important;
}
.mrp-account-modal-content button.mrp-dash-btn:not(.mrp-dash-btn-primary):hover {
    background: var(--mrp-cream, #FBFAF6) !important;
    border-color: var(--mrp-ink-soft, #5C5853) !important;
}

/* Modal form inputs — focus state in coral not theme red */
.mrp-account-modal-content .mrp-form-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px !important;
    border: 1px solid var(--mrp-cream-line, #E8E2D2) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: var(--mrp-ink, #1A1816) !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.mrp-account-modal-content .mrp-form-row input:focus {
    outline: none !important;
    border-color: var(--mrp-coral, #C8442C) !important;
    box-shadow: 0 0 0 3px rgba(200, 68, 44, 0.12) !important;
}

/* Form labels + helper text inside modal */
.mrp-account-modal-content .mrp-form-row { gap: 6px; margin-bottom: 4px; }
.mrp-account-modal-content .mrp-form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mrp-ink, #1A1816);
    margin: 0;
}
.mrp-account-modal-content .mrp-form-row label small,
.mrp-account-modal-content .mrp-form-row > small {
    font-size: 11px;
    color: var(--mrp-ink-soft, #5C5853);
    font-weight: 400;
    margin-top: 2px;
}
.mrp-account-modal-content .mrp-form-divider {
    margin: 4px 0;
}
.mrp-account-modal-content .mrp-card-title {
    margin-bottom: 20px !important;
    padding-right: 50px;  /* leave room for close button */
}



/* ============================================================
 *  v1.27 — Upgrade-to-Pro landing page
 *  Used at /<dashboard>/upgrade/ for free users who exhausted public tests.
 * ============================================================ */

.mrp-upgrade-page { max-width: 880px; }

/* ---- Hero ---- */
.mrp-upgrade-hero {
    background: linear-gradient(135deg,
        var(--mrp-coral-soft, #F8E1DA) 0%,
        #FBF1ED 60%,
        #fff 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(200, 68, 44, 0.06);
    position: relative;
    overflow: hidden;
}
.mrp-upgrade-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(200,68,44,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.mrp-upgrade-badge {
    display: inline-block;
    background: #fff;
    color: var(--mrp-coral, #C8442C);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(200, 68, 44, 0.12);
}
.mrp-upgrade-title {
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--mrp-ink, #1A1816);
    margin: 0 0 16px;
    letter-spacing: -0.8px;
}
.mrp-upgrade-accent {
    color: var(--mrp-coral, #C8442C);
    position: relative;
}
.mrp-upgrade-accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 6px;
    background: var(--mrp-highlight, #FFE34A);
    z-index: -1;
    border-radius: 3px;
}
.mrp-upgrade-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--mrp-ink-soft, #5C5853);
    max-width: 580px;
    margin: 0 auto 28px;
}

/* CTA buttons */
.mrp-upgrade-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.mrp-btn-upgrade-primary {
    display: inline-block;
    background: var(--mrp-coral, #C8442C);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(200, 68, 44, 0.32);
    transition: 0.18s;
    border: 0;
    cursor: pointer;
}
.mrp-btn-upgrade-primary:hover {
    background: var(--mrp-coral-hover, #A8341E);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 68, 44, 0.4);
    color: #fff !important;
}
.mrp-btn-upgrade-large {
    padding: 18px 40px;
    font-size: 17px;
}

/* Skill page CTA when source=upgrade */
.mrp-btn-upgrade {
    background: var(--mrp-coral, #C8442C) !important;
    border: 0;
    box-shadow: 0 4px 12px rgba(200, 68, 44, 0.28);
}
.mrp-btn-upgrade:hover {
    background: var(--mrp-coral-hover, #A8341E) !important;
}

/* ---- Stats strip ---- */
.mrp-upgrade-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.mrp-upgrade-stat-item {
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}
.mrp-upgrade-stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--mrp-coral, #C8442C);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}
.mrp-upgrade-stat-lbl {
    font-size: 13px;
    color: var(--mrp-ink-soft, #5C5853);
    line-height: 1.4;
}

/* ---- Section titles ---- */
.mrp-upgrade-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
    margin: 0 0 24px;
    text-align: center;
}

/* ---- Pro feature list (v1.27.10+) ---- */
.mrp-upgrade-features { margin-bottom: 48px; }
.mrp-pro-features-card {
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}
.mrp-pro-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--mrp-ink, #1A1816);
}
.mrp-pro-feature-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mrp-coral, #C8442C);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-top: 1px;
}
.mrp-pro-feature-text {
    flex: 1;
    font-weight: 500;
}

@media (max-width: 720px) {
    .mrp-pro-features-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 14px;
    }
    .mrp-pro-feature-row { font-size: 14px; }
}

/* ---- Benefits grid ---- */
.mrp-upgrade-benefits { margin-bottom: 48px; }
.mrp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.mrp-benefit-card {
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 14px;
    padding: 24px;
    transition: 0.2s;
}
.mrp-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: var(--mrp-coral-soft, #F8E1DA);
}
.mrp-benefit-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.mrp-benefit-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
}
.mrp-benefit-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--mrp-ink-soft, #5C5853);
}

/* ---- Final CTA ---- */
.mrp-upgrade-final {
    text-align: center;
    background: var(--mrp-ink, #1A1816);
    color: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    margin-bottom: 0;
}
.mrp-upgrade-final h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}
.mrp-upgrade-final p {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.mrp-upgrade-final .mrp-btn-upgrade-primary {
    background: var(--mrp-coral, #C8442C);
    box-shadow: 0 6px 24px rgba(200, 68, 44, 0.5);
}

/* Mobile */
@media (max-width: 720px) {
    .mrp-upgrade-hero { padding: 32px 20px; }
    .mrp-upgrade-title { font-size: 28px; }
    .mrp-upgrade-sub { font-size: 14px; }
    .mrp-upgrade-stats { grid-template-columns: 1fr; }
    .mrp-upgrade-stat-num { font-size: 28px; }
    .mrp-compare-row { grid-template-columns: 1.6fr 1fr 1fr; }
    .mrp-compare-cell { padding: 10px 12px; font-size: 13px; }
    .mrp-benefits-grid { grid-template-columns: 1fr; }
    .mrp-upgrade-final { padding: 32px 20px; }
    .mrp-upgrade-final h2 { font-size: 20px; }
    .mrp-upgrade-cta-row { flex-direction: column; }
    .mrp-btn-upgrade-primary {
        width: 100%; box-sizing: border-box;
    }
}

/* ============================================================
 *  v1.27.1 — [mrp_practice_button] standalone shortcode
 *  Self-contained styling — works on any page, not just dashboard.
 * ============================================================ */

.mrp-shortcode-btn {
    display: inline-block;
    background: var(--mrp-coral, #C8442C);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.3;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(200, 68, 44, 0.18);
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    box-sizing: border-box;
}
.mrp-shortcode-btn:hover {
    background: var(--mrp-coral-hover, #A8341E);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 68, 44, 0.28);
    text-decoration: none !important;
}

/* Upgrade variant — same coral with extra shadow for emphasis */
.mrp-shortcode-btn.mrp-btn-upgrade {
    background: var(--mrp-coral, #C8442C);
    box-shadow: 0 4px 14px rgba(200, 68, 44, 0.32);
}

/* Login variant — softer, secondary */
.mrp-shortcode-btn.mrp-btn-source-login {
    background: var(--mrp-ink, #1A1816);
    box-shadow: 0 2px 8px rgba(26, 24, 22, 0.18);
}
.mrp-shortcode-btn.mrp-btn-source-login:hover {
    background: #000;
}

/* Large size */
.mrp-shortcode-btn.mrp-btn-practice-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

/* Disabled state — span, not link */
.mrp-shortcode-disabled {
    display: inline-block;
    background: var(--mrp-cream-deep, #F4EFE2);
    color: var(--mrp-ink-soft, #5C5853);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px dashed var(--mrp-cream-line, #E8E2D2);
    cursor: not-allowed;
}

/* Error fallback (admin-facing) */
.mrp-shortcode-error {
    display: inline-block;
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
}

/* ============================================================
 *  v1.27.7 — [mrp_practice_button] CARD layout (default display)
 *  Renders: type name (header) + Practice button (below), centered.
 *  Use display="button" for the legacy minimal button-only output.
 * ============================================================ */

.mrp-practice-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--mrp-cream-line, #E8E2D2);
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(26, 24, 22, 0.05);
    text-align: center;
    min-width: 220px;
    max-width: 320px;
    margin: 8px;
    vertical-align: top;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    box-sizing: border-box;
}
.mrp-practice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 24, 22, 0.08);
    border-color: var(--mrp-coral-soft, #F8E1DA);
}

.mrp-practice-card-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--mrp-ink, #1A1816);
    line-height: 1.35;
    letter-spacing: -0.2px;
}

/* Upgrade variant — soft coral tint to stand out */
.mrp-practice-card-upgrade {
    background: linear-gradient(180deg, #fff 0%, var(--mrp-coral-soft, #F8E1DA) 100%);
    border-color: var(--mrp-coral-soft, #F8E1DA);
}
.mrp-practice-card-upgrade .mrp-practice-card-label {
    color: var(--mrp-coral, #C8442C);
}

/* Disabled state — muted, no hover effect */
.mrp-practice-card-disabled {
    background: var(--mrp-cream, #FBFAF6);
    box-shadow: none;
}
.mrp-practice-card-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--mrp-cream-line, #E8E2D2);
}
.mrp-practice-card-disabled .mrp-practice-card-label {
    color: var(--mrp-ink-soft, #5C5853);
}

/* Mobile — go full-width so multiple cards stack cleanly */
@media (max-width: 480px) {
    .mrp-practice-card {
        display: flex;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 8px 0;
    }
}
