﻿/* =========================================================
   AI WITH EVERYONE
   Product UI
   ========================================================= */


/* =========================================================
   Global
   ========================================================= */

:root {
    --aiwe-text: #1f2937;
    --aiwe-text-secondary: #6b7280;
    --aiwe-border: #e5e7eb;
    --aiwe-border-hover: #d1d5db;
    --aiwe-surface: #ffffff;
    --aiwe-surface-soft: #f8fafc;
    --aiwe-icon-bg: #eef2ff;
    --aiwe-icon-text: #4f46e5;
    --aiwe-primary: #4f46e5;
    --aiwe-primary-soft: #eef2ff;
    --aiwe-success: #15803d;
    --aiwe-success-soft: #f0fdf4;
    --aiwe-warning: #a16207;
    --aiwe-warning-soft: #fefce8;
    --aiwe-radius: 16px;
    --aiwe-radius-small: 12px;
    --aiwe-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    --aiwe-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.10);
}


body {
    background-color: #f8fafc;
    color: var(--aiwe-text);
}


a {
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}



/* =========================================================
   Product Header
   ========================================================= */

.aiwe-product-header {
    background-color: var(--aiwe-surface);
    border-bottom: 1px solid var(--aiwe-border);
}


.aiwe-product-summary {
    background-color: var(--aiwe-surface-soft);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
}



/* =========================================================
   Category Card
   Product.aspx
   ========================================================= */

/* =========================================================
   Free Exploration
   ========================================================= */

.aiwe-trial-section {
    background: #f8fafc;
    border-bottom: 1px solid var(--aiwe-border);
}

.aiwe-trial-panel {
    overflow: hidden;
    background: var(--aiwe-surface);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
    box-shadow: var(--aiwe-shadow);
}

.aiwe-trial-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--aiwe-border);
}

.aiwe-trial-kicker {
    margin-bottom: 5px;
    color: var(--aiwe-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.aiwe-trial-title {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 700;
}

.aiwe-trial-description {
    margin: 5px 0 0 0;
    color: var(--aiwe-text-secondary);
    font-size: 0.88rem;
}

.aiwe-trial-progress {
    width: min(240px, 100%);
}

.aiwe-trial-progress-text {
    margin-bottom: 8px;
    color: var(--aiwe-text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
}

.aiwe-trial-progress-bar {
    height: 7px;
    background: #eef2f7;
}

.aiwe-trial-task-list {
    display: grid;
}

.aiwe-trial-task-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: var(--aiwe-text);
    text-decoration: none !important;
    border-bottom: 1px solid #f0f2f5;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.aiwe-trial-task-row:last-child {
    border-bottom: 0;
}

.aiwe-trial-task-row:hover {
    color: var(--aiwe-text);
    background: #fafbff;
}

.aiwe-trial-task-row:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.16);
    outline-offset: -3px;
}

.aiwe-trial-task-index {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aiwe-primary);
    background: var(--aiwe-primary-soft);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.aiwe-trial-task-category {
    margin-bottom: 2px;
    color: var(--aiwe-text-secondary);
    font-size: 0.76rem;
}

.aiwe-trial-task-title {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.aiwe-trial-task-status {
    margin-top: 4px;
    color: var(--aiwe-text-secondary);
    font-size: 0.78rem;
}

.aiwe-trial-task-status.is-complete {
    color: var(--aiwe-success);
    font-weight: 700;
}

.aiwe-trial-completed {
    padding: 28px 24px;
    text-align: center;
}

.aiwe-trial-completed-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--aiwe-success);
    background: var(--aiwe-success-soft);
    border-radius: 50%;
}

.aiwe-trial-completed-icon svg {
    width: 24px;
    height: 24px;
}

.aiwe-trial-completed-count {
    margin-top: 4px;
    color: #111827;
    font-size: 1.8rem;
    font-weight: 800;
}

.aiwe-trial-completed-title {
    margin: 8px 0 8px 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.aiwe-trial-completed-text {
    max-width: 620px;
    margin: 0 auto;
    color: var(--aiwe-text-secondary);
    line-height: 1.7;
}

.aiwe-trial-completed-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.aiwe-trial-primary-link,
.aiwe-trial-secondary-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
}

.aiwe-trial-primary-link {
    color: #ffffff;
    background: var(--aiwe-primary);
    border: 1px solid var(--aiwe-primary);
}

