/**
 * MangaSee Interactive Tools, Reading Tracker & Utility Templates Stylesheet
 */

/* -------------------------------------------------------------------------- */
/* 1. READING TRACKER (MY LIBRARY)                                            */
/* -------------------------------------------------------------------------- */
.ms-reading-tracker-wrap {
    padding-bottom: 60px;
}

.ms-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ms-library-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ms-text-dark);
    margin: 0 0 6px;
}

.ms-library-subtitle {
    font-size: 14px;
    color: var(--ms-text-muted);
    margin: 0;
}

.ms-guest-alert-card {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.ms-guest-alert-card .ms-alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ms-guest-alert-card .ms-alert-text {
    flex: 1;
    font-size: 13px;
    color: #92400E;
}

.ms-guest-alert-card .ms-alert-text strong {
    display: block;
    margin-bottom: 2px;
}

.ms-guest-alert-card .ms-alert-text p {
    margin: 0;
}

/* Tracker Status Tabs */
.ms-tracker-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ms-border-light);
    padding-bottom: 12px;
}

.ms-tracker-tab {
    padding: 8px 16px;
    border-radius: var(--ms-radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ms-text-muted);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--ms-border);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ms-tracker-tab:hover,
.ms-tracker-tab.active {
    background-color: var(--ms-primary);
    color: #ffffff;
    border-color: var(--ms-primary);
}

.ms-tracker-tab .tab-count {
    font-size: 12px;
    opacity: 0.85;
}

/* Library Controls (Search + Sort) */
.ms-library-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ms-lib-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-full);
    padding: 6px 14px;
    gap: 8px;
}

.ms-lib-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* Item Rows */
.ms-library-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-library-item-row {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 60px 1.5fr 1.2fr auto;
    align-items: center;
    gap: 20px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-library-item-row:hover {
    border-color: var(--ms-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ms-lib-thumb {
    width: 55px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
}

.ms-lib-series-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.ms-lib-series-title a {
    color: var(--ms-text-dark);
}

.ms-lib-series-title a:hover {
    color: var(--ms-primary);
}

.ms-lib-status-info {
    font-size: 13px;
    color: var(--ms-text-muted);
}

.ms-lib-progress-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-progress-track {
    flex: 1;
    height: 8px;
    background: var(--ms-border-light);
    border-radius: 4px;
    overflow: hidden;
}

.ms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C5CE7, #8B7BF7);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ms-progress-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--ms-text-dark);
    min-width: 36px;
}

.ms-lib-action-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-lib-item-remove {
    background: none;
    border: none;
    color: var(--ms-text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.ms-lib-item-remove:hover {
    color: var(--ms-danger);
}

/* Empty State */
.ms-empty-state-box,
.ms-library-empty-state {
    background: #ffffff;
    border: 1px dashed var(--ms-border);
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
}

.ms-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.ms-empty-state-box h3,
.ms-library-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ms-text-dark);
    margin: 0 0 8px;
}

.ms-empty-state-box p,
.ms-library-empty-state p {
    font-size: 14px;
    color: var(--ms-text-muted);
    margin: 0 0 20px;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* 2. MANGASEE ALTERNATIVES DIRECTORY                                         */
/* -------------------------------------------------------------------------- */
.ms-alternatives-wrap {
    padding-bottom: 60px;
}

.ms-alt-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.ms-alt-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ms-alt-card {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ms-alt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--ms-primary);
}

.ms-alt-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.ms-alt-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6C5CE7, #5948D6);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-alt-header-text {
    flex: 1;
}

.ms-alt-name {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ms-text-dark);
}

.ms-alt-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
}

.badge-official { background: #EBF8F2; color: #16A36A; }
.badge-successor { background: #EDE9FE; color: #6C5CE7; }

.ms-alt-rating {
    font-size: 14px;
    font-weight: 700;
    color: var(--ms-star);
}

.ms-alt-desc {
    font-size: 13.5px;
    color: var(--ms-text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.ms-alt-meta-specs {
    border-top: 1px solid var(--ms-border-light);
    padding-top: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
}

.ms-alt-spec-row {
    display: flex;
    justify-content: space-between;
}

.spec-label { color: var(--ms-text-muted); }
.spec-val { font-weight: 600; color: var(--ms-text-dark); }

/* -------------------------------------------------------------------------- */
/* 3. MIGRATION & SHUTDOWN TIMELINE                                           */
/* -------------------------------------------------------------------------- */
.ms-migration-page-wrap {
    padding-bottom: 60px;
}

.ms-migration-hero-card {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 36px 44px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 36px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.ms-status-badge-red {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.ms-mig-headline {
    font-size: 30px;
    font-weight: 800;
    color: var(--ms-text-dark);
    margin: 0 0 14px;
    line-height: 1.25;
}

.ms-mig-lead {
    font-size: 15px;
    color: var(--ms-text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
}

.ms-mig-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-signpost-img {
    border-radius: 12px;
    margin: 0 auto;
}

/* Timeline Track */
.ms-timeline-section {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 36px 40px;
    margin-bottom: 36px;
}

.ms-timeline-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 28px;
    color: var(--ms-text-dark);
}

.ms-timeline-track {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--ms-border);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ms-timeline-node {
    position: relative;
}

.ms-node-dot {
    position: absolute;
    left: -35px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--ms-primary);
}

.node-active {
    border-color: #DC2626;
    background: #DC2626;
}

.node-complete {
    border-color: var(--ms-success);
    background: var(--ms-success);
}

.ms-node-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--ms-primary);
    text-transform: uppercase;
}

.ms-node-content h3 {
    margin: 4px 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ms-text-dark);
}

.ms-node-content p {
    margin: 0;
    font-size: 14px;
    color: var(--ms-text-muted);
    line-height: 1.6;
}

.ms-migration-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ms-faq-box {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 22px 26px;
}

.ms-faq-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-text-dark);
}

