body {
    background: #f5f7fb;
    color: #1f2937;
}

.front-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, #07111f 0%, #0f3d37 52%, #1d3b63 100%);
}

.front-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .28);
}

.front-brand {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}

.ai-front-page {
    color: #172033;
}

.ai-shell {
    min-height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
}

.ai-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 .85rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #c8f7e4;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ai-title {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2.15rem, 4vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.ai-subtitle {
    max-width: 660px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.8;
}

.ai-service-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.ai-service-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .82rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 600;
}

.redeem-panel {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.redeem-input {
    min-height: 58px;
    border-color: #d6dde8;
    background: #f8fafc;
}

.redeem-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 .25rem rgba(20, 184, 166, .18);
}

.redeem-button {
    min-height: 56px;
    border: 0;
    background: #0f9f6e;
    font-weight: 700;
}

.redeem-button:hover,
.redeem-button:focus {
    background: #0b845c;
}

.ai-status-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: .35rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, .12);
}

.ai-note {
    color: #64748b;
    font-size: .9rem;
}

.admin-link {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.admin-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ai-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ai-info-block,
.ai-matrix {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .2);
}

.ai-info-block {
    padding: 1.15rem;
    color: #334155;
    line-height: 1.75;
}

.ai-info-primary {
    grid-column: 1 / -1;
}

.ai-block-label {
    margin-bottom: .55rem;
    color: #0f766e;
    font-size: .86rem;
    font-weight: 800;
}

.ai-matrix {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
}

.ai-matrix-item {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: 1rem;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ai-matrix-item:last-child {
    border-right: 0;
}

.ai-matrix-item span {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.3rem;
}

.ai-matrix-item small {
    color: #64748b;
    font-weight: 600;
}

.admin-body .card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.stat-card {
    min-height: 112px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.table td,
.table th {
    vertical-align: middle;
}

.text-truncate-260 {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-360 {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-help {
    color: #6b7280;
    font-size: .875rem;
}

.code-result {
    background: #0f172a;
    color: #e5f6ff;
    border-radius: 8px;
    padding: 1rem;
}

.redeem-content {
    color: #f8fafc;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .95rem;
    line-height: 1.7;
}

.required::after {
    content: " *";
    color: #dc3545;
}

@media (max-width: 991.98px) {
    .ai-shell {
        min-height: auto;
    }

    .ai-info-grid {
        grid-template-columns: 1fr;
    }

    .ai-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-matrix-item:nth-child(2) {
        border-right: 0;
    }

    .ai-matrix-item:nth-child(-n + 2) {
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (max-width: 575.98px) {
    .ai-title {
        font-size: 2.15rem;
    }

    .ai-service-strip span {
        min-height: 32px;
        font-size: .84rem;
    }

    .redeem-panel .card-body {
        padding: 1.25rem !important;
    }
}

/* AI redeem landing */
.ai-front-page.front-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(135deg, #07111f 0%, #0b2535 45%, #12372f 100%);
    background-size: 56px 56px, 56px 56px, auto;
}

.ai-landing {
    min-height: 100vh;
    color: #e5eefc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    margin-bottom: 3.5rem;
}

.ai-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #f8fafc;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.ai-brand:hover {
    color: #ffffff;
}

.ai-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(94, 234, 212, .45);
    border-radius: 8px;
    background: #0f766e;
    color: #ecfeff;
    font-weight: 900;
}

.ai-buy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    background: #fbbf24;
    color: #111827;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
}

.ai-buy-link:hover,
.ai-buy-link:focus {
    background: #f59e0b;
    color: #111827;
}

.ai-hero {
    padding-bottom: 3rem;
}

.ai-kicker {
    border-color: rgba(94, 234, 212, .36);
    background: rgba(8, 47, 73, .5);
    color: #99f6e4;
}

.ai-title {
    color: #f8fafc;
    font-size: 3.65rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: none;
}

.ai-subtitle {
    color: #dbeafe;
    font-size: 1.18rem;
    line-height: 1.8;
}

.ai-service-strip span {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.redeem-console,
.ai-visual-panel,
.ai-info-card {
    border: 1px solid rgba(203, 213, 225, .5);
    border-radius: 8px;
    background: rgba(248, 250, 252, .96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.redeem-console {
    padding: 1.25rem;
}

.console-header,
.visual-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.console-label {
    margin-bottom: .35rem;
    color: #0f766e;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: 0;
}

.console-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 900;
}

.console-state {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 28px;
    padding: 0 .65rem;
    border: 1px solid rgba(34, 197, 94, .42);
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(22, 101, 52, .22);
    font-size: .76rem;
    font-weight: 900;
}

.console-state span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.console-copy {
    margin-bottom: 1.1rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}

.redeem-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: .75rem;
}

.redeem-input {
    min-height: 56px;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0;
}

.redeem-input::placeholder {
    color: #64748b;
}

.redeem-input:focus {
    border-color: #0f766e;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 0 0 .22rem rgba(45, 212, 191, .14);
}

.redeem-button {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 900;
}

.redeem-button:hover,
.redeem-button:focus {
    background: #f59e0b;
    color: #111827;
}

.console-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.console-foot span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 .65rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    font-size: .8rem;
    font-weight: 700;
}

.ai-visual-panel {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.ai-visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 118, 110, .08) 1px, transparent 1px),
        linear-gradient(rgba(15, 118, 110, .08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .75;
    pointer-events: none;
}

.ai-visual-panel > * {
    position: relative;
}

.visual-top strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.visual-top > span {
    color: #b45309;
    font-size: .8rem;
    font-weight: 900;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.model-node {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.model-node.active {
    border-color: #0f766e;
    background: #ecfdf5;
}

.model-node span {
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 900;
}

.model-node small {
    color: #475569;
    font-weight: 800;
}

.signal-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.signal-board div,
.delivery-steps div {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: .85rem;
}

.signal-board span,
.delivery-steps span {
    display: block;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
}

.signal-board strong {
    display: block;
    margin-top: .35rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.delivery-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.delivery-steps b {
    display: block;
    margin-bottom: .35rem;
    color: #0f766e;
    font-size: .82rem;
}

.ai-support-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0 2rem;
}

.ai-info-card {
    padding: 1rem;
    color: #334155;
    font-size: .98rem;
    line-height: 1.75;
}

.ai-block-label {
    color: #0f766e;
    font-size: .9rem;
}

@media (max-width: 1199.98px) {
    .ai-topbar {
        margin-bottom: 3rem;
    }

    .ai-title {
        font-size: 3.2rem;
    }

    .ai-support-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ai-topbar {
        margin-bottom: 2rem;
    }

    .ai-title {
        font-size: 2.45rem;
    }

    .redeem-control,
    .signal-board,
    .delivery-steps {
        grid-template-columns: 1fr;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }
}

/* Light AI landing */
.ai-light-page.front-page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(14, 165, 233, .08) 1px, transparent 1px),
        linear-gradient(rgba(14, 165, 233, .08) 1px, transparent 1px),
        linear-gradient(135deg, #f8fbff 0%, #eef8ff 45%, #f4fff9 100%);
    background-size: 44px 44px, 44px 44px, auto;
    color: #102033;
}

.ai-light-main {
    min-height: 100vh;
    padding: 1.25rem 0 2rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-light-nav {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 4.25rem;
}

.ai-light-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #0f172a;
    text-decoration: none;
}

.ai-light-brand:hover {
    color: #0f172a;
}

.ai-light-brand span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(14, 165, 233, .25);
}

.ai-light-brand strong {
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0;
}

.ai-light-buy {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.05rem;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    background: #ffffff;
    color: #0369a1;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(14, 165, 233, .14);
}

.ai-light-buy:hover,
.ai-light-buy:focus {
    background: #0ea5e9;
    color: #ffffff;
}

.ai-light-hero {
    padding-bottom: 3.25rem;
}

.ai-light-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 .8rem;
    margin-bottom: 1rem;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #f0f9ff;
    color: #0284c7;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ai-light-title {
    max-width: 680px;
    margin: 0 0 1rem;
    color: #08111f;
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
}

.ai-light-subtitle {
    max-width: 620px;
    margin: 0 0 1.35rem;
    color: #53657c;
    font-size: 1.12rem;
    line-height: 1.85;
}

.ai-light-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    max-width: 620px;
}

.ai-light-service {
    min-height: 82px;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.ai-light-service b {
    display: block;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
}

.ai-light-service span {
    display: block;
    margin-top: .35rem;
    color: #64748b;
    font-size: .9rem;
    font-weight: 650;
}

.ai-light-redeem {
    padding: 1.35rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 26px 80px rgba(2, 132, 199, .16);
    backdrop-filter: blur(14px);
}

.ai-light-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-light-card-head span {
    display: block;
    margin-bottom: .3rem;
    color: #0ea5e9;
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: 0;
}

.ai-light-card-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 950;
}

.ai-light-card-head em {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 .75rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    font-style: normal;
    font-size: .82rem;
    font-weight: 900;
}

.ai-light-card-copy {
    margin-bottom: 1.2rem;
    color: #64748b;
    line-height: 1.75;
}

.ai-support-notice {
    border: 1px solid rgba(37, 99, 235, .18);
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .1));
    color: #1f3b63;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 1.7;
    font-weight: 700;
}

