/* MHQuickDEV AI Health Tool - Solid Color Premium UI CSS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Scoping & Theme Isolation Reset */
.mhq-ai-app-container,
.mhq-ai-app-container * {
    box-sizing: border-box;
}

.mhq-ai-app-container button,
.mhq-ai-app-container input,
.mhq-ai-app-container select,
.mhq-ai-app-container textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.mhq-ai-app-container {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    border-radius: 20px;
    padding: 35px;
    margin: 20px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
}

/* App Header Bar */
.mhq-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 15px;
}

.mhq-app-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mhq-brand-icon {
    width: 48px;
    height: 48px;
    background: #10b981;
    color: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mhq-brand-titles h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #0f172a !important;
    letter-spacing: -0.5px;
}

.mhq-brand-titles p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    font-weight: 500;
}

.mhq-app-credits {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mhq-credits-num {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
}

.mhq-credits-txt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #166534;
    letter-spacing: 0.5px;
}

.mhq-topup-header-btn {
    background: #10b981;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
}

.mhq-topup-header-btn:hover {
    background: #059669;
}

.mhq-back-link-btn {
    background: #ffffff;
    color: #059669 !important;
    border: 1.5px solid #10b981;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mhq-back-link-btn:hover {
    background: #f0fdf4;
    border-color: #059669;
}

/* Dashboard Top Section: Health Score & Personal Insights */
.mhq-dash-top-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 950px) {
    .mhq-dash-top-section {
        grid-template-columns: 1fr;
    }
}

/* Health Score Card */
.mhq-health-score-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.mhq-health-score-card h4 {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 15px 0 !important;
}

.mhq-score-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 15px auto;
}

.mhq-score-ring-svg {
    transform: rotate(-90deg);
    width: 140px;
    height: 140px;
}

.mhq-score-ring-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 10;
}

.mhq-score-ring-progress {
    fill: none;
    stroke: #10b981;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 52;
    transition: stroke-dashoffset 1s ease;
}

.mhq-score-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mhq-score-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.mhq-score-label {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    margin-top: 4px;
}

.mhq-score-footer {
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

/* Right Section Stack */
.mhq-dash-right-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Personalized Insights Card */
.mhq-insights-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.mhq-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mhq-insights-header h4 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.mhq-insights-header a {
    color: #10b981 !important;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: color 0.2s;
}

.mhq-insights-header a:hover {
    color: #059669 !important;
}

.mhq-insights-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mhq-insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s, border-color 0.2s;
}

.mhq-insight-item:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mhq-insight-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mhq-insight-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mhq-insight-icon-badge.green {
    background: #dcfce7;
    color: #10b981;
}

.mhq-insight-icon-badge.orange {
    background: #ffedd5;
    color: #f97316;
}

.mhq-insight-icon-badge.purple {
    background: #e0e7ff;
    color: #6366f1;
}

.mhq-insight-text {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

.mhq-insight-arrow {
    color: #94a3b8;
    font-size: 13px;
}

/* Ask Anything & Quick Action Pills Card */
.mhq-quick-ask-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.mhq-quick-ask-card h4 {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
}

.mhq-quick-ask-form {
    display: flex;
    gap: 10px;
    position: relative;
    margin-bottom: 18px;
}

.mhq-quick-ask-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px 50px 14px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.mhq-quick-ask-input:focus {
    border-color: #10b981;
    background: #ffffff;
}

.mhq-quick-ask-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.2s;
}

.mhq-quick-ask-btn:hover {
    background: #059669;
}

.mhq-quick-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mhq-quick-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #334155 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mhq-quick-pill:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #059669 !important;
}

/* Parent Hub Hero Banner */
.mhq-hub-hero-banner {
    background: #0f172a;
    color: #ffffff;
    padding: 35px;
    border-radius: 18px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.mhq-hub-hero-banner h2 {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0 !important;
}

.mhq-hub-hero-banner p {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.6;
}

/* Module Feature Cards Grid */
.mhq-hub-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.mhq-hub-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.mhq-hub-card:hover {
    border-color: #10b981;
}

.mhq-hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mhq-hub-icon {
    font-size: 32px;
}

.mhq-hub-card h3 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.35;
}