.ms-faq-box p {
    margin: 0;
    font-size: 14px;
    color: var(--ms-text-muted);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* 4. CHAPTER PROGRESS CALCULATOR                                             */
/* -------------------------------------------------------------------------- */
.ms-calculator-wrap {
    padding-bottom: 60px;
}

.ms-calc-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin-top: 24px;
}

.ms-calc-card, .ms-calc-result-card {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.ms-form-group {
    margin-bottom: 18px;
}

.ms-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ms-text-dark);
}

.ms-input {
    width: 100%;
    background: var(--ms-bg-body);
    border: 1px solid var(--ms-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ms-text-main);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ms-input:focus {
    border-color: var(--ms-primary);
    background: #ffffff;
}

.ms-calc-circle-box {
    text-align: center;
    padding: 20px 0 12px;
}

.ms-calc-percentage {
    font-size: 48px;
    font-weight: 800;
    color: var(--ms-primary);
    line-height: 1;
}

.ms-calc-label {
    font-size: 13px;
    color: var(--ms-text-muted);
    font-weight: 500;
}

.ms-calc-meter-bar {
    height: 10px;
    background: var(--ms-border-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ms-calc-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C5CE7, #8B7BF7);
    border-radius: 5px;
    transition: width 0.4s ease;
}

.ms-calc-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--ms-border-light);
    padding-top: 16px;
}

.ms-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.ms-stat-k { color: var(--ms-text-muted); }
.ms-stat-v { color: var(--ms-text-dark); }

/* -------------------------------------------------------------------------- */
/* 5. MANGA FINDER QUIZ                                                       */
/* -------------------------------------------------------------------------- */
.ms-finder-quiz-wrap {
    padding-bottom: 60px;
}

.ms-quiz-card {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 36px 40px;
    max-width: 800px;
    margin: 24px auto 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.ms-quiz-step {
    display: none;
}

.ms-quiz-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ms-quiz-step-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ms-primary);
    background: var(--ms-primary-light);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.ms-quiz-question {
    font-size: 22px;
    font-weight: 800;
    color: var(--ms-text-dark);
    margin: 0 0 20px;
}

.ms-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-quiz-opt-btn {
    background: var(--ms-bg-body);
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.ms-quiz-opt-btn:hover {
    border-color: var(--ms-primary);
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.1);
}

.opt-icon { font-size: 24px; flex-shrink: 0; }
.opt-text strong { display: block; font-size: 15px; color: var(--ms-text-dark); margin-bottom: 2px; }
.opt-text span { font-size: 13px; color: var(--ms-text-muted); }

/* -------------------------------------------------------------------------- */
/* 6. CONTACT US TEMPLATE                                                     */
/* -------------------------------------------------------------------------- */
.ms-contact-page-wrap {
    padding-bottom: 60px;
}

.ms-contact-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    margin-top: 24px;
}

.ms-contact-form-panel {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 36px 40px;
}

.ms-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ms-textarea {
    resize: vertical;
    font-family: inherit;
}

.ms-form-consent {
    margin: 16px 0 24px;
}

.ms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ms-text-muted);
    cursor: pointer;
}

.ms-checkbox-label input {
    margin-top: 3px;
    accent-color: var(--ms-primary);
}

.ms-support-card {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 22px 24px;
}

.ms-support-header {
    display: flex;
    gap: 14px;
}

.ms-support-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ms-support-header h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--ms-text-dark);
}

.ms-support-header p {
    margin: 0;
    font-size: 13px;
    color: var(--ms-text-muted);
}

.ms-support-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--ms-text-main);
}

.check-blue {
    color: var(--ms-primary);
    font-weight: 800;
    margin-right: 6px;
}

.ms-form-status-msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.ms-status-success {
    background: #DEF7EC;
    color: #03543F;
}

.ms-status-error {
    background: #FDE8E8;
    color: #9B1C1C;
}

/* -------------------------------------------------------------------------- */
/* 7. 404 NOT FOUND PAGE                                                      */
/* -------------------------------------------------------------------------- */
.ms-404-wrap {
    padding: 60px 0 80px;
}