.ai-light-input {
    min-height: 58px;
    margin-bottom: .9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 750;
}

.ai-light-input:focus {
    border-color: #0ea5e9;
    background: #ffffff;
    box-shadow: 0 0 0 .24rem rgba(14, 165, 233, .14);
}

.ai-light-submit {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 950;
    box-shadow: 0 18px 36px rgba(20, 184, 166, .24);
}

.ai-light-submit:hover,
.ai-light-submit:focus {
    background: linear-gradient(135deg, #0284c7, #0f766e);
}

.ai-light-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.ai-light-checks span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 .7rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: .82rem;
    font-weight: 800;
}

.ai-light-info {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1rem;
    padding-bottom: 2rem;
}

.ai-light-info article {
    min-height: 154px;
    padding: 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .05);
}

.ai-light-info span {
    display: block;
    margin-bottom: .55rem;
    color: #0369a1;
    font-size: .9rem;
    font-weight: 950;
}

.ai-light-info p {
    margin: 0;
    color: #526276;
    line-height: 1.78;
}

@media (max-width: 1199.98px) {
    .ai-light-nav {
        margin-bottom: 2.75rem;
    }

    .ai-light-title {
        font-size: 3.15rem;
    }

    .ai-light-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ai-light-main {
        padding-top: .75rem;
    }

    .ai-light-nav {
        margin-bottom: 2rem;
    }

    .ai-light-title {
        font-size: 2.35rem;
    }

    .ai-light-subtitle {
        font-size: 1rem;
    }

    .ai-light-services {
        grid-template-columns: 1fr;
    }

    .ai-light-redeem {
        padding: 1.05rem;
    }
}

/* Redeem result page */
.ai-result-main {
    padding-bottom: 3rem;
}

.ai-result-nav {
    margin-bottom: 2.75rem;
}

.ai-result-intro {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.ai-result-intro .ai-light-kicker {
    margin-bottom: .8rem;
}

.ai-result-intro h1 {
    margin: 0 0 .75rem;
    color: #08111f;
    font-size: 3rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.1;
}

.ai-result-intro p {
    margin: 0;
    color: #526276;
    font-size: 1rem;
    line-height: 1.75;
}

.ai-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
    align-items: start;
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto 2rem;
}

.ai-result-card,
.ai-result-side,
.ai-result-empty {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 26px 80px rgba(15, 23, 42, .1);
    backdrop-filter: blur(14px);
}

.ai-result-card {
    min-width: 0;
    padding: 1.35rem;
}

.ai-result-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-result-card-head span,
.ai-result-side-block > span,
.ai-result-package > span {
    display: block;
    margin-bottom: .3rem;
    color: #0284c7;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: 0;
}

.ai-result-card-head h2,
.ai-result-side-block h2 {
    margin: 0;
    color: #102033;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.35;
}

.ai-result-card-head em {
    flex: 0 0 auto;
    padding: .35rem .65rem;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
}

.ai-result-content-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f7fbff;
}

.ai-result-content {
    min-height: 190px;
    max-height: 430px;
    margin: 0;
    padding: 1.15rem 1.15rem 4.4rem;
    overflow: auto;
    color: #102033;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .92rem;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-result-inline-copy {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    min-height: 38px;
    padding: 0 .9rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: #0369a1;
    font-size: .86rem;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(14, 165, 233, .12);
}

.ai-result-inline-copy:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
}

.ai-result-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.ai-result-meta > div {
    min-width: 0;
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.ai-result-meta-wide {
    grid-column: 1 / -1;
}

.ai-result-meta span {
    display: block;
    margin-bottom: .3rem;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
}

.ai-result-meta strong {
    display: block;
    color: #172033;
    font-size: .93rem;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ai-result-package {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #854d0e;
    line-height: 1.7;
}

.ai-result-package p {
    margin: 0;
}

.ai-result-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: .65rem;
    margin-top: 1rem;
}

.ai-result-actions button {
    min-height: 46px;
    padding: .6rem .55rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #fff;
    color: #0369a1;
    font-size: .88rem;
    font-weight: 900;
}

.ai-result-actions button:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    color: #075985;
}

.ai-result-actions .is-primary,
.ai-result-actions .is-primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #0284c7, #16a34a);
    color: #fff;
}

.ai-result-side {
    padding: 1.25rem;
}

.ai-result-side-block p {
    margin: .7rem 0 0;
    color: #526276;
    font-size: .92rem;
    line-height: 1.72;
}

.ai-result-support {
    margin: 1rem 0;
    border-radius: 8px;
}

.ai-result-support strong {
    display: block;
    margin-bottom: .3rem;
    color: #0369a1;
}

.ai-result-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.ai-result-trust span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 .7rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
}

.ai-result-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7, #16a34a);
    color: #fff;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 15px 34px rgba(14, 165, 233, .2);
}

.ai-result-primary:hover {
    color: #fff;
    filter: brightness(.97);
}

.ai-result-empty {
    max-width: 680px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
}

.ai-result-empty-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #dcfce7);
    color: #0284c7;
    font-size: 1.6rem;
    font-weight: 950;
}

.ai-result-empty h1 {
    margin: .35rem 0 .75rem;
    color: #08111f;
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: 0;
}

.ai-result-empty p {
    margin: 0 0 1.5rem;
    color: #526276;
}