.aiwe-trial-primary-link:hover {
    color: #ffffff;
    background: #4338ca;
}

.aiwe-trial-secondary-button {
    color: #374151;
    background: #ffffff;
    border: 1px solid var(--aiwe-border);
}

.aiwe-trial-secondary-button:hover {
    border-color: #c7d2fe;
    background: #fafbff;
}

.aiwe-trial-completed-coming-soon {
    margin-top: 14px;
    color: var(--aiwe-text-secondary);
    font-size: 0.82rem;
}

.aiwe-trial-task-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.aiwe-trial-task-row:hover
.aiwe-trial-task-arrow {
    color: var(--aiwe-primary);
}

@media (max-width: 767.98px) {
    .aiwe-trial-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .aiwe-trial-progress {
        width: 100%;
    }

    .aiwe-trial-progress-text {
        text-align: left;
    }

    .aiwe-trial-task-row {
        grid-template-columns: 38px minmax(0, 1fr) 22px;
        gap: 11px;
        padding: 14px 18px;
    }

    .aiwe-trial-task-index {
        width: 34px;
        height: 34px;
    }
}


.aiwe-category-card {
    display: block;
    color: var(--aiwe-text);
    text-decoration: none !important;
    background: var(--aiwe-surface);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
    box-shadow: var(--aiwe-shadow);
    overflow: hidden;
    margin-top: 4px;
    margin-bottom: 14px;
    height: calc(100% - 18px) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}


    .aiwe-category-card:hover {
        color: var(--aiwe-text);
        text-decoration: none !important;
        border-color: #c7d2fe;
        background: linear-gradient( 135deg, #ffffff 0%, #f8faff 58%, #f3f4ff 100% );
        box-shadow: 0 16px 36px rgba(79, 70, 229, 0.10);
        transform: translateY(-4px);
    }


    .aiwe-category-card:focus {
        color: var(--aiwe-text);
        text-decoration: none !important;
    }


    .aiwe-category-card:active {
        color: var(--aiwe-text);
        text-decoration: none !important;
    }


    .aiwe-category-card:visited {
        color: var(--aiwe-text);
        text-decoration: none;
    }


    .aiwe-category-card:hover h1,
    .aiwe-category-card:hover h2,
    .aiwe-category-card:hover h3,
    .aiwe-category-card:hover h4,
    .aiwe-category-card:hover h5,
    .aiwe-category-card:hover h6,
    .aiwe-category-card:hover p,
    .aiwe-category-card:hover div,
    .aiwe-category-card:hover span {
        text-decoration: none !important;
    }


    .aiwe-category-card:focus-visible {
        outline: 3px solid rgba(79, 70, 229, 0.20);
        outline-offset: 3px;
        text-decoration: none !important;
    }


/* =========================================================
   Category App Icon
   ========================================================= */

.aiwe-category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--aiwe-icon-bg);
    color: var(--aiwe-icon-text);
    border: 1px solid rgba(79, 70, 229, 0.08);
    border-radius: 14px;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}


    .aiwe-category-icon svg {
        width: 25px;
        height: 25px;
        stroke-width: 1.8;
    }


.aiwe-category-card:hover
.aiwe-category-icon {
    transform: scale(1.04);
    background-color: #e0e7ff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.10);
}



/* =========================================================
   Optional individual category tones
   ========================================================= */

.aiwe-category-card[data-category-id="F01"]
.aiwe-category-icon {
    background-color: #eef2ff;
    color: #4f46e5;
}


.aiwe-category-card[data-category-id="F02"]
.aiwe-category-icon {
    background-color: #eff6ff;
    color: #2563eb;
}


.aiwe-category-card[data-category-id="F03"]
.aiwe-category-icon {
    background-color: #ecfeff;
    color: #0891b2;
}


.aiwe-category-card[data-category-id="F04"]
.aiwe-category-icon {
    background-color: #f0fdf4;
    color: #16a34a;
}


.aiwe-category-card[data-category-id="F05"]
.aiwe-category-icon {
    background-color: #ecfdf5;
    color: #059669;
}


.aiwe-category-card[data-category-id="F06"]
.aiwe-category-icon {
    background-color: #fff7ed;
    color: #ea580c;
}