.ms-404-card {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: 20px;
    padding: 44px 48px;
    max-width: 840px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .ms-404-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 36px 24px;
    }
}

.ms-404-mascot-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.ms-404-mascot-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.ms-404-text-box {
    display: flex;
    flex-direction: column;
}

.ms-404-number {
    display: block;
    font-size: 76px;
    font-weight: 900;
    color: var(--ms-text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.ms-404-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ms-text-dark);
    margin: 0 0 10px;
}

.ms-404-desc {
    font-size: 14.5px;
    color: var(--ms-text-muted);
    margin: 0 0 24px;
    line-height: 1.55;
}

.ms-404-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* 8. SINGLE BLOG ARTICLE WITH STICKY TABLE OF CONTENTS                       */
/* -------------------------------------------------------------------------- */
.ms-single-post-wrap {
    padding-bottom: 60px;
}

.ms-post-article {
    background: #ffffff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 40px 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ms-post-cat-badge {
    margin-bottom: 12px;
}

.ms-cat-pill {
    background: var(--ms-primary-light);
    color: var(--ms-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-decoration: none;
}

.ms-post-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--ms-text-dark);
    margin: 0 0 14px;
    line-height: 1.25;
}

.ms-post-byline {
    font-size: 13.5px;
    color: var(--ms-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ms-bullet { color: var(--ms-text-light); }

.ms-post-feat-thumb {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.ms-post-hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
    border-radius: 12px;
}

.ms-post-body-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.ms-post-content-column {
    font-size: 16px;
    line-height: 1.8;
    color: #2D313F;
}

.ms-post-content-column h2 {
    font-size: 24px;
    margin: 32px 0 14px;
    color: var(--ms-text-dark);
}

.ms-post-content-column h3 {
    font-size: 20px;
    margin: 24px 0 10px;
    color: var(--ms-text-dark);
}

.ms-post-content-column p {
    margin-bottom: 18px;
}

.ms-post-content-column ul, .ms-post-content-column ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.ms-post-content-column li {
    margin-bottom: 6px;
}

/* Table of Contents Sticky Widget */
.ms-toc-card {
    position: sticky;
    top: 90px;
    background: var(--ms-bg-body);
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 20px;
}

.ms-toc-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ms-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ms-toc-list ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-toc-list a {
    font-size: 13.5px;
    color: var(--ms-text-muted);
    text-decoration: none;
    line-height: 1.4;
}

.ms-toc-list a:hover {
    color: var(--ms-primary);
}

@media (max-width: 900px) {
    .ms-post-body-layout {
        grid-template-columns: 1fr;
    }
    .ms-toc-card {
        position: static;
        order: -1;
    }
    .ms-contact-layout-grid {
        grid-template-columns: 1fr;
    }
    .ms-calc-layout {
        grid-template-columns: 1fr;
    }
    .ms-alt-cards-grid {
        grid-template-columns: 1fr;
    }
    .ms-library-item-row {
        grid-template-columns: 60px 1fr;
    }
    .ms-lib-progress-col {
        grid-column: 1 / -1;
    }
    .ms-lib-action-col {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   FIGMA MOCKUP REFINEMENTS: READING TRACKER, MIGRATION, ALTERNATIVES, SEARCH & CONTACT
   ========================================================================== */

/* 1. READING TRACKER (MY READING LIBRARY) */
.ms-tracker-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.ms-tracker-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #20212A;
    margin: 0 0 6px;
}

.ms-tracker-page-sub {
    font-size: 14px;
    color: #707584;
    margin: 0;
}

.ms-btn-add {
    padding: 9px 18px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ms-library-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ms-lib-pill {
    padding: 7px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #E8EAF0;
    color: #5B6171;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ms-lib-pill:hover,
.ms-lib-pill.active {
    background: #6C5CE7;
    color: #ffffff;
    border-color: #6C5CE7;
}

.ms-lib-pill .pill-count {
    opacity: 0.85;
    font-size: 12px;
}

.ms-lib-controls-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ms-lib-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 440px;
}

.ms-lib-search-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    width: 100%;
    color: #20212A;
}

.ms-tracker-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-tracker-row-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 28px 52px 1fr 200px 110px 32px;
    align-items: center;
    gap: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-tracker-row-card:hover {
    border-color: #6C5CE7;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.06);
}

.ms-custom-checkbox {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.ms-custom-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #6C5CE7;
    cursor: pointer;
}

.ms-tracker-cover {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.ms-tracker-item-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.ms-tracker-item-title a {
    color: #20212A;
    text-decoration: none;
}

.ms-tracker-item-title a:hover {
    color: #6C5CE7;
}

.ms-tracker-item-sub {
    font-size: 12.5px;
    color: #707584;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ms-item-dot {
    color: #D1D5DB;
}

.ms-tracker-progress-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-progress-bar-track {
    flex: 1;
    height: 6px;
    background: #E8EAF0;
    border-radius: 3px;
    overflow: hidden;
}

.ms-progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ms-progress-percent-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #20212A;
    min-width: 34px;
    text-align: right;
}

.ms-btn-start {
    background: #EDE9FE;
    color: #6C5CE7;
    border: none;
}

.ms-btn-view {
    border-color: #E8EAF0;
    color: #5B6171;
}

.ms-more-dots-btn {
    background: none;
    border: none;
    color: #8F95A3;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.ms-more-dots-btn:hover {
    color: #20212A;
    background: #F4F5F8;
}

@media (max-width: 860px) {
    .ms-tracker-row-card {
        grid-template-columns: 24px 44px 1fr auto;
        gap: 12px;
    }
    .ms-tracker-progress-col {
        grid-column: 3 / -1;
    }
    .ms-tracker-more-col {
        display: none;
    }
}

/* 2. MANGASEE SHUTDOWN & MIGRATION */
.ms-migration-header-block {
    margin-bottom: 24px;
}

.ms-migration-title {
    font-size: 28px;
    font-weight: 800;
    color: #20212A;
    margin: 0 0 6px;
}

.ms-migration-subtitle {
    font-size: 14.5px;
    color: #707584;
    margin: 0;
}

.ms-migration-announcement-card {
    background: linear-gradient(135deg, #F8F7FF 0%, #FFFFFF 100%);
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.04);
}

@media (max-width: 768px) {
    .ms-migration-announcement-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.ms-mig-info-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ms-mig-info-heading {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #20212A;
}

.ms-mig-info-text {
    font-size: 14.5px;
    color: #5B6171;
    line-height: 1.6;
    margin-bottom: 22px;
}

.ms-mig-buttons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ms-signpost-art-img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Horizontal Timeline matching Figma */
.ms-timeline-container {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
}

.ms-timeline-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #20212A;
    margin: 0 0 24px;
}

.ms-timeline-horizontal-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

@media (max-width: 680px) {
    .ms-timeline-horizontal-track {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.ms-timeline-step-card {
    position: relative;
}

.ms-timeline-marker {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.ms-marker-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #6C5CE7;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.ms-marker-ring.active {
    background: #6C5CE7;
}

.ms-marker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6C5CE7;
}

.ms-marker-dot.active {
    background: #ffffff;
}

.ms-marker-line {
    flex: 1;
    height: 2px;
    background: #E8EAF0;
    margin-left: 8px;
}

.ms-step-date {
    font-size: 14.5px;
    font-weight: 700;
    color: #20212A;
    margin: 0 0 4px;
}

.ms-step-desc {
    font-size: 13px;
    color: #707584;
    margin: 0;
    line-height: 1.45;
}

/* Tachiyomi Card */
.ms-tachiyomi-box-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
}

.ms-tachi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ms-tachi-icon {
    font-size: 26px;
}

.ms-tachi-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #20212A;
}

.ms-tachi-sub {
    margin: 0;
    font-size: 13.5px;
    color: #707584;
}

.ms-tachi-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .ms-tachi-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ms-tachi-step {
    background: #FAF9FE;
    border: 1px solid #ECECF4;
    border-radius: 10px;
    padding: 16px;
    position: relative;
}

.ms-step-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6C5CE7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ms-tachi-step h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #20212A;
}

.ms-tachi-step p {
    margin: 0;
    font-size: 12.5px;
    color: #5B6171;
    line-height: 1.5;
}

.ms-tachi-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ms-migration-faq-section {
    margin-top: 36px;
}

.ms-faq-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #20212A;
    margin: 0 0 20px;
}