.ai-result-empty .ai-result-primary {
    max-width: 220px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .ai-result-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .ai-result-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ai-result-nav {
        margin-bottom: 2rem;
    }

    .ai-result-intro h1 {
        font-size: 2.2rem;
    }

    .ai-result-card,
    .ai-result-side {
        padding: 1rem;
    }

    .ai-result-empty {
        margin: 2rem auto;
        padding: 2rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .ai-result-card-head {
        align-items: center;
    }

    .ai-result-card-head h2 {
        font-size: 1rem;
    }

    .ai-result-meta {
        grid-template-columns: 1fr;
    }

    .ai-result-meta-wide {
        grid-column: auto;
    }

    .ai-result-actions {
        grid-template-columns: 1fr;
    }

    .ai-result-content {
        min-height: 220px;
        padding-right: .9rem;
        padding-left: .9rem;
    }
}

.ai-period-progress {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
}

.bulk-plan-number {
    width: 96px;
}

.ai-period-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
    color: #475569;
    font-size: .84rem;
    font-weight: 800;
}

.ai-period-progress-head strong {
    color: #0369a1;
    font-size: .95rem;
}

.ai-period-progress-bar {
    display: block;
    width: 100%;
    height: 8px;
    padding: 0;
    overflow: hidden;
    margin-bottom: .9rem;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    appearance: none;
    -webkit-appearance: none;
}

.ai-period-progress-bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #e2e8f0;
}

.ai-period-progress-bar::-webkit-progress-value,
.ai-period-progress-bar::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.ai-period-progress dl {
    display: grid;
    gap: .55rem;
    margin: 0;
}

.ai-period-progress dl > div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: .65rem;
}

.ai-period-progress dt {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.ai-period-progress dd {
    margin: 0;
    color: #172033;
    font-size: .78rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.announcement-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    padding: .6rem;
    border: 1px solid #d9e1ea;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #f6f8fb;
}

.announcement-toolbar .btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
}

.announcement-toolbar svg {
    width: 17px;
    height: 17px;
}

.announcement-color-input {
    width: 36px;
    height: 34px;
    padding: 3px;
    border: 1px solid #d9e1ea;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.announcement-size-input {
    width: 88px;
    height: 34px;
}

.announcement-editor {
    min-height: 200px;
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #d9e1ea;
    border-radius: 0 0 6px 6px;
    background: #fff;
}

.announcement-editor:focus {
    outline: 2px solid #1677ff;
    outline-offset: -2px;
}

.announcement-preview {
    background: #fafcff;
}

.announcement-toolbar[hidden],
.announcement-editor[hidden] {
    display: none;
}

.announcement-richtext {
    color: #243349;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.announcement-richtext p {
    margin: 0 0 .8em;
}

.announcement-richtext > :last-child {
    margin-bottom: 0;
}

.announcement-richtext ul,
.announcement-richtext ol {
    padding-left: 1.5em;
}

.announcement-align-left { text-align: left; }
.announcement-align-center { text-align: center; }
.announcement-align-right { text-align: right; }
.announcement-bold { font-weight: 700; }
.announcement-italic { font-style: italic; }
.announcement-underline { text-decoration: underline; }
.announcement-strike { text-decoration: line-through; }
.announcement-underline.announcement-strike { text-decoration: underline line-through; }

.redeem-announcement .modal-dialog {
    max-width: 640px;
}

.redeem-announcement .modal-content {
    border: 1px solid #d9e1ea;
    border-radius: 8px;
}

.redeem-announcement .modal-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    padding-right: .8rem;
    color: #243349;
    font-size: 1.15rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.redeem-announcement .modal-title svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #1677ff;
}

.redeem-announcement .modal-body {
    padding: 1.25rem;
}

.redeem-announcement .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 42px;
}

.redeem-announcement .modal-footer svg {
    width: 17px;
    height: 17px;
}

.ai-renewal-reminder {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border-left: 3px solid #1677ff;
    background: #eff6ff;
    color: #243349;
    font-size: .9rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.ai-renewal-reminder strong {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ai-renewal-reminder svg { width: 18px; height: 18px; }
.ai-renewal-reminder p { margin: .5rem 0; }
.ai-renewal-return { max-width: 280px; margin: 0 auto 1.5rem; }

.ai-period-choice {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid var(--front-border);
}

.ai-period-choice-head {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1rem;
}

.ai-period-choice-head > svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: .15rem;
    color: var(--front-primary);
}

.ai-period-choice h2 {
    margin: 0 0 .4rem;
    color: var(--front-text);
    font-size: 1.12rem;
    font-weight: 750;
}

.ai-period-choice p {
    margin: 0;
    color: var(--front-muted);
    font-size: .88rem;
}

.ai-period-choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.ai-period-choice-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .65rem 1.1rem;
    border-radius: 6px;
    font-size: .9rem;
    white-space: normal;
}

.ai-period-choice-actions svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.ai-period-history {
    max-width: 1120px;
    margin: 0 auto 2rem;
    padding-top: 1rem;
}

.ai-period-history-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-period-history-head span {
    display: block;
    margin-bottom: .3rem;
    color: #0284c7;
    font-size: .72rem;
    font-weight: 950;
}

.ai-period-history-head h2 {
    margin: 0;
    color: #102033;
    font-size: 1.35rem;
    font-weight: 950;
}

.ai-period-history-head p {
    margin: 0;
    color: #64748b;
    font-size: .86rem;
}

.ai-period-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.ai-period-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.ai-period-item.is-pending {
    border-style: dashed;
    background: rgba(248, 250, 252, .8);
}

.ai-period-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ai-period-item-head > div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.ai-period-item-head strong {
    color: #172033;
    font-size: .95rem;
}

.ai-period-item-head span {
    padding: .2rem .45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .7rem;
    font-weight: 900;
}

.ai-period-item.is-pending .ai-period-item-head span {
    background: #e2e8f0;
    color: #64748b;
}

.ai-period-item-head time {
    color: #64748b;
    font-size: .76rem;
    text-align: right;
}

.ai-period-item details {
    margin-top: .8rem;
    padding-top: .75rem;
    border-top: 1px solid #e2e8f0;
}

.ai-period-item summary {
    color: #0369a1;
    font-size: .86rem;
    font-weight: 900;
    cursor: pointer;
}

.ai-period-item pre {
    max-height: 240px;
    margin: .75rem 0;
    padding: .8rem;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    font-size: .8rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-period-item button {
    min-height: 36px;
    padding: 0 .75rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #fff;
    color: #0369a1;
    font-size: .78rem;
    font-weight: 900;
}

.ai-period-item > p {
    margin: .75rem 0 0;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .ai-period-history-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-period-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .ai-period-item-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-period-item-head time {
        text-align: left;
    }
}

/* Admin operations workspace */
.admin-body {
    --admin-bg: #f6f8fb;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8fafc;
    --admin-border: #dfe5ec;
    --admin-border-soft: #edf1f5;
    --admin-text: #172033;
    --admin-muted: #667085;
    --admin-primary: #1677ff;
    --admin-primary-dark: #0f62d6;
    --admin-primary-soft: #eaf3ff;
    --admin-cyan: #0891b2;
    --admin-success: #168a55;
    --admin-warning: #b7791f;
    --admin-danger: #d14343;
    min-height: 100vh;
    margin: 0;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    --bs-offcanvas-width: 256px;
    display: flex;
    flex: 0 0 256px;
    flex-direction: column;
    width: 256px;
    min-height: 100vh;
    border-right: 1px solid var(--admin-border);
    background: var(--admin-surface);
    color: var(--admin-text);
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 72px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--admin-border-soft);
}