.aiwe-category-card[data-category-id="F07"]
.aiwe-category-icon {
    background-color: #fdf4ff;
    color: #c026d3;
}


.aiwe-category-card[data-category-id="F08"]
.aiwe-category-icon {
    background-color: #f5f3ff;
    color: #7c3aed;
}



/* =========================================================
   Category Typography
   ========================================================= */

.aiwe-category-card h3 {
    line-height: 1.4;
}


.aiwe-category-card p {
    line-height: 1.65;
}



/* =========================================================
   Progress
   ========================================================= */

[data-role="category-progress"],
[data-role="task-status"] {
    font-size: 0.82rem;
}


.aiwe-progress-completed {
    color: var(--aiwe-success);
    font-weight: 600;
}



/* =========================================================
   Category.aspx
   Task Cards
   ========================================================= */

.aiwe-task-card {
    position: relative;
    display: block;
    color: var(--aiwe-text);
    background-color: var(--aiwe-surface);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
    box-shadow: var(--aiwe-shadow);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}


    .aiwe-task-card:hover {
        color: var(--aiwe-text);
        border-color: var(--aiwe-border-hover);
        box-shadow: var(--aiwe-shadow-hover);
        transform: translateY(-2px);
    }


    .aiwe-task-card:focus-visible {
        outline: 3px solid rgba(79, 70, 229, 0.18);
        outline-offset: 2px;
    }


.aiwe-task-number {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #4f46e5;
    background-color: #eef2ff;
    border-radius: 999px;
}



/* =========================================================
   Favorite Button
   ========================================================= */

[data-role="favorite-button"] {
    position: relative;
    z-index: 2;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}


    [data-role="favorite-button"].is-favorite {
        color: #a16207;
        background-color: #fefce8;
        border-color: #fde68a;
    }


        [data-role="favorite-button"].is-favorite:hover {
            color: #854d0e;
            background-color: #fef9c3;
            border-color: #facc15;
        }



/* =========================================================
   Search
   ========================================================= */

#searchKeyword {
    min-height: 56px;
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 14px;
    border-color: var(--aiwe-border);
    box-shadow: none;
}


    #searchKeyword:focus {
        border-color: #a5b4fc;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10);
    }


#searchResultList
.aiwe-task-card {
    min-height: 190px;
}

.aiwe-search-task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aiwe-search-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.aiwe-search-access-trial {
    color: #3730a3;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

.aiwe-search-access-preview {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}



/* =========================================================
   Favorite Page
   ========================================================= */

#favoriteList .card {
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
    box-shadow: var(--aiwe-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}


    #favoriteList .card:hover {
        border-color: var(--aiwe-border-hover);
        box-shadow: var(--aiwe-shadow-hover);
        transform: translateY(-2px);
    }



/* =========================================================
   Task.aspx
   ========================================================= */

.aiwe-task-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


.aiwe-task-section {
    background-color: var(--aiwe-surface);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
    padding: 24px;
    box-shadow: var(--aiwe-shadow);
}


    .aiwe-task-section + .aiwe-task-section {
        margin-top: 20px;
    }



/* =========================================================
   Situation
   ========================================================= */

.aiwe-situation {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #374151;
}


.aiwe-question {
    margin-top: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.55;
    color: #111827;
}



/* =========================================================
   Decision Options
   ========================================================= */

.aiwe-option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    text-align: left;
    color: var(--aiwe-text);
    background-color: var(--aiwe-surface);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius-small);
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}


    .aiwe-option:hover {
        border-color: #a5b4fc;
        background-color: #fafaff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
        transform: translateY(-1px);
    }


    .aiwe-option:focus-visible {
        outline: 3px solid rgba(79, 70, 229, 0.18);
        outline-offset: 2px;
    }


    .aiwe-option.is-selected {
        border-color: #818cf8;
        background-color: var(--aiwe-primary-soft);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
    }


.aiwe-option-letter {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--aiwe-primary);
    background-color: var(--aiwe-primary-soft);
    border-radius: 9px;
}


.aiwe-option-text {
    padding-top: 3px;
    line-height: 1.6;
}



/* =========================================================
   Insight
   ========================================================= */

.aiwe-insight {
    padding: 18px 20px;
    margin-top: 18px;
    color: #3730a3;
    background-color: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: var(--aiwe-radius-small);
    line-height: 1.7;
}