.ms-faq-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .ms-faq-cards-grid {
        grid-template-columns: 1fr;
    }
}

.ms-faq-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 20px 24px;
}

.ms-faq-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #20212A;
}

.ms-faq-card p {
    margin: 0;
    font-size: 13.5px;
    color: #5B6171;
    line-height: 1.6;
}

/* 3. MANGASEE ALTERNATIVES */
.ms-alt-header-block {
    margin-bottom: 20px;
}

.ms-alt-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #20212A;
    margin: 0 0 6px;
}

.ms-alt-page-subtitle {
    font-size: 14.5px;
    color: #707584;
    margin: 0;
}

.ms-alt-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.ms-alt-pill {
    padding: 7px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #E8EAF0;
    color: #5B6171;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ms-alt-pill:hover,
.ms-alt-pill.active {
    background: #6C5CE7;
    color: #ffffff;
    border-color: #6C5CE7;
}

.ms-alt-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .ms-alt-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .ms-alt-grid-cards {
        grid-template-columns: 1fr;
    }
}

.ms-alt-figma-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ms-alt-figma-card:hover {
    transform: translateY(-3px);
    border-color: #6C5CE7;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.08);
}

.ms-alt-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ms-alt-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-alt-brand-meta {
    flex: 1;
}

.ms-alt-brand-title {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: #20212A;
}

.ms-alt-pill-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-block;
}

.ms-badge-popular {
    background: #EDE9FE;
    color: #6C5CE7;
}