.admin-sidebar-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .75rem;
    color: var(--admin-text);
    text-decoration: none;
}

.admin-sidebar-brand:hover {
    color: var(--admin-text);
}

.admin-brand-mark {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    box-shadow: 0 9px 24px rgba(22, 119, 255, .2);
}

.admin-brand-mark svg {
    width: 21px;
    height: 21px;
}

.admin-sidebar-brand > span:last-child {
    min-width: 0;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar-brand strong {
    max-width: 162px;
    font-size: .95rem;
    font-weight: 850;
}

.admin-sidebar-brand small {
    margin-top: .15rem;
    color: var(--admin-muted);
    font-size: .72rem;
}

.admin-sidebar-nav {
    flex: 1 1 auto;
    padding: .85rem .75rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-nav-group + .admin-nav-group {
    margin-top: 1rem;
}

.admin-nav-label {
    padding: 0 .75rem .35rem;
    color: #98a2b3;
    font-size: .7rem;
    font-weight: 800;
}

.admin-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .72rem;
    min-height: 42px;
    margin: .12rem 0;
    padding: .55rem .75rem;
    border-radius: 6px;
    color: #475467;
    font-weight: 700;
    text-decoration: none;
}

.admin-nav-link::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: transparent;
}

.admin-nav-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.admin-nav-link:hover {
    background: #f3f6fa;
    color: var(--admin-text);
}

.admin-nav-link.active {
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
}

.admin-nav-link.active::before {
    background: var(--admin-primary);
}

.admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 72px;
    padding: .85rem 1rem;
    border-top: 1px solid var(--admin-border-soft);
    background: #fbfcfe;
}

.admin-user-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #bfd8ff;
    border-radius: 50%;
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
    font-size: .82rem;
    font-weight: 850;
}

.admin-user-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-user-meta strong,
.admin-user-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-meta strong {
    font-size: .82rem;
    font-weight: 800;
}

.admin-user-meta small {
    margin-top: .08rem;
    color: var(--admin-muted);
    font-size: .7rem;
}

.admin-icon-button {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: var(--admin-surface);
    color: #475467;
    text-decoration: none;
}

.admin-icon-button:hover,
.admin-icon-button:focus {
    border-color: #b9d3ff;
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
}

.admin-icon-button:focus-visible,
.admin-nav-link:focus-visible,
.admin-topbar-link:focus-visible {
    outline: 3px solid rgba(22, 119, 255, .18);
    outline-offset: 2px;
}

.admin-icon-button svg {
    width: 17px;
    height: 17px;
}

.admin-workspace {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.admin-topbar-start,
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.admin-topbar-title span,
.admin-topbar-title strong {
    display: block;
}

.admin-topbar-title span {
    margin-bottom: .08rem;
    color: var(--admin-muted);
    font-size: .7rem;
    font-weight: 700;
}

.admin-topbar-title strong {
    color: var(--admin-text);
    font-size: .98rem;
    font-weight: 850;
}

.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    padding: 0 .75rem;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    background: var(--admin-surface);
    color: #475467;
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
}

.admin-topbar-link:hover {
    border-color: #b9d3ff;
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
}

.admin-topbar-link svg {
    width: 15px;
    height: 15px;
}

.admin-topbar-user {
    align-items: center;
    gap: .45rem;
    color: var(--admin-muted);
    font-size: .8rem;
    font-weight: 700;
}

.admin-user-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--admin-success);
    box-shadow: 0 0 0 4px rgba(22, 138, 85, .1);
}

.admin-main {
    padding: 1.5rem;
}

.admin-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.admin-content > .d-flex:first-child h1,
.admin-content > h1 {
    color: var(--admin-text);
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.3;
}

.admin-body .text-muted {
    color: var(--admin-muted) !important;
}

.admin-body .card {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .035);
}

.admin-body .card-header {
    min-height: 50px;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--admin-border-soft);
    background: var(--admin-surface) !important;
    color: var(--admin-text);
}

.admin-body .card-body {
    padding: 1rem;
}

.admin-body .btn {
    min-height: 40px;
    padding: .48rem .85rem;
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 750;
}

.admin-body .btn svg {
    width: 15px;
    height: 15px;
    margin-right: .38rem;
    vertical-align: -2px;
}

.admin-body .btn.icon-only svg,
.admin-body .admin-icon-button svg {
    margin-right: 0;
}

.admin-body .btn-sm {
    min-height: 32px;
    padding: .32rem .62rem;
    font-size: .77rem;
}

.admin-body .btn-success,
.admin-body .btn-primary {
    border-color: var(--admin-primary);
    background: var(--admin-primary);
    color: #fff;
}

.admin-body .btn-success:hover,
.admin-body .btn-success:focus,
.admin-body .btn-primary:hover,
.admin-body .btn-primary:focus {
    border-color: var(--admin-primary-dark);
    background: var(--admin-primary-dark);
    color: #fff;
}

.admin-body .btn-outline-success,
.admin-body .btn-outline-primary {
    border-color: #9cc4ff;
    background: #fff;
    color: var(--admin-primary-dark);
}

.admin-body .btn-outline-success:hover,
.admin-body .btn-outline-success:focus,
.admin-body .btn-outline-primary:hover,
.admin-body .btn-outline-primary:focus {
    border-color: var(--admin-primary);
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
}

.admin-body .btn-outline-secondary {
    border-color: var(--admin-border);
    background: #fff;
    color: #475467;
}

.admin-body .btn-outline-secondary:hover,
.admin-body .btn-outline-secondary:focus {
    border-color: #c8d0dc;
    background: #f3f6fa;
    color: var(--admin-text);
}

.admin-body .btn-outline-danger {
    border-color: #f0b4b4;
    color: var(--admin-danger);
}

.admin-body .btn-outline-danger:hover,
.admin-body .btn-outline-danger:focus {
    border-color: var(--admin-danger);
    background: #fff0f0;
    color: #b42318;
}

.admin-body .form-label {
    margin-bottom: .42rem;
    color: #344054;
    font-size: .81rem;
    font-weight: 750;
}

.admin-body .form-control,
.admin-body .form-select {
    min-height: 40px;
    border-color: #d5dde8;
    border-radius: 6px;
    background-color: #fff;
    color: var(--admin-text);
    font-size: .84rem;
}

.admin-body textarea.form-control {
    min-height: auto;
    line-height: 1.65;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
    border-color: #7fb1f8;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .11);
}

.admin-body .form-control::placeholder {
    color: #98a2b3;
}

.admin-body .form-control[readonly],
.admin-body .form-control:disabled,
.admin-body .form-select:disabled {
    background-color: #f5f7fa;
    color: #667085;
}

.admin-body .form-text,
.admin-body .form-help {
    color: var(--admin-muted);
    font-size: .75rem;
}

.admin-body .form-check {
    color: #475467;
    font-size: .82rem;
}

.admin-body .form-check-input {
    border-color: #b8c3d1;
}

.admin-body .form-check-input:checked {
    border-color: var(--admin-primary);
    background-color: var(--admin-primary);
}