.aiwe-insight-title {
    margin-bottom: 8px;
    font-weight: 700;
    color: #5b21b6;
}



/* =========================================================
   Situation Update
   ========================================================= */

.aiwe-situation-update {
    padding: 20px;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--aiwe-radius-small);
    line-height: 1.75;
}


.aiwe-situation-update-title {
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}



/* =========================================================
   AI Can Help
   ========================================================= */

.aiwe-ai-help {
    padding: 20px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--aiwe-radius-small);
}


    .aiwe-ai-help ul {
        margin-bottom: 0;
    }


    .aiwe-ai-help li {
        margin-bottom: 8px;
        line-height: 1.65;
    }


        .aiwe-ai-help li:last-child {
            margin-bottom: 0;
        }



/* =========================================================
   Human Check
   ========================================================= */

.aiwe-human-check {
    padding: 20px;
    background-color: var(--aiwe-success-soft);
    border: 1px solid #bbf7d0;
    border-radius: var(--aiwe-radius-small);
}


.aiwe-human-check-title {
    margin-bottom: 12px;
    font-weight: 700;
    color: #166534;
}


.aiwe-human-check ul {
    margin-bottom: 0;
}


.aiwe-human-check li {
    margin-bottom: 8px;
    line-height: 1.65;
}


    .aiwe-human-check li:last-child {
        margin-bottom: 0;
    }



/* =========================================================
   Takeaway
   ========================================================= */

.aiwe-takeaway {
    padding: 22px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.75;
    color: #312e81;
    background: linear-gradient( 135deg, #eef2ff 0%, #f5f3ff 100% );
    border: 1px solid #c7d2fe;
    border-radius: var(--aiwe-radius);
}



/* =========================================================
   Utility
   ========================================================= */

.aiwe-muted {
    color: var(--aiwe-text-secondary);
}


.aiwe-surface {
    background-color: var(--aiwe-surface);
    border: 1px solid var(--aiwe-border);
    border-radius: var(--aiwe-radius);
}



/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .aiwe-category-card,
    .aiwe-category-icon,
    .aiwe-task-card,
    .aiwe-option,
    #favoriteList .card {
        transition: none;
    }


        .aiwe-category-card:hover,
        .aiwe-task-card:hover,
        .aiwe-option:hover,
        #favoriteList .card:hover {
            transform: none;
        }
}



/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {

    .aiwe-category-card
    .card-body {
        padding: 20px !important;
    }


    .aiwe-category-icon {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }


        .aiwe-category-icon svg {
            width: 23px;
            height: 23px;
        }


    .aiwe-task-section {
        padding: 20px;
    }


    .aiwe-option {
        padding: 15px;
    }


    .aiwe-question {
        font-size: 1.08rem;
    }


    #searchKeyword {
        min-height: 52px;
    }
}



/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 575.98px) {

    .aiwe-category-card h3 {
        font-size: 1.05rem;
    }


    .aiwe-category-card p {
        font-size: 0.88rem;
    }


    .aiwe-task-section {
        border-radius: 14px;
        padding: 18px;
    }


    .aiwe-insight,
    .aiwe-situation-update,
    .aiwe-ai-help,
    .aiwe-human-check,
    .aiwe-takeaway {
        padding: 17px;
    }
}


/* =========================================================
   Bootstrap 5.3 Color Modes
   ========================================================= */

.aiwe-theme-picker .dropdown-menu {
    min-width: 10.5rem;
}

.aiwe-theme-picker .dropdown-item {
    font-size: 0.88rem;
}

[data-bs-theme="dark"] {
    --aiwe-text: #e5e7eb;
    --aiwe-text-secondary: #94a3b8;
    --aiwe-border: #334155;
    --aiwe-border-hover: #6366f1;
    --aiwe-surface: #111827;
    --aiwe-surface-soft: #172033;
    --aiwe-icon-bg: rgba(99, 102, 241, 0.16);
    --aiwe-icon-text: #a5b4fc;
    --aiwe-primary: #818cf8;
    --aiwe-primary-soft: rgba(99, 102, 241, 0.16);
    --aiwe-success: #86efac;
    --aiwe-success-soft: rgba(34, 197, 94, 0.12);
    --aiwe-warning: #fde68a;
    --aiwe-warning-soft: rgba(245, 158, 11, 0.12);
    --aiwe-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
    --aiwe-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.30);
}