.ms-badge-official-free {
    background: #ECFDF5;
    color: #10B981;
}

.ms-badge-official-paid {
    background: #FFFBEB;
    color: #D97706;
}

.ms-alt-desc-text {
    font-size: 13px;
    color: #707584;
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
}

.ms-alt-card-bottom {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
}

.ms-alt-star-glyph {
    color: #F59E0B;
}

.ms-alt-score-val {
    color: #20212A;
}

/* 4. BLOG SINGLE ARTICLE */
.ms-blog-single-header {
    margin-bottom: 24px;
}

.ms-blog-single-title {
    font-size: 32px;
    font-weight: 800;
    color: #20212A;
    margin: 0 0 12px;
    line-height: 1.25;
}

.ms-blog-single-byline {
    font-size: 13px;
    color: #707584;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ms-byline-dot {
    color: #D1D5DB;
}

.ms-blog-single-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    align-items: start;
}

@media (max-width: 860px) {
    .ms-blog-single-layout {
        grid-template-columns: 1fr;
    }
}

.ms-blog-hero-image-wrap {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.ms-blog-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.ms-blog-prose-body {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
}

.ms-blog-lead-text {
    font-size: 16px;
    line-height: 1.7;
    color: #1F2937;
    margin-bottom: 24px;
    font-weight: 500;
}

.ms-blog-prose-body h2 {
    font-size: 20px;
    font-weight: 800;
    color: #20212A;
    margin: 28px 0 12px;
}

.ms-blog-prose-body p {
    margin-bottom: 16px;
}

.ms-blog-prose-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.ms-blog-prose-body li {
    margin-bottom: 6px;
}

.ms-blog-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #E8EAF0;
}

.ms-blog-tags {
    display: flex;
    gap: 8px;
}

.ms-tag-badge {
    background: #F4F5F8;
    color: #5B6171;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.ms-sidebar-card {
    background: #FAF9FE;
    border: 1px solid #ECECF4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ms-sidebar-card-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #20212A;
}

.ms-toc-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-toc-sidebar-list a {
    font-size: 13px;
    color: #5B6171;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.ms-toc-sidebar-list a:hover {
    color: #6C5CE7;
    font-weight: 600;
}

.ms-sidebar-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-sidebar-rel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ms-rel-thumb-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ms-rel-thumb-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #20212A;
    line-height: 1.4;
}

.ms-sidebar-rel-item:hover .ms-rel-thumb-title {
    color: #6C5CE7;
}

/* 5. SEARCH RESULTS */
.ms-search-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.ms-search-heading {
    font-size: 28px;
    font-weight: 800;
    color: #20212A;
    margin: 0 0 6px;
}

.ms-search-found-sub {
    font-size: 14px;
    color: #707584;
    margin: 0;
}

.ms-search-bar-inline {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 9999px;
    padding: 4px 6px 4px 14px;
    width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ms-search-inline-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    flex: 1;
    color: #20212A;
}

.ms-btn-search-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6C5CE7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-search-tabs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ms-search-pill {
    padding: 7px 16px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #E8EAF0;
    color: #5B6171;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ms-search-pill:hover,
.ms-search-pill.active {
    background: #6C5CE7;
    color: #ffffff;
    border-color: #6C5CE7;
}

.ms-search-list-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-search-row-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 52px 1fr 24px;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms-search-row-card:hover {
    border-color: #6C5CE7;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.06);
}

.ms-search-thumb-img {
    width: 52px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
}

.ms-search-title-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ms-search-item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #20212A;
}

.ms-search-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.ms-search-status-badge.ms-status-completed {
    background: #ECFDF5;
    color: #10B981;
}

.ms-search-status-badge.ms-status-ongoing {
    background: #EFF6FF;
    color: #3B82F6;
}

.ms-search-type-badge {
    background: #EDE9FE;
    color: #6C5CE7;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.ms-search-genre-capsule {
    background: #F4F5F8;
    color: #5B6171;
    border: 1px solid #E5E7EB;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.ms-search-item-desc {
    margin: 0;
    font-size: 13px;
    color: #707584;
    line-height: 1.5;
}

.ms-search-arrow-glyph {
    font-size: 18px;
    font-weight: 700;
    color: #8F95A3;
    transition: transform 0.15s, color 0.15s;
}

.ms-search-row-card:hover .ms-search-arrow-glyph {
    color: #6C5CE7;
    transform: translateX(3px);
}

/* 6. CONTACT US */
.ms-contact-header-block {
    margin-bottom: 24px;
}

.ms-contact-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #20212A;
    margin: 0 0 6px;
}

.ms-contact-page-subtitle {
    font-size: 14.5px;
    color: #707584;
    margin: 0;
}

.ms-contact-two-col-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 860px) {
    .ms-contact-two-col-grid {
        grid-template-columns: 1fr;
    }
}

.ms-contact-card-form {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 28px 32px;
}

.ms-form-row-halves {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 580px) {
    .ms-form-row-halves {
        grid-template-columns: 1fr;
    }
}