.admin-body .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #f8fbff;
    margin-bottom: 0;
    color: var(--admin-text);
    font-size: .82rem;
}

.admin-body .table > :not(caption) > * > * {
    padding: .78rem .85rem;
    border-bottom-color: var(--admin-border-soft);
}

.admin-body .table thead th {
    border-bottom-width: 1px;
    background: var(--admin-surface-soft);
    color: #667085;
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-body .table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-body .table code {
    display: inline-block;
    max-width: 260px;
    padding: .2rem .42rem;
    overflow: hidden;
    border: 1px solid #d7e7ff;
    border-radius: 4px;
    background: #f2f7ff;
    color: #175cd3;
    font-size: .78rem;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-body .badge {
    padding: .32rem .48rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
}

.admin-body .admin-status-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 2rem;
    padding: .32rem .65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.admin-body .admin-status-toggle.is-enabled {
    color: #087443;
    background: #e8f7ef;
    border-color: #c9ead9;
}

.admin-body .admin-status-toggle.is-disabled {
    color: #667085;
    background: #f2f4f7;
    border-color: #e4e7ec;
}

.admin-body .admin-status-toggle:hover,
.admin-body .admin-status-toggle:focus-visible {
    color: #fff !important;
    background: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 .2rem rgba(24, 119, 83, .14);
    outline: 0;
}

.admin-body .text-bg-success {
    background-color: #e8f7ef !important;
    color: #137a4b !important;
}

.admin-body .text-bg-warning {
    background-color: #fff4dd !important;
    color: #97600d !important;
}

.admin-body .text-bg-danger {
    background-color: #ffeded !important;
    color: #b42318 !important;
}

.admin-body .text-bg-secondary {
    background-color: #edf0f4 !important;
    color: #596273 !important;
}

.admin-body .alert {
    border-width: 1px;
    border-radius: 6px;
    font-size: .84rem;
}

.admin-body .alert-info {
    border-color: #b8dbff;
    background: #edf7ff;
    color: #175b8f;
}

.admin-body .alert-warning {
    border-color: #f4d49a;
    background: #fff8e8;
    color: #855b16;
}

.admin-body .alert-danger {
    border-color: #f0b4b4;
    background: #fff0f0;
    color: #9f2d2d;
}

.admin-body .pagination {
    gap: .28rem;
}

.admin-body .page-link {
    min-width: 34px;
    border: 1px solid var(--admin-border);
    border-radius: 6px !important;
    color: #475467;
    text-align: center;
}

.admin-body .page-item.active .page-link {
    border-color: var(--admin-primary);
    background: var(--admin-primary);
}

.admin-body .stat-card {
    min-height: 118px;
}

.admin-body .stat-card .card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.admin-body .stat-number {
    margin-top: .35rem;
    color: var(--admin-text);
    font-size: 1.8rem;
    font-weight: 850;
    line-height: 1.1;
}

.admin-stat-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
}

.admin-stat-icon svg {
    width: 19px;
    height: 19px;
}

.admin-stat-icon.is-cyan {
    background: #e8f8fb;
    color: #087d99;
}

.admin-stat-icon.is-green {
    background: #e8f7ef;
    color: #137a4b;
}

.admin-stat-icon.is-amber {
    background: #fff4dd;
    color: #97600d;
}

.admin-stat-icon.is-red {
    background: #ffeded;
    color: #b42318;
}

.admin-body canvas {
    width: 100% !important;
    height: 270px !important;
    max-height: 270px;
}

.admin-body .bulk-plan-number {
    width: 96px;
}

/* Admin sign-in */
.admin-login-page {
    --login-primary: #1677ff;
    --login-primary-dark: #0f62d6;
    --login-text: #172033;
    --login-muted: #667085;
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(22, 119, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 119, 255, .035) 1px, transparent 1px),
        #f6f8fb;
    background-size: 32px 32px;
    color: var(--login-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-shell {
    display: grid;
    min-height: 100vh;
    padding: 2rem 1rem;
    place-items: center;
}

.admin-login-panel {
    width: min(100%, 430px);
}

.admin-login-brand {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: .72rem;
    margin: 0 auto 1.15rem;
    color: var(--login-text);
    text-decoration: none;
}

.admin-login-brand:hover {
    color: var(--login-text);
}

.admin-login-brand-mark,
.admin-login-security-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: var(--login-primary-dark);
}

.admin-login-brand-mark svg,
.admin-login-security-icon svg {
    width: 20px;
    height: 20px;
}

.admin-login-brand strong,
.admin-login-brand small {
    display: block;
}

.admin-login-brand strong {
    max-width: 290px;
    overflow: hidden;
    font-size: .96rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-login-brand small {
    margin-top: .08rem;
    color: var(--login-muted);
    font-size: .7rem;
}

.admin-login-card {
    padding: 1.5rem;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

.admin-login-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.4rem;
}

.admin-login-heading h1 {
    margin: 0 0 .2rem;
    color: var(--login-text);
    font-size: 1.28rem;
    font-weight: 850;
    line-height: 1.3;
}

.admin-login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: .8rem;
}

.admin-login-card .form-label {
    margin-bottom: .42rem;
    color: #344054;
    font-size: .81rem;
    font-weight: 750;
}

.admin-login-card .form-control {
    min-height: 44px;
    border-color: #d5dde8;
    border-radius: 6px;
    color: var(--login-text);
    font-size: .88rem;
}

.admin-login-card .form-control:focus {
    border-color: #7fb1f8;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .11);
}

.admin-login-card .form-text {
    color: var(--login-muted);
    font-size: .72rem;
}

.admin-login-card .alert {
    border-color: #f0b4b4;
    border-radius: 6px;
    background: #fff0f0;
    color: #9f2d2d;
    font-size: .82rem;
}

.admin-login-submit {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-color: var(--login-primary);
    border-radius: 6px;
    background: var(--login-primary);
    font-size: .88rem;
    font-weight: 800;
}

.admin-login-submit:hover,
.admin-login-submit:focus {
    border-color: var(--login-primary-dark);
    background: var(--login-primary-dark);
}

.admin-login-submit svg,
.admin-login-home svg {
    width: 16px;
    height: 16px;
}

.admin-login-home {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: .38rem;
    margin: 1.1rem auto 0;
    color: #596273;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-login-home:hover {
    color: var(--login-primary-dark);
}

@media (min-width: 1200px) {
    .admin-sidebar.offcanvas-xl {
        position: sticky;
        top: 0;
        z-index: 1030;
        flex: 0 0 256px;
        width: 256px !important;
        height: 100vh;
        border-right: 1px solid var(--admin-border) !important;
        background: var(--admin-surface) !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media (max-width: 1199.98px) {
    .admin-sidebar {
        min-height: 100vh;
        box-shadow: 18px 0 46px rgba(16, 24, 40, .13);
    }

    .admin-sidebar-head {
        padding-right: .75rem;
    }

    .admin-workspace {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .admin-topbar {
        min-height: 64px;
        padding: 0 1rem;
    }

    .admin-main {
        padding: 1rem;
    }

    .admin-content > .d-flex:first-child {
        align-items: flex-start !important;
    }

    .admin-content > .d-flex:first-child h1 {
        font-size: 1.3rem;
    }

    .admin-body .card-body {
        padding: .9rem;
    }

    .admin-body .card-header {
        padding: .7rem .9rem;
    }

    .admin-body .table > :not(caption) > * > * {
        padding: .7rem .72rem;
    }

    .admin-body .card-header .w-auto,
    .admin-body form .w-auto {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .admin-topbar-link span {
        display: none;
    }

    .admin-topbar-link {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .admin-content > .d-flex:first-child {
        flex-direction: column;
    }

    .admin-content > .d-flex:first-child > .d-flex {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-login-shell {
        padding: 1.25rem .85rem;
    }

    .admin-login-card {
        padding: 1.2rem;
    }
}

/* Front redemption workspace v2 */
.ai-light-page.front-page {
    --front-bg: #f5f7fb;
    --front-surface: #ffffff;
    --front-surface-soft: #f8fafc;
    --front-border: #dfe5ec;
    --front-border-soft: #edf1f5;
    --front-text: #172033;
    --front-muted: #667085;
    --front-primary: #1677ff;
    --front-primary-dark: #0f62d6;
    --front-primary-soft: #eaf3ff;
    --front-cyan: #087d99;
    --front-cyan-soft: #e8f8fb;
    --front-success: #168a55;
    --front-success-soft: #e8f7ef;
    --front-warning: #97600d;
    --front-warning-soft: #fff7e6;
    min-height: 100vh;
    background: var(--front-bg);
    color: var(--front-text);
}

.ai-light-page,
.ai-light-page *,
.ai-light-page *::before,
.ai-light-page *::after {
    box-sizing: border-box;
}

.ai-light-main {
    min-height: 100vh;
    padding: 0 0 2rem;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-light-main > .container {
    max-width: 1180px;
}

.ai-light-nav {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--front-border);
}

.ai-light-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .72rem;
    color: var(--front-text);
    text-decoration: none;
}

.ai-light-brand:hover {
    color: var(--front-text);
}

.ai-light-brand .ai-light-brand-mark {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: var(--front-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(22, 119, 255, .18);
}

.ai-light-brand-mark svg {
    width: 20px;
    height: 20px;
}

.ai-light-brand-mark b {
    font-size: .72rem;
    font-weight: 900;
}

.ai-light-brand-mark svg + b {
    display: none;
}

.ai-light-brand .ai-light-brand-copy {
    display: block;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.ai-light-brand-copy strong,
.ai-light-brand-copy small {
    display: block;
}

.ai-light-brand-copy strong {
    max-width: 340px;
    overflow: hidden;
    font-size: .98rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-light-brand-copy small {
    margin-top: .08rem;
    color: var(--front-muted);
    font-size: .64rem;
    font-weight: 750;
}

.ai-light-buy {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: 0 .85rem;
    border: 1px solid #b8d4ff;
    border-radius: 6px;
    background: var(--front-surface);
    color: var(--front-primary-dark);
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
}

.ai-light-buy:hover,
.ai-light-buy:focus {
    border-color: var(--front-primary);
    background: var(--front-primary-soft);
    color: var(--front-primary-dark);
}

.ai-light-buy svg {
    width: 16px;
    height: 16px;
}

.ai-light-hero {
    padding: 3.5rem 0 2.4rem;
}

.ai-light-hero-copy {
    max-width: 760px;
    margin: 0 auto 1.65rem;
    text-align: center;
}

.ai-light-kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: .38rem;
    margin-bottom: .85rem;
    padding: 0 .68rem;
    border: 1px solid #b8dbff;
    border-radius: 6px;
    background: #f2f8ff;
    color: #175cd3;
    font-size: .72rem;
    font-weight: 850;
    text-transform: none;
}

.ai-light-kicker svg {
    width: 14px;
    height: 14px;
}

.ai-light-title {
    max-width: none;
    margin: 0 0 .8rem;
    color: #101828;
    font-size: 3.15rem;
    font-weight: 900;
    line-height: 1.14;
}

.ai-light-subtitle {
    max-width: 680px;
    margin: 0 auto;
    color: var(--front-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.ai-light-redeem {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.4rem;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: var(--front-surface);
    box-shadow: 0 18px 48px rgba(16, 24, 40, .08);
    backdrop-filter: none;
}

.ai-light-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.ai-light-card-head span {
    display: block;
    margin-bottom: .22rem;
    color: #175cd3;
    font-size: .68rem;
    font-weight: 850;
}

.ai-light-card-head h2 {
    margin: 0;
    color: var(--front-text);
    font-size: 1.2rem;
    font-weight: 850;
}

.ai-light-card-head em {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: .35rem;
    padding: 0 .62rem;
    border-radius: 6px;
    background: var(--front-success-soft);
    color: var(--front-success);
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

.ai-light-card-head em svg {
    width: 13px;
    height: 13px;
}

.ai-light-alert {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 1rem 0;
    padding: .72rem 2.8rem .72rem .8rem;
    border-radius: 6px;
    font-size: .82rem;
}

.ai-light-alert > svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

.ai-light-alert .btn-close {
    top: 50%;
    transform: translateY(-50%);
}

.ai-light-card-copy {
    margin: 0 0 1rem;
    color: var(--front-muted);
    font-size: .84rem;
    line-height: 1.65;
}

.ai-light-form .form-label {
    margin-bottom: .42rem;
    color: #344054;
    font-size: .8rem;
    font-weight: 800;
}

.ai-light-field {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    padding: 6px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    background: var(--front-surface);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.ai-light-field:focus-within {
    border-color: #7fb1f8;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, .11);
}

.ai-light-field-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #667085;
}

.ai-light-field-icon svg {
    width: 19px;
    height: 19px;
}

.ai-light-input {
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: .65rem .7rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--front-text);
    font-size: .95rem;
    font-weight: 700;
    box-shadow: none;
}

.ai-light-input:focus {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ai-light-input::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.ai-light-submit {
    display: inline-flex;
    width: auto;
    min-width: 138px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 1rem;
    border: 1px solid var(--front-primary);
    border-radius: 6px;
    background: var(--front-primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(22, 119, 255, .18);
}

.ai-light-submit:hover,
.ai-light-submit:focus {
    border-color: var(--front-primary-dark);
    background: var(--front-primary-dark);
}

.ai-light-submit:disabled {
    border-color: #84adf0;
    background: #84adf0;
    cursor: wait;
    box-shadow: none;
}

.ai-light-submit svg {
    width: 16px;
    height: 16px;
}

.ai-submit-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ai-submit-spin .75s linear infinite;
}

@keyframes ai-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-light-field-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .55rem;
    color: var(--front-muted);
    font-size: .72rem;
}

.ai-light-field-help span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.ai-light-field-help svg {
    width: 13px;
    height: 13px;
    color: var(--front-success);
}

.ai-light-checks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--front-border-soft);
}

.ai-light-checks span {
    display: inline-flex;
    min-height: auto;
    align-items: center;
    gap: .36rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #475467;
    font-size: .76rem;
    font-weight: 750;
}

.ai-light-checks svg {
    width: 15px;
    height: 15px;
    color: var(--front-cyan);
}

.ai-light-services {
    display: grid;
    max-width: 860px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin: .9rem auto 0;
}

.ai-light-service {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: .65rem;
    padding: .78rem;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: none;
}

.ai-light-service .ai-light-service-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
    place-items: center;
    border-radius: 7px;
    background: var(--front-primary-soft);
    color: var(--front-primary-dark);
    font-size: inherit;
    font-weight: inherit;
}

.ai-light-service-icon svg {
    width: 17px;
    height: 17px;
}

.ai-light-service > span:last-child {
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.ai-light-service b,
.ai-light-service small {
    display: block;
}

.ai-light-service b {
    color: var(--front-text);
    font-size: .86rem;
    font-weight: 850;
}

.ai-light-service small {
    margin-top: .16rem;
    overflow: hidden;
    color: var(--front-muted);
    font-size: .67rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-light-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: var(--front-surface);
}

.ai-light-info article {
    min-height: 178px;
    padding: 1.15rem;
    border: 0;
    border-right: 1px solid var(--front-border-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ai-light-info article:last-child {
    border-right: 0;
}

.ai-light-info .ai-light-info-icon {
    display: grid;
    width: 32px;
    height: 32px;
    margin-bottom: .72rem;
    place-items: center;
    border-radius: 7px;
    background: var(--front-cyan-soft);
    color: var(--front-cyan);
}

.ai-light-info-icon svg {
    width: 16px;
    height: 16px;
}

.ai-light-info h2 {
    margin: 0 0 .45rem;
    color: var(--front-text);
    font-size: .9rem;
    font-weight: 850;
}

.ai-light-info p {
    margin: 0;
    color: var(--front-muted);
    font-size: .8rem;
    line-height: 1.72;
}

.ai-light-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .25rem .1rem;
    color: var(--front-muted);
    font-size: .72rem;
}

.ai-light-footer span,
.ai-light-footer a {
    display: inline-flex;
    align-items: center;
    gap: .34rem;
}

.ai-light-footer a {
    color: var(--front-primary-dark);
    font-weight: 750;
    text-decoration: none;
}

.ai-light-footer svg {
    width: 14px;
    height: 14px;
}

/* Front result */
.ai-result-main {
    padding-bottom: 2.5rem;
}

.ai-result-nav {
    margin-bottom: 1.65rem;
}

.ai-result-intro {
    display: flex;
    max-width: 1120px;
    align-items: flex-start;
    gap: .85rem;
    margin: 0 auto 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #bfe7d1;
    border-left: 4px solid var(--front-success);
    border-radius: 8px;
    background: #f5fcf8;
    text-align: left;
}

.ai-result-intro.is-history {
    border-color: #c7dcff;
    border-left-color: var(--front-primary);
    background: #f5f9ff;
}

.ai-result-intro-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--front-success-soft);
    color: var(--front-success);
}

.ai-result-intro.is-history .ai-result-intro-icon {
    background: var(--front-primary-soft);
    color: var(--front-primary-dark);
}

.ai-result-intro-icon svg {
    width: 20px;
    height: 20px;
}

.ai-result-intro .ai-light-kicker {
    min-height: auto;
    margin: 0 0 .24rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--front-success);
}

.ai-result-intro.is-history .ai-light-kicker {
    color: var(--front-primary-dark);
}

.ai-result-intro h1 {
    margin: 0 0 .28rem;
    color: var(--front-text);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.3;
}

.ai-result-intro p {
    margin: 0;
    color: #475467;
    font-size: .82rem;
    line-height: 1.6;
}

.ai-result-layout {
    display: grid;
    max-width: 1120px;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .72fr);
    align-items: start;
    gap: 1rem;
    margin: 0 auto 1.6rem;
}

.ai-result-card,
.ai-result-side,
.ai-result-empty {
    border: 1px solid var(--front-border);
    border-radius: 8px;
    background: var(--front-surface);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
    backdrop-filter: none;
}

.ai-result-card {
    min-width: 0;
    padding: 1.15rem;
}

.ai-result-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.ai-result-card-head span,
.ai-result-side-block > span,
.ai-result-package > span,
.ai-period-history-head span {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .24rem;
    color: #175cd3;
    font-size: .66rem;
    font-weight: 850;
}

.ai-result-card-head span svg,
.ai-result-side-block > span svg,
.ai-period-history-head span svg {
    width: 13px;
    height: 13px;
}

.ai-result-card-head h2,
.ai-result-side-block h2 {
    margin: 0;
    color: var(--front-text);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.4;
}

.ai-result-card-head em {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .3rem;
    padding: .32rem .55rem;
    border: 0;
    border-radius: 6px;
    background: var(--front-success-soft);
    color: var(--front-success);
    font-size: .7rem;
    font-style: normal;
    font-weight: 800;
}

.ai-result-card-head em svg {
    width: 13px;
    height: 13px;
}

.ai-result-content-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #d5e1f0;
    border-radius: 8px;
    background: #f8fafc;
}

.ai-result-content-toolbar {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .65rem .5rem .85rem;
    border-bottom: 1px solid var(--front-border);
    background: #fff;
}

.ai-result-content-toolbar > span,
.ai-result-inline-copy {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
}

.ai-result-content-toolbar > span {
    color: #344054;
    font-size: .78rem;
    font-weight: 800;
}

.ai-result-content-toolbar svg {
    width: 15px;
    height: 15px;
}

.ai-result-content {
    min-height: 230px;
    max-height: 480px;
    margin: 0;
    padding: 1rem;
    overflow: auto;
    color: #101828;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .88rem;
    line-height: 1.78;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-result-inline-copy {
    position: static;
    min-height: 34px;
    padding: 0 .7rem;
    border: 1px solid #b8d4ff;
    border-radius: 6px;
    background: #fff;
    color: var(--front-primary-dark);
    font-size: .74rem;
    font-weight: 800;
    box-shadow: none;
}

.ai-result-inline-copy:hover {
    border-color: var(--front-primary);
    background: var(--front-primary-soft);
}

.ai-result-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .8rem;
}

.ai-result-meta > div {
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--front-border-soft);
    border-radius: 7px;
    background: var(--front-surface-soft);
}

.ai-result-meta-wide {
    grid-column: 1 / -1;
}

.ai-result-meta span {
    display: block;
    margin-bottom: .24rem;
    color: var(--front-muted);
    font-size: .69rem;
    font-weight: 750;
}

.ai-result-meta strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--front-text);
    font-size: .84rem;
    font-weight: 750;
    line-height: 1.55;
}

.ai-result-package {
    margin-top: .8rem;
    padding: .8rem .9rem;
    border: 1px solid #f2d28b;
    border-radius: 7px;
    background: var(--front-warning-soft);
    color: #764d0a;
    font-size: .8rem;
    line-height: 1.65;
}

.ai-result-package p {
    margin: 0;
}

.ai-result-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .8rem;
}