.mhq-hub-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 22px 0;
    flex-grow: 1;
}

.mhq-hub-launch-btn {
    width: 100%;
    background: #10b981;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14.5px;
    text-align: center;
    display: block;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.mhq-hub-launch-btn:hover {
    background: #059669;
}

/* Tool Inner Layout Grid */
.mhq-app-body-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 1100px) {
    .mhq-app-body-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column: Input Panel */
.mhq-input-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.mhq-panel-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 18px 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mhq-cost-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}

.mhq-input-label {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.mhq-textarea-field {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
    min-height: 140px;
}

.mhq-textarea-field:focus {
    outline: none;
    border-color: #10b981;
}

/* Dropzone */
.mhq-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 14px;
}

.mhq-dropzone:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.mhq-submit-action-btn {
    width: 100%;
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 15.5px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    transition: background 0.2s ease;
}

.mhq-submit-action-btn:hover:not(:disabled) {
    background: #059669;
}

.mhq-submit-action-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Right Column: Output / Response Panel */
.mhq-output-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.mhq-placeholder-state {
    margin: auto;
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.mhq-placeholder-icon {
    font-size: 54px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.6;
}

.mhq-placeholder-state h3 {
    color: #64748b !important;
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
}

/* Dynamic Result Cards */
.mhq-response-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.mhq-response-card h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 12px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mhq-response-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
}

/* Treatments List */
.mhq-treatments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.mhq-treatment-item-box {
    background: #ffffff;
    border-left: 4px solid #10b981;
    padding: 16px;
    border-radius: 8px;
}

.mhq-treatment-item-box h4 {
    margin: 0 0 6px 0 !important;
    color: #059669 !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
}

/* Video Grid */
.mhq-video-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mhq-video-card-unit {
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mhq-video-card-unit h4 {
    color: #ffffff !important;
    font-size: 15px !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.4;
}

.mhq-watch-btn {
    background: #10b981;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    text-align: center;
    display: inline-block;
    transition: background 0.2s ease;
}

.mhq-watch-btn:hover {
    background: #059669;
}

/* Full-Width Wallet & Packages Shop Styling */
.mhq-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.mhq-wallet-pkg-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

.mhq-wallet-pkg-card:hover {
    border-color: #10b981;
}

.mhq-wallet-pkg-card.featured {
    border-color: #10b981;
    background: #f0fdf4;
}

.mhq-featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.mhq-pkg-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}

.mhq-pkg-price {
    font-size: 26px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 12px;
}

.mhq-pkg-credits-pill {
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    color: #059669;
    font-weight: 800;
    font-size: 14.5px;
    padding: 10px 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.mhq-pkg-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.mhq-pkg-action-button,
button.mhq-pkg-action-button,
button.mhq-buy-pkg-btn,
div.mhq-packages-grid button.mhq-pkg-action-button {
    width: 100% !important;
    background: #10b981 !important;
    background-color: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 14.5px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.mhq-pkg-action-button:hover,
button.mhq-pkg-action-button:hover,
button.mhq-buy-pkg-btn:hover,
div.mhq-packages-grid button.mhq-pkg-action-button:hover {
    background: #059669 !important;
    background-color: #059669 !important;
    color: #ffffff !important;
}

/* Spinner Loader & Animations */
.mhq-loader-box {
    margin: auto;
    text-align: center;
    padding: 60px 20px;
}

.mhq-app-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #10b981;
    border-radius: 50%;
    animation: mhqSpin 0.9s linear infinite;
    -webkit-animation: mhqSpin 0.9s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes mhqSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes mhqSpin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

.mhq-app-disclaimer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* Premium Plyr Video Player Custom Theme */
.plyr {
    --plyr-color-main: #059669;
    --plyr-video-control-color-hover: #ffffff;
    --plyr-video-control-background-hover: #059669;
    --plyr-control-radius: 8px;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

.plyr__control--overlaid {
    background: #059669 !important;
    padding: 18px !important;
}

.plyr__control--overlaid:hover {
    background: #047857 !important;
    transform: scale(1.1);
}

.plyr__controls {
    padding: 10px 15px !important;
}