.ms-field-wrap {
    margin-bottom: 18px;
}

.ms-form-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #20212A;
}

.ms-input-control {
    width: 100%;
    background: #FAF9FE;
    border: 1px solid #ECECF4;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #20212A;
    outline: none;
    transition: all 0.15s ease;
}

.ms-input-control:focus {
    border-color: #6C5CE7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.ms-select-control {
    cursor: pointer;
}

.ms-textarea-control {
    resize: vertical;
    min-height: 120px;
}

.ms-consent-wrap {
    margin: 12px 0 20px;
}

.ms-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #707584;
    cursor: pointer;
}

.ms-consent-checkbox-label input {
    margin-top: 2px;
    accent-color: #6C5CE7;
}

.ms-consent-checkbox-label a {
    color: #6C5CE7;
    text-decoration: underline;
}

.ms-btn-full {
    width: 100%;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
}

.ms-sidebar-info-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.ms-card-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EDE9FE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-card-text-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #20212A;
}

.ms-card-text-sub {
    margin: 0;
    font-size: 13px;
    color: #707584;
}

.ms-support-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ms-support-checklist li {
    font-size: 13px;
    color: #5B6171;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ms-check-icon {
    color: #6C5CE7;
    font-weight: 800;
}

.ms-contact-email-note {
    font-size: 13px;
    color: #707584;
    padding: 10px 14px;
    background: #FAF9FE;
    border-radius: 8px;
    border: 1px solid #ECECF4;
}

.ms-contact-email-note a {
    color: #6C5CE7;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}


/* -------------------------------------------------------------------------- */
/* COMPREHENSIVE TOOLS, DATA TABLES, DIAGNOSTICS & TAXONOMY EXTENSION STYLES */
/* -------------------------------------------------------------------------- */

/* Responsive Data Tables */
.ms-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #ffffff;
}

.ms-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
    min-width: 600px;
}

.ms-data-table thead th {
    background-color: #F8FAFC;
    color: #374151;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.ms-data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #4B5563;
    line-height: 1.6;
}

.ms-data-table tbody tr:last-child td {
    border-bottom: none;
}

.ms-data-table tbody tr:nth-child(even) {
    background-color: #FAFAFC;
}

.ms-data-table tbody tr:hover {
    background-color: #F5F3FF;
}

/* Strategy & Habit Cards Grid */
.ms-strategy-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.ms-strat-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-strat-card:hover {
    transform: translateY(-2px);
    border-color: #6C5CE7;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.08);
}

.ms-strat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #EDE9FE;
    color: #6C5CE7;
    font-weight: 800;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.ms-strat-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.ms-strat-card p {
    margin: 0;
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.65;
}

/* General Authority Guide & Cards */
.ms-tracker-backup-card,
.ms-tracker-guide-card,
.ms-tracker-benchmarks-card,
.ms-finder-editorial-card,
.ms-curator-packs-card,
.ms-status-diagnostic-card,
.ms-status-glossary-card,
.ms-wc-comparison-card,
.ms-wc-migration-steps-card,
.ms-history-context-card,
.ms-alt-comparison-card,
.ms-alt-decision-card,
.ms-taxonomy-guide-card,
.ms-stats-table-card,
.ms-breaks-guide-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.ms-guide-heading,
.ms-benchmarks-heading,
.ms-editorial-heading,
.ms-packs-heading,
.ms-glossary-heading,
.ms-comp-heading,
.ms-steps-heading,
.ms-history-heading,
.ms-decision-heading,
.ms-taxonomy-heading,
.ms-table-heading,
.ms-breaks-heading {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.01em;
}

.ms-guide-text-body p,
.ms-benchmarks-desc,
.ms-comp-sub,
.ms-glossary-desc,
.ms-table-sub {
    font-size: 14.5px;
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Backup Card Controls */
.ms-tracker-backup-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #FAF9FE;
    border-color: #ECECF4;
}

.ms-backup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 650px;
}

.ms-backup-icon {
    font-size: 28px;
}

.ms-backup-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.ms-backup-sub {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.ms-backup-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Metric KPI Cards Bar */
.ms-tracker-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.ms-metric-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.ms-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ms-metric-data {
    display: flex;
    flex-direction: column;
}

.ms-metric-num {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.ms-metric-label {
    font-size: 12.5px;
    color: #6B7280;
    font-weight: 500;
}

/* Demographic Cards Grid */
.ms-demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.ms-demo-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px;
}

.ms-demo-head {
    margin-bottom: 10px;
}

.ms-demo-head h4 {
    margin: 6px 0 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #1F2937;
}

.ms-demo-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}