.ai-result-actions button,
.ai-period-item button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem;
    border: 1px solid #b8d4ff;
    border-radius: 6px;
    background: #fff;
    color: var(--front-primary-dark);
    font-size: .75rem;
    font-weight: 800;
}

.ai-result-actions button svg,
.ai-period-item button svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}

.ai-result-actions button:hover,
.ai-period-item button:hover {
    border-color: var(--front-primary);
    background: var(--front-primary-soft);
    color: var(--front-primary-dark);
}

.ai-result-actions .is-primary,
.ai-result-actions .is-primary:hover {
    border-color: var(--front-primary);
    background: var(--front-primary);
    color: #fff;
}

.ai-result-side {
    padding: 1.05rem;
}

.ai-result-side-block p {
    margin: .55rem 0 0;
    color: var(--front-muted);
    font-size: .8rem;
    line-height: 1.68;
}

.ai-support-notice {
    margin-bottom: 1rem;
    padding: .82rem .9rem;
    border: 1px solid #c7dcff;
    border-radius: 7px;
    background: #f2f7ff;
    color: #344e73;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.65;
}

.ai-result-support {
    margin: .9rem 0;
}

.ai-result-support strong {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .3rem;
    color: var(--front-primary-dark);
}

.ai-result-support strong svg {
    width: 15px;
    height: 15px;
}