[data-bs-theme="dark"] body {
    background-color: #0f172a;
    color: var(--aiwe-text);
}

[data-bs-theme="dark"] .aiwe-header,
[data-bs-theme="dark"] footer {
    background-color: #0f172a;
    border-color: var(--aiwe-border) !important;
}

[data-bs-theme="dark"] .aiwe-product-header,
[data-bs-theme="dark"] .aiwe-trial-section {
    background: #0f172a;
    border-color: var(--aiwe-border);
}

[data-bs-theme="dark"] .aiwe-product-summary,
[data-bs-theme="dark"] .aiwe-trial-panel,
[data-bs-theme="dark"] .aiwe-trial-completed,
[data-bs-theme="dark"] .aiwe-category-card,
[data-bs-theme="dark"] .aiwe-task-card,
[data-bs-theme="dark"] #favoriteList .card,
[data-bs-theme="dark"] .aiwe-task-section,
[data-bs-theme="dark"] .aiwe-surface {
    background: var(--aiwe-surface);
    border-color: var(--aiwe-border);
    color: var(--aiwe-text);
}

[data-bs-theme="dark"] .aiwe-trial-task-row:hover,
[data-bs-theme="dark"] .aiwe-trial-secondary-button:hover,
[data-bs-theme="dark"] .aiwe-category-card:hover,
[data-bs-theme="dark"] .aiwe-task-card:hover,
[data-bs-theme="dark"] #favoriteList .card:hover {
    background: linear-gradient(
        135deg,
        #111827 0%,
        #172033 100%
    );
    border-color: var(--aiwe-border-hover);
}

[data-bs-theme="dark"] .aiwe-trial-title,
[data-bs-theme="dark"] .aiwe-trial-task-title,
[data-bs-theme="dark"] .aiwe-trial-completed-count,
[data-bs-theme="dark"] .aiwe-trial-completed-title,
[data-bs-theme="dark"] .aiwe-category-card h3,
[data-bs-theme="dark"] .aiwe-question {
    color: #f8fafc;
}

[data-bs-theme="dark"] .aiwe-trial-secondary-button,
[data-bs-theme="dark"] #searchKeyword,
[data-bs-theme="dark"] .aiwe-option {
    color: var(--aiwe-text);
    background: var(--aiwe-surface);
    border-color: var(--aiwe-border);
}

[data-bs-theme="dark"] .aiwe-search-access-trial {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(129, 140, 248, 0.42);
}

[data-bs-theme="dark"] .aiwe-search-access-preview {
    color: #cbd5e1;
    background: #172033;
    border-color: #334155;
}

[data-bs-theme="dark"] .aiwe-insight,
[data-bs-theme="dark"] .aiwe-situation,
[data-bs-theme="dark"] .aiwe-situation-update,
[data-bs-theme="dark"] .aiwe-ai-help,
[data-bs-theme="dark"] .aiwe-human-check {
    background: var(--aiwe-surface);
    border-color: var(--aiwe-border);
    color: var(--aiwe-text);
}

[data-bs-theme="dark"] .aiwe-takeaway {
    color: #e0e7ff;
    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.18) 0%,
        rgba(109, 40, 217, 0.16) 100%
    );
    border-color: rgba(129, 140, 248, 0.42);
}


/* Dark mode polish for product-specific accents */
[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F01"] .aiwe-category-icon {
    background-color: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F02"] .aiwe-category-icon {
    background-color: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F03"] .aiwe-category-icon {
    background-color: rgba(8, 145, 178, 0.16);
    color: #67e8f9;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F04"] .aiwe-category-icon {
    background-color: rgba(22, 163, 74, 0.16);
    color: #86efac;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F05"] .aiwe-category-icon {
    background-color: rgba(5, 150, 105, 0.16);
    color: #6ee7b7;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F06"] .aiwe-category-icon {
    background-color: rgba(234, 88, 12, 0.16);
    color: #fdba74;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F07"] .aiwe-category-icon {
    background-color: rgba(192, 38, 211, 0.16);
    color: #f0abfc;
}

[data-bs-theme="dark"] .aiwe-category-card[data-category-id="F08"] .aiwe-category-icon {
    background-color: rgba(124, 58, 237, 0.16);
    color: #c4b5fd;
}