.ms-demo-pill.shonen { background: #EDE9FE; color: #6C5CE7; }
.ms-demo-pill.seinen { background: #FEF3C7; color: #D97706; }
.ms-demo-pill.shojo { background: #FCE7F3; color: #DB2777; }
.ms-demo-pill.manhwa { background: #ECFDF5; color: #059669; }

.ms-demo-card p {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ms-demo-examples {
    font-size: 12.5px;
    color: #6B7280;
    padding-top: 8px;
    border-top: 1px solid #E5E7EB;
}

/* Curator Starter Packs Grid */
.ms-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.ms-pack-item {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 22px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.ms-pack-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #EDE9FE;
    color: #6C5CE7;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.ms-pack-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #1F2937;
    padding-right: 80px;
}

.ms-pack-item p {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.55;
    margin-bottom: 14px;
}

.ms-pack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-pack-list li {
    font-size: 12.5px;
    color: #374151;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.ms-pack-list li::before {
    content: "•";
    color: #6C5CE7;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -3px;
}

/* 18 Genre Dossier Cards */
.ms-genre-dossier-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-genre-dossier-card:hover {
    transform: translateY(-2px);
    border-color: #6C5CE7;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.08);
}

.ms-dossier-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ms-dossier-icon {
    font-size: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.ms-dossier-title-wrap h3 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 800;
    color: #1F2937;
}

.ms-dossier-count {
    font-size: 12px;
    color: #6C5CE7;
    font-weight: 600;
}

.ms-dossier-tagline {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.ms-dossier-meta {
    background: #FAFAFC;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ms-meta-row strong {
    color: #1F2937;
}

.ms-meta-row span {
    color: #6B7280;
}

.ms-dossier-flagships {
    margin-bottom: 16px;
}

.ms-flagship-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 6px;
}

.ms-flagship-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ms-flagship-pill {
    background: #F3F4F6;
    color: #374151;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Calculator Grid & Pace Options */
.ms-calc-tool-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.ms-calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.ms-calc-pane-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F3F4F6;
}

.ms-pace-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ms-pace-card {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #FAFAFC;
    transition: all 0.2s ease;
}

.ms-pace-card input {
    margin-top: 3px;
}

.ms-pace-card.active,
.ms-pace-card:hover {
    border-color: #6C5CE7;
    background: #F5F3FF;
}

.ms-pace-body {
    display: flex;
    flex-direction: column;
}

.ms-pace-body strong {
    font-size: 13px;
    color: #1F2937;
}

.ms-pace-body span {
    font-size: 12px;
    color: #6C5CE7;
    font-weight: 600;
}

.ms-pace-body small {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 2px;
}

.ms-daily-slider-wrap {
    background: #F9FAFB;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
}

.ms-range-slider {
    width: 100%;
    accent-color: #6C5CE7;
    cursor: pointer;
}

.ms-slider-val-box {
    margin-top: 8px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #4B5563;
}

.ms-calc-results-pane {
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
    border: 1px solid #DDD6FE;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.ms-results-badge-box {
    margin-bottom: 12px;
}

.ms-results-pill {
    background: #EDE9FE;
    color: #6C5CE7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.ms-kpi-highlight-box {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E9D5FF;
}

.ms-kpi-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.ms-kpi-val {
    font-size: 34px;
    font-weight: 900;
    color: #6C5CE7;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ms-kpi-sub {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
}

.ms-calc-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    flex: 1;
}

.ms-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    padding: 8px 0;
    border-bottom: 1px dashed #E5E7EB;
}

.ms-breakdown-item .item-label {
    color: #4B5563;
}

.ms-breakdown-item .item-val {
    color: #111827;
}

.ms-breakdown-item .text-primary {
    color: #6C5CE7;
    font-size: 15px;
}

/* Timezone & Release Tracker */
.ms-timezone-selector-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.ms-tz-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.ms-release-day-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.ms-day-tab {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4B5563;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ms-day-tab:hover,
.ms-day-tab.active {
    background: #6C5CE7;
    color: #ffffff;
    border-color: #6C5CE7;
}

.ms-today-dot {
    color: #10B981;
    font-size: 16px;
    font-weight: 900;
}

.ms-schedule-active-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}

.ms-sched-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.ms-sched-day-pill {
    display: inline-block;
    background: #EDE9FE;
    color: #6C5CE7;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.ms-sched-title-wrap h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.ms-sched-time-box {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.ms-time-label {
    font-size: 11.5px;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
}

.ms-time-val {
    font-size: 16px;
    color: #6C5CE7;
    font-weight: 800;
}

.ms-plat-sub {
    font-size: 12px;
    color: #6B7280;
}

.ms-series-drops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.ms-drop-item-card {
    background: #FAFAFC;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.ms-drop-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ms-drop-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.ms-drop-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    flex: 1;
}

.ms-drop-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
    font-size: 12px;
}

.ms-drop-freq {
    color: #4B5563;
    font-weight: 500;
}

.ms-drop-track-link {
    color: #6C5CE7;
    font-weight: 700;
    text-decoration: none;
}

/* Diagnostic Ping Board */
.ms-status-diagnostic-card {
    background: #FAF9FE;
    border-color: #DDD6FE;
}

.ms-diag-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.ms-diag-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EDE9FE;
    border-radius: 12px;
}

.ms-diag-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #1F2937;
}