.ai-result-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-bottom: .9rem;
}

.ai-result-trust span {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: .28rem;
    padding: 0 .52rem;
    border: 1px solid var(--front-border);
    border-radius: 6px;
    background: var(--front-surface-soft);
    color: #475467;
    font-size: .67rem;
    font-weight: 750;
}

.ai-result-trust svg {
    width: 12px;
    height: 12px;
    color: var(--front-cyan);
}

.ai-result-primary {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem .9rem;
    border: 1px solid var(--front-primary);
    border-radius: 6px;
    background: var(--front-primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(22, 119, 255, .16);
}

.ai-result-primary:hover {
    border-color: var(--front-primary-dark);
    background: var(--front-primary-dark);
    color: #fff;
}

.ai-result-primary svg {
    width: 16px;
    height: 16px;
}

.ai-period-progress {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--front-border-soft);
}

.ai-period-progress-head {
    margin-bottom: .55rem;
    color: #475467;
    font-size: .76rem;
}

.ai-period-progress-head strong {
    color: var(--front-primary-dark);
    font-size: .82rem;
}

.ai-period-progress-bar {
    height: 7px;
    margin-bottom: .75rem;
    background: #e5eaf0;
}

.ai-period-progress-bar::-webkit-progress-value,
.ai-period-progress-bar::-moz-progress-bar {
    background: var(--front-primary);
}