[data-bs-theme="dark"] .aiwe-category-card:hover .aiwe-category-icon {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

[data-bs-theme="dark"] [data-role="favorite-button"].is-favorite,
[data-bs-theme="dark"] [data-role="favorite-button"].is-favorite:hover {
    color: #fde68a;
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(250, 204, 21, 0.42);
}


[data-bs-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .aiwe-theme-picker .btn-outline-secondary {
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .aiwe-theme-picker .btn-outline-secondary:hover,
[data-bs-theme="dark"] .aiwe-theme-picker .btn-outline-secondary:focus {
    color: #f8fafc;
    background-color: #1e293b;
    border-color: #64748b;
}


/* =========================================================
   Dark Mode Visual Polish
   Keep the product hierarchy calm and readable.
   ========================================================= */

[data-bs-theme="dark"] {
    --aiwe-text: #e7edf6;
    --aiwe-text-secondary: #9cabc0;
    --aiwe-border: #2b3a50;
    --aiwe-border-hover: #6670e8;
    --aiwe-surface: #111a29;
    --aiwe-surface-soft: #162132;
    --aiwe-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    --aiwe-shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] body {
    background-color: #0b1220;
}

[data-bs-theme="dark"] .aiwe-header,
[data-bs-theme="dark"] footer {
    background-color: #0d1524;
    border-color: #243249 !important;
}

[data-bs-theme="dark"] .aiwe-product-header {
    background:
        linear-gradient(
            180deg,
            #151d2b 0%,
            #111827 100%
        );
    border-color: #2b3a50;
}

[data-bs-theme="dark"] .aiwe-product-header h1 {
    color: #f8fafc;
    letter-spacing: -0.015em;
}

[data-bs-theme="dark"] .aiwe-product-summary {
    background:
        linear-gradient(
            145deg,
            #172130 0%,
            #151e2c 100%
        );
    border-color: #35445b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

[data-bs-theme="dark"] .aiwe-product-summary hr {
    border-color: #526176;
    opacity: 0.55;
}

[data-bs-theme="dark"] .aiwe-product-tagline-chip {
    background-color: rgba(148, 163, 184, 0.07);
    border-color: #3b495f !important;
    color: #aebbd0 !important;
}

[data-bs-theme="dark"] .aiwe-trial-section {
    background: #0b1220;
    border-color: #243249;
}

[data-bs-theme="dark"] .aiwe-trial-panel {
    background: #101827;
    border-color: #2c3a50;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

[data-bs-theme="dark"] .aiwe-trial-header {
    background:
        linear-gradient(
            180deg,
            rgba(24, 34, 51, 0.82) 0%,
            rgba(16, 24, 39, 0.82) 100%
        );
    border-color: #2a384d;
}

[data-bs-theme="dark"] .aiwe-trial-progress-bar {
    background: #253247;
}

[data-bs-theme="dark"] .aiwe-trial-progress-bar .progress-bar {
    background:
        linear-gradient(
            90deg,
            #818cf8 0%,
            #a78bfa 100%
        );
}

[data-bs-theme="dark"] .aiwe-trial-task-row {
    border-color: #263448;
}

[data-bs-theme="dark"] .aiwe-trial-task-row:hover {
    background: #152033;
    border-color: #31435d;
}

[data-bs-theme="dark"] .aiwe-trial-task-index {
    color: #aeb8ff;
    background: rgba(99, 102, 241, 0.18);
}

[data-bs-theme="dark"] .aiwe-trial-task-arrow {
    color: #72839a;
}

[data-bs-theme="dark"] .aiwe-trial-task-row:hover
.aiwe-trial-task-arrow {
    color: #a5b4fc;
}

[data-bs-theme="dark"] .text-secondary {
    color: #9cabc0 !important;
}

[data-bs-theme="dark"] .aiwe-theme-picker .btn-outline-secondary {
    color: #d7e0ec;
    background-color: rgba(255, 255, 255, 0.02);
    border-color: #3a4960;
}

[data-bs-theme="dark"] .aiwe-theme-picker .btn-outline-secondary:hover,
[data-bs-theme="dark"] .aiwe-theme-picker .btn-outline-secondary:focus {
    color: #ffffff;
    background-color: #172235;
    border-color: #64748b;
}