.ms-diag-sub {
    margin: 0;
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.5;
}

.ms-diag-test-board {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ms-diag-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
}

.ms-diag-row:last-child {
    border-bottom: none;
}

.ms-diag-test-info {
    display: flex;
    flex-direction: column;
}

.ms-diag-test-info strong {
    font-size: 14px;
    color: #1F2937;
}

.ms-diag-test-info span {
    font-size: 12px;
    color: #9CA3AF;
}

.badge-pending {
    background: #F3F4F6;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-running {
    background: #FEF3C7;
    color: #D97706;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-pass {
    background: #ECFDF5;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.ms-diag-action-bar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ms-diag-last-run {
    font-size: 12.5px;
    color: #6B7280;
}

/* FAQ Grids across all templates */
.ms-tracker-faq-section,
.ms-finder-faq-section,
.ms-status-faq-section,
.ms-wc-faq-section,
.ms-migration-faq-section,
.ms-alt-faq-section,
.ms-genres-faq-section,
.ms-time-faq-section,
.ms-release-faq-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #E8EAF0;
}

.ms-faq-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.ms-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.ms-faq-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.ms-faq-question {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.4;
}

.ms-faq-answer p {
    margin: 0;
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.65;
}

/* Mobile Responsive Breakpoints for Tools */
@media (max-width: 1024px) {
    .ms-calc-grid {
        grid-template-columns: 1fr;
    }
    .ms-tracker-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ms-tracker-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ms-tracker-backup-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ms-backup-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ms-tracker-metrics-grid {
        grid-template-columns: 1fr;
    }
    .ms-pace-options-grid {
        grid-template-columns: 1fr;
    }
    .ms-faq-grid {
        grid-template-columns: 1fr;
    }
    .ms-timezone-selector-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* -------------------------------------------------------------------------- */
/* ALTERNATIVES PLATFORM CARDS (PIXEL-PERFECT FIGMA STYLING)                  */
/* -------------------------------------------------------------------------- */
.ms-alternatives-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 28px;
}

.ms-filter-btn {
    padding: 7px 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ms-filter-btn:hover,
.ms-filter-btn.active {
    background: #6C5CE7;
    color: #ffffff;
    border-color: #6C5CE7;
}

.ms-platforms-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.ms-platform-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-platform-card:hover {
    transform: translateY(-2px);
    border-color: #6C5CE7;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.08);
}

.ms-plat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ms-plat-logo-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.ms-plat-logo-text {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.ms-plat-name-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ms-plat-title {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.ms-plat-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.ms-badge-popular { background: #EDE9FE; color: #6C5CE7; }
.ms-badge-official-free { background: #ECFDF5; color: #059669; }
.ms-badge-official-paid { background: #FEF3C7; color: #D97706; }

.ms-plat-rating-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: #D97706;
    background: #FFFBEB;
    padding: 4px 8px;
    border-radius: 8px;
}

.ms-plat-desc {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.ms-plat-meta-specs {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
}

.ms-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ms-spec-row .spec-label {
    color: #6B7280;
    font-weight: 500;
}

.ms-spec-row .spec-value {
    color: #1F2937;
    font-weight: 600;
    text-align: right;
}

.ms-plat-card-footer {
    margin-top: auto;
}


/* -------------------------------------------------------------------------- */
/* WEEB CENTRAL PROFILE & FEATURES GRID STYLES                                */
/* -------------------------------------------------------------------------- */
.ms-wc-profile-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.02);
}

.ms-wc-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ms-status-badge-blue {
    background: #EDE9FE;
    color: #6C5CE7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.ms-status-badge-green {
    background: #ECFDF5;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.ms-wc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.ms-wc-feature {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.wc-feat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.ms-wc-feature h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
}

.ms-wc-feature p {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.55;
}

.ms-wc-action-box {
    margin-top: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* -------------------------------------------------------------------------- */
/* MANGASEE STATUS DASHBOARD CARDS GRID                                       */
/* -------------------------------------------------------------------------- */
.ms-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 24px 0 32px;
}

.ms-status-indicator-card {
    background: #ffffff;
    border: 1px solid #E8EAF0;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-status-indicator-card:hover {
    transform: translateY(-2px);
    border-color: #6C5CE7;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.08);
}

.ms-indicator-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ms-indicator-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.ms-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-red {
    background-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.dot-green {
    background-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ms-indicator-state {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
}

.state-offline {
    background: #FEE2E2;
    color: #DC2626;
}

.state-online {
    background: #ECFDF5;
    color: #059669;
}

.ms-status-indicator-card p {
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}

.ms-indicator-meta {
    font-size: 12px;
    color: #9CA3AF;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #F3F4F6;
    padding-top: 10px;
}

.ms-indicator-action {
    margin-top: auto;
}


/* -------------------------------------------------------------------------- */
/* GENRES DIRECTORY GRID                                                      */
/* -------------------------------------------------------------------------- */
.ms-genres-dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0 36px;
}