.ai-period-progress dl {
    gap: .48rem;
}

.ai-period-progress dt,
.ai-period-progress dd {
    font-size: .7rem;
}

.ai-result-empty {
    max-width: 620px;
    margin: 4rem auto;
    padding: 2.5rem;
    text-align: center;
}

.ai-result-empty-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto .9rem;
    place-items: center;
    border-radius: 8px;
    background: var(--front-primary-soft);
    color: var(--front-primary-dark);
    font-size: inherit;
}

.ai-result-empty-mark svg {
    width: 24px;
    height: 24px;
}

.ai-result-empty h1 {
    margin: .25rem 0 .55rem;
    color: var(--front-text);
    font-size: 1.55rem;
    font-weight: 900;
}

.ai-result-empty p {
    margin: 0 0 1.25rem;
    color: var(--front-muted);
    font-size: .84rem;
}

.ai-result-empty .ai-result-primary {
    max-width: 210px;
    margin: 0 auto;
}

.ai-period-history {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    padding-top: .5rem;
}

.ai-period-history-head {
    margin-bottom: .8rem;
}

.ai-period-history-head h2 {
    color: var(--front-text);
    font-size: 1.12rem;
    font-weight: 850;
}

.ai-period-history-head p {
    color: var(--front-muted);
    font-size: .76rem;
}

.ai-period-list {
    gap: .7rem;
}

.ai-period-item {
    padding: .9rem;
    border-color: var(--front-border);
    border-radius: 8px;
    background: var(--front-surface);
    box-shadow: 0 6px 20px rgba(16, 24, 40, .045);
}

.ai-period-item.is-pending {
    background: var(--front-surface-soft);
}

.ai-period-item-head strong {
    font-size: .84rem;
}

.ai-period-item-head span {
    border-radius: 5px;
    background: var(--front-success-soft);
    color: var(--front-success);
    font-size: .64rem;
}

.ai-period-item.is-pending .ai-period-item-head span {
    background: #edf0f4;
    color: #596273;
}

.ai-period-item-head time {
    font-size: .69rem;
}

.ai-period-item details {
    border-top-color: var(--front-border-soft);
}

.ai-period-item summary {
    color: var(--front-primary-dark);
    font-size: .78rem;
}

.ai-period-item pre {
    border-color: var(--front-border);
    border-radius: 7px;
    background: var(--front-surface-soft);
    font-size: .76rem;
}

.ai-period-item button {
    min-height: 36px;
    padding: 0 .68rem;
}

.ai-period-item > p {
    color: var(--front-muted);
    font-size: .76rem;
}

@media (max-width: 991.98px) {
    .ai-light-hero {
        padding-top: 3rem;
    }

    .ai-light-title {
        font-size: 2.75rem;
    }

    .ai-light-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-light-info {
        grid-template-columns: 1fr;
    }

    .ai-light-info article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--front-border-soft);
    }

    .ai-light-info article:last-child {
        border-bottom: 0;
    }

    .ai-result-layout {
        max-width: 760px;
        grid-template-columns: 1fr;
    }

    .ai-result-intro,
    .ai-period-choice,
    .ai-period-history {
        max-width: 760px;
    }

    .ai-result-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ai-light-main {
        padding-bottom: 1.25rem;
    }

    .ai-light-nav {
        min-height: 64px;
    }

    .ai-light-brand-copy strong {
        max-width: 230px;
    }

    .ai-light-hero {
        padding: 2.4rem 0 1.5rem;
    }

    .ai-light-title {
        font-size: 2.2rem;
    }

    .ai-light-redeem {
        padding: 1.1rem;
    }

    .ai-light-field {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .ai-light-field-icon {
        width: 38px;
    }

    .ai-light-submit {
        width: 100%;
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .ai-light-field-help {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .ai-light-checks {
        gap: .7rem;
    }

    .ai-light-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-result-nav {
        margin-bottom: 1.2rem;
    }

    .ai-result-intro {
        padding: .9rem;
    }

    .ai-result-intro h1 {
        font-size: 1.08rem;
    }

    .ai-result-card,
    .ai-result-side {
        padding: .9rem;
    }

    .ai-result-empty {
        margin: 2rem auto;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .ai-period-choice-actions .btn {
        width: 100%;
    }

    .ai-light-brand-copy strong {
        max-width: 170px;
    }

    .ai-light-brand-copy small {
        display: none;
    }

    .ai-light-buy {
        width: auto;
        padding: 0 .7rem;
    }

    .ai-light-title {
        font-size: 1.85rem;
    }

    .ai-light-subtitle {
        font-size: .88rem;
    }

    .ai-light-card-head {
        align-items: center;
    }

    .ai-light-card-head h2 {
        font-size: 1rem;
    }

    .ai-light-services {
        grid-template-columns: 1fr;
    }

    .ai-light-checks {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-result-intro-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .ai-result-card-head {
        align-items: flex-start;
    }

    .ai-result-card-head em {
        white-space: nowrap;
    }

    .ai-result-content-toolbar {
        align-items: flex-start;
        flex-direction: column;
        padding: .7rem;
    }

    .ai-result-inline-copy {
        width: 100%;
        justify-content: center;
    }

    .ai-result-content {
        min-height: 250px;
        padding: .85rem;
        font-size: .82rem;
    }

    .ai-result-meta,
    .ai-result-actions {
        grid-template-columns: 1fr;
    }

    .ai-result-meta-wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-submit-spinner {
        animation-duration: 1.5s;
    }
}
