/**
 * Hingenia Premium - Frontend Styles
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --hm-primary: #2F6FFF;
    --hm-primary-dark: #1a5be0;
    --hm-primary-light: #5b8cff;
    --hm-primary-rgb: 47, 111, 255;
    --hm-success: #28a745;
    --hm-danger: #dc3545;
    --hm-text: #333;
    --hm-text-muted: #666;
    --hm-border: #eaeaea;
    --hm-bg-light: #f5f7fa;
    --hm-radius: 12px;
    --hm-radius-sm: 8px;
    --hm-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ============================================
   Restricted Content
   ============================================ */
.hm-restricted-content {
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.hm-restriction-icon {
    color: #6c757d;
    margin-bottom: 15px;
}

.hm-restriction-message {
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.hm-restricted-excerpt {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #dee2e6;
    color: #6c757d;
}

.hm-restriction-actions {
    margin-top: 20px;
}

/* ============================================
   Buttons
   ============================================ */
.hm-btn,
.hm-btn-join-plan {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    line-height: 1.4;
}

.hm-btn-primary,
.hm-btn-join-plan {
    background: var(--hm-primary, #2F6FFF);
    color: #fff;
}

.hm-btn-primary:hover,
.hm-btn-join-plan:hover {
    background: var(--hm-primary-dark, #1a5be0);
    color: #fff;
}

.hm-btn-join-plan:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hm-btn-join-plan.hm-joining {
    opacity: 0.7;
}

.hm-btn-join-plan.hm-joined {
    background: #28a745;
}

/* ============================================
   Status Badges (frontend)
   ============================================ */
.hm-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-status-active {
    background: #d4edda;
    color: #155724;
}

.hm-status-pending {
    background: #fff3cd;
    color: #856404;
}

.hm-status-paused {
    background: #cce5ff;
    color: #004085;
}

.hm-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.hm-status-expired {
    background: #e2e3e5;
    color: #383d41;
}

/* ============================================
   My Memberships Table
   ============================================ */
.hm-my-memberships {
    margin: 20px 0;
}

.hm-memberships-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.hm-memberships-table thead {
    background: #f8f9fa;
}

.hm-memberships-table th,
.hm-memberships-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.hm-memberships-table th {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-memberships-table tbody tr:last-child td {
    border-bottom: none;
}

.hm-memberships-table tbody tr:hover {
    background: #f8f9fa;
}

.hm-no-memberships {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 15px;
}

/* ============================================
   Join Plan
   ============================================ */
.hm-join-plan {
    margin: 15px 0;
    text-align: center;
}

.hm-already-member {
    padding: 10px;
}

.hm-login-notice {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.hm-login-notice a {
    color: #0073aa;
    font-weight: 600;
}

/* ============================================
   Join Success Message
   ============================================ */
.hm-join-success {
    padding: 15px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    text-align: center;
    margin: 10px 0;
}

.hm-join-error {
    padding: 15px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    text-align: center;
    margin: 10px 0;
}

/* ============================================
   Tutor LMS Course Sidebar - Membership Box
   ============================================ */
.hm-tutor-membership-box {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.hm-membership-enrolled {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.hm-membership-enrolled p {
    color: #155724;
    margin: 10px 0 0;
}

.hm-membership-access {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.hm-membership-access p {
    color: #155724;
    margin: 10px 0 15px;
}

.hm-membership-cta {
    background: #f0f6fc;
    border: 2px solid #0073aa;
}

.hm-membership-cta h4 {
    color: #0073aa;
    margin: 0 0 10px;
    font-size: 18px;
}

.hm-membership-cta p {
    color: #495057;
    margin: 0 0 15px;
    font-size: 14px;
}

.hm-membership-badge {
    margin-bottom: 5px;
}

/* Plan list in course sidebar */
.hm-plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hm-plan-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.hm-plan-item strong {
    font-size: 15px;
    color: #1d2327;
}

.hm-plan-duration {
    font-size: 12px;
    color: #6c757d;
}

.hm-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Course price override labels */
.hm-course-included {
    display: inline-block;
    padding: 6px 14px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.hm-course-membership-price {
    display: block;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.hm-course-membership-price strong {
    color: #0073aa;
}

.hm-btn-enroll-course {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

/* ============================================
   Course Enrollment Shortcode [hm_course_enroll]
   ============================================ */
.hm-course-enroll-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card container */
.hm-ce-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f2;
}

/* Text */
.hm-ce-text {
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    text-align: center;
}

/* ---- ENROLLED STATE (Progress card) ---- */
.hm-ce-card-enrolled {
    text-align: center;
}

.hm-ce-progress-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.hm-ce-lesson-count {
    font-size: 28px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
}

/* Progress bar */
.hm-ce-progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hm-ce-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hm-progress-bar, #22c55e), var(--hm-btn-continue-dark, #16a34a));
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 10px;
    position: relative;
}

.hm-ce-progress-text {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding-right: 6px;
}

/* Action buttons */
.hm-ce-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

/* Base button — high specificity to override Elementor */
.hm-course-enroll-wrapper .hm-ce-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.25s ease !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

/* Start / Continue Learning (green) */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-start {
    background: linear-gradient(135deg, var(--hm-btn-continue, #22c55e), var(--hm-btn-continue-dark, #16a34a)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3) !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
    color: #fff !important;
}

/* Complete Course (purple) */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-complete {
    background: linear-gradient(135deg, var(--hm-btn-complete, #8b5cf6), var(--hm-btn-complete-dark, #7c3aed)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3) !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
    color: #fff !important;
}

/* Completed badge */
.hm-course-enroll-wrapper .hm-ce-completed-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    background: var(--hm-completed-badge-bg, #ECFDF5) !important;
    color: var(--hm-completed-badge-color, #059669) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.hm-course-enroll-wrapper .hm-ce-completed-badge svg {
    flex-shrink: 0;
}

/* Download Certificate */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-certificate {
    background: linear-gradient(135deg, var(--hm-btn-certificate, #f59e0b), var(--hm-btn-certificate-dark, #d97706)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    padding: 18px 24px !important;
    letter-spacing: 0.3px !important;
    position: relative;
    overflow: hidden;
}

.hm-course-enroll-wrapper .hm-ce-btn-certificate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hm-course-enroll-wrapper .hm-ce-btn-certificate:hover::before {
    left: 100%;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
    color: #fff !important;
}

/* Review / Watch Again */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-review {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 2px solid #cbd5e1 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-review:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #334155 !important;
}

/* Complete course form reset */
.hm-ce-actions form {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Enrollment info */
.hm-ce-enrollment-info {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-ce-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.hm-ce-info-row svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.hm-ce-info-row strong {
    color: #334155;
}

/* ---- HAS ACCESS STATE ---- */
.hm-ce-card-access {
    text-align: center;
}

.hm-ce-badge-access {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ECFDF5;
    color: #059669;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.hm-ce-badge-access svg {
    flex-shrink: 0;
}

.hm-ce-access-title {
    font-size: 17px;
    font-weight: 700;
    color: #4F46E5;
    margin: 0 0 8px;
}

.hm-ce-access-text {
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Enroll button (indigo) */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-enroll {
    background: linear-gradient(135deg, #4F46E5, #6366F1) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4) !important;
    color: #fff !important;
}

/* Cart/purchase button (blue) */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-cart {
    background: linear-gradient(135deg, #2563EB, #3B82F6) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
    color: #fff !important;
}

/* Login button (outline) */
.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-login {
    background: #F8FAFC !important;
    color: #4F46E5 !important;
    border: 2px solid #E2E8F0 !important;
}

.hm-course-enroll-wrapper .hm-ce-btn.hm-ce-btn-login:hover {
    background: #EEF2FF !important;
    border-color: #4F46E5 !important;
    transform: translateY(-2px);
    color: #4F46E5 !important;
}

/* Price */
.hm-ce-price {
    margin-bottom: 16px;
    text-align: center;
}

.hm-ce-price .woocommerce-Price-amount,
.hm-ce-price .hm-price {
    font-size: 32px;
    font-weight: 800;
    color: #1E293B;
    letter-spacing: -0.03em;
}

.hm-ce-price del .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 500;
    color: #94A3B8;
}

.hm-ce-price ins {
    text-decoration: none;
}

/* Divider */
.hm-ce-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.hm-ce-divider::before,
.hm-ce-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.hm-ce-divider span {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Plan name + button */
.hm-ce-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.hm-ce-btn-plan {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.hm-ce-btn-plan:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Enrollment animation */
.hm-enrolling {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.hm-enrolling::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: hm-spin 0.6s linear infinite;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes hm-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.hm-enrolled {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

/* ============================================
   Purchase Card (non-member premium view)
   ============================================ */
.hm-ce-card-purchase {
    padding: 0;
    overflow: hidden;
}

/* Price section */
.hm-ce-price-section {
    padding: 28px 24px 20px;
    text-align: center;
}

.hm-ce-price-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

/* Divider inside purchase card */
.hm-ce-card-purchase .hm-ce-divider {
    margin: 0;
    padding: 0 24px;
}

/* ============================================
   Premium CTA Block (light theme)
   ============================================ */
.hm-ce-premium-cta {
    background: var(--hm-cta-bg, #ffffff);
    padding: 28px 24px 24px;
    border-radius: 0 0 12px 12px;
}

/* When no price section above, full rounded */
.hm-ce-card-purchase > .hm-ce-premium-cta:first-child {
    border-radius: 12px;
}

/* Header with stars */
.hm-ce-premium-header {
    text-align: center;
    margin-bottom: 20px;
}

.hm-ce-premium-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.hm-ce-premium-icons svg {
    color: var(--hm-cta-accent, #2F6FFF);
    fill: var(--hm-cta-accent, #2F6FFF);
}

.hm-ce-premium-intro {
    color: var(--hm-cta-text, #334155) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Suggested plan card */
.hm-ce-premium-suggest {
    position: relative;
    margin-bottom: 20px;
}

.hm-ce-premium-savings {
    display: inline-block;
    background: var(--hm-cta-accent, linear-gradient(135deg, #2F6FFF, #1a5be0));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: -12px;
    position: relative;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
}

.hm-ce-premium-plan-card {
    background: var(--hm-cta-card, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 20px 20px;
    text-align: center;
}

.hm-ce-premium-plan-name {
    color: var(--hm-cta-text, #1a1a2e) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.hm-ce-premium-plan-desc {
    color: #64748b !important;
    font-size: 13px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1.4 !important;
}

/* Price row */
.hm-ce-premium-price-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hm-ce-premium-price-old {
    font-size: 13px;
    color: #64748b;
    text-decoration: line-through;
}

.hm-ce-premium-price-current {
    font-size: 28px;
    font-weight: 800;
    color: var(--hm-cta-text, #1a1a2e);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hm-ce-premium-price-period {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

/* Subscribe button (blue) */
.hm-ce-btn-subscribe {
    background: var(--hm-cta-btn, linear-gradient(135deg, #2F6FFF, #1a5be0)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(47, 111, 255, 0.35);
    font-size: 15px;
    font-weight: 700 !important;
    padding: 14px 24px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: block;
    box-sizing: border-box;
    text-decoration: none !important;
}

.hm-ce-btn-subscribe:hover {
    background: var(--hm-cta-btn-hover, linear-gradient(135deg, #1a5be0, #0d47c2)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 111, 255, 0.45);
    color: #fff !important;
}

/* Installments */
.hm-ce-premium-installments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.hm-ce-premium-installments svg {
    color: #64748b;
    flex-shrink: 0;
}

.hm-ce-premium-installments span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.hm-ce-premium-installments strong {
    color: var(--hm-cta-text, #1e293b);
}

/* "Ver otros planes" link */
.hm-ce-premium-link {
    display: block;
    text-align: center;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    padding-top: 4px;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.hm-ce-premium-link:hover {
    color: var(--hm-cta-text, #1e293b) !important;
    text-decoration: underline !important;
}

/* ============================================
   Pricing Plans Cards [hm_pricing_plans]
   ============================================ */
.hm-pricing-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Hero Header — high specificity to override theme styles */
.hm-pricing-wrapper .hm-pricing-hero {
    text-align: center !important;
    padding: 56px 32px 48px !important;
    margin-bottom: 40px !important;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 40%, #f5f3ff 70%, #faf5ff 100%) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(47, 111, 255, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.hm-pricing-wrapper .hm-pricing-hero::before {
    content: '' !important;
    position: absolute !important;
    top: -60% !important;
    right: -20% !important;
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(47, 111, 255, 0.07) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40% !important;
    left: -15% !important;
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero > * {
    position: relative !important;
    z-index: 1 !important;
}

.hm-pricing-wrapper .hm-pricing-hero p.hm-pricing-hero-title,
.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-title {
    font-size: 1.1rem !important;
    color: #666 !important;
    margin: 0 0 8px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero h2.hm-pricing-hero-brand,
.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-brand {
    font-size: 2.75rem !important;
    font-weight: 900 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    letter-spacing: 1.5px !important;
    border: none !important;
    background: linear-gradient(135deg, #2F6FFF 0%, #6366f1 50%, #8b5cf6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: #2F6FFF !important;
    text-transform: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero p.hm-pricing-hero-subtitle,
.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-subtitle {
    font-size: 1.05rem !important;
    color: #666 !important;
    margin: 0 auto 24px !important;
    max-width: 640px !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-divider {
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(90deg, #2F6FFF, #8b5cf6) !important;
    margin: 0 auto 24px !important;
    border-radius: 2px !important;
    border: none !important;
    padding: 0 !important;
}

.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-features {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #333 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(47, 111, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-badge:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(47, 111, 255, 0.12) !important;
    border-color: rgba(47, 111, 255, 0.25) !important;
}

.hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-badge svg {
    flex-shrink: 0 !important;
    color: #2F6FFF !important;
}

.hm-pricing-grid {
    display: grid;
    gap: 24px;
    align-items: stretch;
}

.hm-pricing-cols-1 .hm-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.hm-pricing-cols-2 .hm-pricing-grid { grid-template-columns: repeat(2, 1fr); }
.hm-pricing-cols-3 .hm-pricing-grid { grid-template-columns: repeat(3, 1fr); }
.hm-pricing-cols-4 .hm-pricing-grid { grid-template-columns: repeat(4, 1fr); }

/* Card base */
.hm-pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.hm-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Featured card */
.hm-pricing-featured {
    border: 2px solid var(--hm-primary, #2F6FFF);
    box-shadow: 0 10px 30px rgba(47, 111, 255, 0.12);
    transform: scale(1.03);
    z-index: 1;
}

.hm-pricing-featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 20px 40px rgba(47, 111, 255, 0.18);
}

/* Recommended badge */
.hm-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2F6FFF 0%, #1a5be0 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 24px;
    border-radius: 24px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(47, 111, 255, 0.3);
}

/* Header */
.hm-pricing-header {
    text-align: center;
    margin-bottom: 20px;
}

.hm-pricing-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--hm-primary, #2F6FFF);
}

.hm-pricing-featured .hm-pricing-icon {
    background: linear-gradient(135deg, #2F6FFF 0%, #1a5be0 100%);
    color: #fff;
}

.hm-pricing-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-pricing-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* Price section */
.hm-pricing-price-section {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.hm-pricing-regular {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.hm-pricing-current {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.hm-pricing-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--hm-primary, #2F6FFF);
    align-self: flex-start;
    margin-top: 8px;
}

.hm-pricing-amount {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    letter-spacing: -1px;
}

.hm-pricing-period {
    font-size: 15px;
    color: #888;
    font-weight: 500;
    margin-left: 2px;
}

.hm-pricing-discount {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    align-self: center;
}

/* Billing text */
.hm-pricing-billing {
    text-align: center;
    padding: 10px 16px;
    background: #f8f9fb;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Features list */
.hm-pricing-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}

.hm-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.hm-pricing-features li svg {
    flex-shrink: 0;
    color: var(--hm-primary, #2F6FFF);
    margin-top: 1px;
}

/* CTA button */
.hm-pricing-cta {
    margin-top: auto;
}

.hm-pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2F6FFF 0%, #1a5be0 100%);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 111, 255, 0.25);
    box-sizing: border-box;
}

.hm-pricing-btn:hover {
    background: linear-gradient(135deg, #1a5be0 0%, #0d47c2 100%);
    box-shadow: 0 6px 20px rgba(47, 111, 255, 0.35);
    transform: translateY(-2px);
    color: #fff;
}

.hm-pricing-btn:active {
    transform: translateY(0);
}

.hm-pricing-btn-disabled {
    background: #ccc;
    cursor: default;
    box-shadow: none;
}

.hm-pricing-btn-disabled:hover {
    background: #ccc;
    box-shadow: none;
    transform: none;
}

.hm-pricing-advisor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 20px;
    background: transparent;
    color: #25D366;
    border: 1.5px solid #25D366;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.hm-pricing-advisor-btn:hover {
    background: #25D366;
    color: #fff;
    transform: translateY(-1px);
}

.hm-pricing-advisor-btn svg {
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hm-memberships-table {
        font-size: 14px;
    }

    .hm-memberships-table th,
    .hm-memberships-table td {
        padding: 8px 10px;
    }

    .hm-restricted-content {
        padding: 25px 15px;
    }

    .hm-tutor-membership-box {
        padding: 15px;
    }

    /* Hero responsive */
    .hm-pricing-wrapper .hm-pricing-hero {
        padding: 40px 20px 36px !important;
        margin-bottom: 28px !important;
        border-radius: 16px !important;
    }

    .hm-pricing-wrapper .hm-pricing-hero h2.hm-pricing-hero-brand,
    .hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-brand {
        font-size: 1.85rem !important;
        letter-spacing: 0.5px !important;
    }

    .hm-pricing-wrapper .hm-pricing-hero p.hm-pricing-hero-subtitle,
    .hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-subtitle {
        font-size: 0.95rem !important;
    }

    .hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-features {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .hm-pricing-wrapper .hm-pricing-hero .hm-pricing-hero-badge {
        padding: 8px 16px !important;
        font-size: 0.825rem !important;
    }

    /* Pricing responsive */
    .hm-pricing-cols-2 .hm-pricing-grid,
    .hm-pricing-cols-3 .hm-pricing-grid,
    .hm-pricing-cols-4 .hm-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .hm-pricing-featured {
        transform: none;
    }

    .hm-pricing-featured:hover {
        transform: translateY(-6px);
    }

    .hm-pricing-card {
        padding: 28px 20px 20px;
    }

    .hm-pricing-amount {
        font-size: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hm-pricing-cols-3 .hm-pricing-grid,
    .hm-pricing-cols-4 .hm-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
