html, body {
    font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #102a43;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f7fb;
}

main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(247, 201, 72, .22), transparent 28%),
        linear-gradient(180deg, #102a43 0%, #0b1f33 50%, #071727 100%);
    box-shadow: 14px 0 35px rgba(15, 23, 42, .08);
}

.top-row {
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid #e7edf5;
    backdrop-filter: blur(14px);
    justify-content: flex-end;
    min-height: 4rem;
    display: flex;
    align-items: center;
}

.top-row a,
.top-row .btn-link {
    white-space: nowrap;
    text-decoration: none;
}

.top-row a:hover,
.top-row .btn-link:hover {
    text-decoration: underline;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.brand-panel {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1rem 1rem;
    color: #fff;
}

.brand-panel img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    padding: .25rem;
}

.brand-panel strong,
.brand-panel span {
    display: block;
}

.brand-panel span {
    color: rgba(255,255,255,.68);
    font-size: .78rem;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.72%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.22);
}

.nav-section {
    color: rgba(255,255,255,.48);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 1rem 1.5rem .45rem;
    text-transform: uppercase;
}

.nav-item {
    font-size: .95rem;
    padding-bottom: .35rem;
}

.nav-item .nav-link {
    color: rgba(255,255,255,.78);
    border-radius: 14px;
    height: 2.8rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: 0 .85rem;
}

.nav-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    font-weight: 700;
}

.nav-item a.active {
    background: rgba(255,255,255,.16);
    color: #fff;
    box-shadow: inset 3px 0 0 #f7c948;
}

.nav-item .nav-link:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
}

.nav-scrollable {
    display: none;
    padding-bottom: 1rem;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

a, .btn-link {
    color: #0f62a8;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f62a8, #164b7d);
    border-color: #164b7d;
}

.btn-outline-primary {
    color: #164b7d;
    border-color: #9cc4e4;
}

.btn-outline-primary:hover {
    background: #164b7d;
    border-color: #164b7d;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #6aa6d8;
}

h1, h2, h3 {
    color: #102a43;
}

h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

h3 {
    font-size: 1rem;
    font-weight: 800;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hero-card,
.content-card,
.plan-card,
.stat-card {
    background: rgba(255,255,255,.94);
    border: 1px solid #e4edf6;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(16, 42, 67, 0.07);
    padding: 1.5rem;
}

.signin-bg {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 22, 38, .28), rgba(10, 22, 38, .28)), url('/images/highcourt.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.signin-card {
    width: 460px;
    max-width: 95vw;
    border: 0;
    border-radius: 22px;
}

.signin-logo {
    height: 80px;
    width: auto;
}

.eyebrow {
    color: #0f62a8;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.app-hero {
    background:
        radial-gradient(circle at 85% 25%, rgba(247, 201, 72, .24), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid #e2edf7;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(16, 42, 67, .07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.75rem;
}

.hero-date {
    background: #102a43;
    color: #fff;
    border-radius: 18px;
    font-weight: 700;
    padding: .8rem 1rem;
    white-space: nowrap;
}

.dashboard-grid,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.stat-card {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card span {
    color: #627d98;
    font-size: .88rem;
    font-weight: 700;
}

.stat-card strong {
    font-size: 2rem;
    line-height: 1;
}

.stat-card small {
    color: #829ab1;
}

.stat-card.primary {
    background: linear-gradient(135deg, #102a43, #164b7d);
    color: #fff;
}

.stat-card.primary span,
.stat-card.primary small,
.stat-card.primary strong {
    color: #fff;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.quick-actions a {
    background: #eef6ff;
    border-radius: 999px;
    color: #174a7c;
    font-weight: 700;
    padding: .45rem .85rem;
    text-decoration: none;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-list,
.device-list,
.side-stack,
.settings-list {
    display: grid;
    gap: .85rem;
}

.case-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    align-items: start;
    border: 1px solid #edf3f9;
    border-radius: 18px;
    padding: 1rem;
    background: #fbfdff;
}

.case-serial {
    align-items: center;
    background: #eef6ff;
    border-radius: 16px;
    color: #164b7d;
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 52px;
}

.case-row h3,
.case-row p {
    margin: 0;
}

.case-row p {
    color: #526d82;
    margin-top: .2rem;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .65rem;
}

.case-meta span,
.feature-list span,
.savings {
    background: #eef6ff;
    color: #174a7c;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .85rem;
    font-weight: 700;
}

.empty-state {
    border: 1px dashed #c7d9eb;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.preserve-lines {
    white-space: pre-wrap;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

/* Wrapper provides the stacking context for the "Coming Soon" overlay. */
.plan-card-wrapper {
    position: relative;
    /* Inherit the same visual appearance as the card it wraps. */
    border-radius: inherit;
    min-width: 0;
}

/* Semi-transparent frost overlay — readable but non-interactive. */
.plan-coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all; /* absorb all clicks so buttons underneath are unreachable */
    z-index: 10;
}

/* Ribbon badge — matches the yellow/slate two-tone style in the brief. */
.plan-coming-soon-ribbon {
    background: #f7c948;
    color: #1e293b;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .45rem 1.4rem;
    border-radius: 2rem;
    box-shadow: 0 4px 16px rgba(247, 201, 72, .45), 0 1px 4px rgba(0, 0, 0, .15);
    user-select: none;
    white-space: nowrap;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.feature-bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
}

.plan-not-included {
    margin: 0;
    color: #829ab1;
    font-size: .88rem;
}

.profile-card {
    text-align: center;
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 28px;
    background: linear-gradient(135deg, #102a43, #f7c948);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.settings-list > div,
.device-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf3f9;
    padding-bottom: .75rem;
}

.settings-list > div:last-child,
.device-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.settings-list span,
.device-row p {
    color: #627d98;
    margin: 0;
}

.usage-value {
    display: grid;
    gap: .1rem;
    text-align: right;
}

.usage-value span {
    color: inherit;
}

.usage-value small {
    color: #627d98;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

.devices-card {
    grid-column: span 2;
}

.device-row {
    justify-content: flex-start;
    align-items: center;
}

.device-icon {
    align-items: center;
    background: #eef6ff;
    border-radius: 16px;
    display: flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

@media (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .devices-card {
        grid-column: auto;
    }
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 280px;
        min-width: 280px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 5.2rem);
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    .app-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-date {
        white-space: normal;
    }
}

.page-header {
    background: rgba(255,255,255,.94);
    border: 1px solid #e2edf7;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(16, 42, 67, .07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
}

.page-header h1 {
    margin: 0;
}

.action-card {
    align-items: flex-start;
}

.action-card .btn {
    align-self: flex-start;
}

.day-note-card {
    width: 100%;
}

.day-note-card h2 {
    width: 100%;
}

.device-list-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: .35rem;
}

.subscription-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.plan-intro {
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.checkout-card {
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #fff;
}

.checkout-account {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid #cfe3f7;
    background: #eef6ff;
    color: #0c447c;
}

.checkout-account p {
    margin: 0;
}

.checkout-account a {
    font-weight: 600;
}

.checkout-invoice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
    padding: .9rem 1rem 1rem;
}

.checkout-invoice .full {
    grid-column: 1 / -1;
}

.checkout-invoice label {
    color: #536579;
    display: block;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.checkout-invoice .req::after {
    color: #b4232c;
    content: " *";
}

.checkout-invoice .hint {
    color: #536579;
    display: block;
    font-size: .76rem;
    margin-top: .3rem;
}

.checkout-invoice .hint b {
    color: #0f62a8;
    font-weight: 600;
}

.checkout-subhead {
    align-items: center;
    border-top: 1px solid #e4ebf2;
    color: #1d2f42;
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    font-weight: 700;
    gap: .4rem .75rem;
    padding-top: .75rem;
}

.checkout-subhead .required {
    background: #fff4e0;
    border: 1px solid #f3d9a8;
    border-radius: 999px;
    color: #8a4b00;
    font-size: .78rem;
    font-weight: 600;
    padding: .15rem .6rem;
}

@media (max-width: 575px) {
    .checkout-invoice {
        grid-template-columns: 1fr;
    }
}

.confirmation-backdrop {
    align-items: center;
    background: rgba(7, 23, 39, .58);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.confirmation-dialog {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(7, 23, 39, .28);
    max-width: 520px;
    padding: 1.5rem;
    width: min(100%, 520px);
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.settings-grid-compact {
    grid-template-columns: 320px minmax(0, 1fr);
}

.devices-card-wide {
    grid-column: 1 / -1;
}

@media (max-width: 860px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-grid-compact {
        grid-template-columns: 1fr;
    }
}

.case-download-page {
    align-items: center;
    background:
        radial-gradient(circle at 15% 14%, rgba(247, 201, 72, .22), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(16, 42, 67, .16), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 54%, #f9fbff 100%);
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    place-items: center;
    position: relative;
}

.case-download-page::before {
    background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.18));
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    content: "";
    height: 540px;
    position: absolute;
    right: min(-220px, -20vw);
    top: -250px;
    width: 540px;
}

.case-shell {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(226, 237, 247, .95);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(16, 42, 67, .16);
    display: grid;
    gap: 1.5rem;
    max-width: 840px;
    padding: clamp(1.35rem, 4vw, 2.4rem);
    position: relative;
    text-align: center;
    width: min(100%, 840px);
}

.case-hero-panel {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.case-app-icon-wrap {
    background: linear-gradient(145deg, #ffffff, #eaf3ff);
    border: 1px solid #dce9f7;
    border-radius: 32px;
    box-shadow: 0 20px 48px rgba(16, 42, 67, .14);
    display: grid;
    margin-bottom: 1.2rem;
    padding: .7rem;
    place-items: center;
}

.case-app-icon {
    border-radius: 24px;
    height: 118px;
    object-fit: contain;
    width: 118px;
}

.case-eyebrow {
    background: #edf6ff;
    border: 1px solid #d7e9fb;
    border-radius: 999px;
    color: #1f5f8b !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin: 0 0 .85rem !important;
    padding: .38rem .78rem;
    text-transform: uppercase;
}

.case-shell h1 {
    color: #102a43;
    font-size: clamp(2rem, 6vw, 3.1rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: 1;
    margin: 0 auto .95rem;
    max-width: 620px;
}

.case-lead {
    color: #526b84;
    font-size: clamp(1rem, 2.4vw, 1.16rem);
    line-height: 1.65;
    margin: 0 auto 1.25rem;
    max-width: 620px;
}

.case-download-panel {
    background: #f8fbff;
    border: 1px solid #e2edf7;
    border-radius: 26px;
    padding: 1.25rem;
}

.case-panel-title {
    color: #102a43;
    font-weight: 800;
    margin: 0 0 .95rem;
}

.download-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
}

.download-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #dce9f7;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(16, 42, 67, .08);
    display: inline-flex;
    justify-content: center;
    min-height: 64px;
    padding: .45rem .8rem;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.download-btn:hover,
.download-btn:focus-visible {
    border-color: #9fbfe0;
    box-shadow: 0 16px 32px rgba(16, 42, 67, .14);
    transform: translateY(-2px);
}

.download-buttons img {
    object-fit: contain;
    width: auto;
}

.app-store img { height: 42px; }
.google-play img { height: 54px; }
.microsoft-store img { height: 38px; }

.case-help-text {
    color: #6b7f94;
    font-size: .92rem;
    margin: .95rem 0 0;
}

.case-footer {
    color: #829ab1 !important;
    font-size: .9rem;
    margin: .1rem 0 0 !important;
}

@media (min-width: 760px) {
    .case-shell {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .case-shell { border-radius: 28px; }
    .case-download-panel { padding: 1rem; }
    .download-buttons { flex-direction: column; }
    .download-btn { width: 100%; }
}

/* ── Landing page (unauthenticated) ───────────────────────── */
.ca-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.ca-landing-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(247, 201, 72, .22), transparent 28%),
        linear-gradient(135deg, #0d1f33 0%, #102a43 55%, #0b3a6e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    text-align: center;
}

.ca-hero-inner {
    max-width: 740px;
}

.ca-hero-logo {
    height: 72px;
    width: auto;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    padding: .4rem;
    margin-bottom: 1.5rem;
}

.ca-landing-hero h1 {
    color: #fff;
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
    margin-bottom: .9rem;
}

.ca-hero-sub {
    color: rgba(255,255,255,.78);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ca-hero-stores {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.ca-hero-stores img {
    display: block;
    height: 44px;
    width: auto;
}

/* Google's PNG pads its 168px-high badge with 41px of transparency on every side. */
.ca-hero-stores .play img {
    height: calc(44px * 250 / 168);
    margin: calc(-44px * 41 / 168);
}

.ca-plans-section {
    background: #f4f7fb;
    flex: 1;
    padding: clamp(2rem, 4vw, 3rem) 1.5rem clamp(2.5rem, 6vw, 4.5rem);
}

.ca-plans-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 2.5rem;
}

.ca-plans-header h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.ca-plans-header p {
    color: #627d98;
    margin: 0;
}

.ca-pricing-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.ca-pricing-desktop {
    display: block;
}

.ca-pricing-mobile {
    display: none;
}

.ca-pricing-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(16, 42, 67, .08);
}

.ca-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,.96);
}

.ca-pricing-table th,
.ca-pricing-table td {
    padding: .7rem .5rem;
    border-bottom: 1px solid #e4edf6;
}

.ca-pricing-feature-head,
.ca-pricing-feature-label {
    text-align: left;
    min-width: 160px;
    color: #102a43;
    font-weight: 700;
    background: #f8fbff;
    position: sticky;
    left: 0;
    z-index: 1;
}

.ca-pricing-feature-head {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    color: #627d98;
    vertical-align: bottom;
}

.ca-pricing-family-head,
.ca-pricing-plan-head {
    text-align: center;
    background: #fffaf3;
    color: #102a43;
}

.ca-pricing-family-head {
    vertical-align: top;
}

.ca-pricing-plan-head {
    min-width: 96px;
    vertical-align: middle;
}

.ca-pricing-choose {
    text-align: center;
    background: #fffaf3;
}

.ca-pricing-family-start {
    border-left: 2px solid #e4edf6;
}

.ca-pricing-plan-name,
.ca-pricing-tagline,
.ca-pricing-price,
.ca-pricing-saving {
    display: block;
}

.ca-pricing-plan-name {
    font-size: 1.05rem;
    font-weight: 800;
}

.ca-pricing-tagline {
    margin-top: .2rem;
    color: #627d98;
    font-size: .8rem;
    font-weight: 600;
}

.ca-pricing-price {
    margin-top: .3rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ca-pricing-terms {
    display: block;
    color: #627d98;
    font-size: .75rem;
    font-weight: 600;
}

.ca-pricing-saving {
    margin-top: .2rem;
    color: #0f62a8;
    font-size: .75rem;
    font-weight: 700;
}

.ca-pricing-cell {
    text-align: center;
    color: #334e68;
    font-weight: 600;
}

.ca-pricing-no {
    color: #9fb3c8;
}

.ca-pricing-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #edf6ff;
    color: #0f62a8;
    font-size: .92rem;
    font-weight: 700;
}

.ca-pricing-collapsed {
    display: block;
    margin-top: .3rem;
    color: #829ab1;
    font-size: .85rem;
    font-weight: 700;
}

.ca-plan-choices {
    display: grid;
    justify-items: center;
    gap: .9rem;
    max-width: 720px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.ca-plan-choice-row {
    display: grid;
    justify-items: center;
    gap: .45rem;
}

.ca-plan-choice-label {
    color: #627d98;
    font-size: .85rem;
    font-weight: 700;
}

.ca-plan-choice-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .375rem;
}

.ca-plan-choice {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 8px;
    border: 1.5px solid #d9e2ec;
    border-radius: 12px;
    background: #fff;
    color: #102a43;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.ca-plan-choice:hover {
    border-color: #0f62a8;
}

.ca-plan-choice.selected {
    background: #0f62a8;
    border-color: #0f62a8;
    color: #fff;
}

.ca-plan-choice:disabled {
    opacity: .6;
    border-color: #d9e2ec;
}

.ca-plan-choice-hint {
    margin: 0;
    max-width: 640px;
    font-size: .9rem;
    color: #627d98;
}

.ca-plan-autopay {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #334e68;
    cursor: pointer;
}

.ca-plan-autopay .form-check-input {
    margin: 0;
}

.ca-plan-devices {
    width: 100%;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    font-size: .9rem;
}

.ca-plan-devices-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .55rem .9rem;
    border-bottom: 1px solid #f0d58c;
    background: #fff8e6;
    color: #7a5b0b;
    font-weight: 600;
}

.ca-plan-devices-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 .9rem;
    padding: .6rem 0;
}

.ca-plan-devices [aria-hidden="true"] {
    flex: none;
    font-size: 1.15rem;
}

.ca-plan-fit {
    margin: 0;
    padding: .55rem .9rem;
    border: 1px solid #cfe3f7;
    border-radius: 10px;
    background: #eef6ff;
    color: #0c447c;
    font-size: .9rem;
    font-weight: 600;
}

.ca-plan-devices-row p {
    margin: 0;
    color: #486581;
}

.plan-collapsed {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .75rem 1.25rem;
    border: 1.5px dashed #d9e2ec;
    border-radius: 24px;
    background: rgba(255,255,255,.94);
}

.plan-collapsed strong {
    color: #102a43;
}

.plan-collapsed span {
    color: #829ab1;
    font-size: .9rem;
    text-align: right;
}


.ca-plan-mobile-card {
    background: rgba(255,255,255,.96);
    border: 1px solid #d9e2ec;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(16, 42, 67, .08);
    padding: 1.2rem;
}

.ca-plan-mobile-card + .ca-plan-mobile-card {
    margin-top: 1rem;
}

.ca-plan-mobile-header {
    margin-bottom: 1rem;
}

.ca-plan-mobile-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #102a43;
}

.ca-plan-mobile-header p {
    margin: .25rem 0 0;
    color: #627d98;
    font-size: .85rem;
}

.ca-plan-mobile-features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.ca-plan-mobile-features li {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #334e68;
    font-size: .92rem;
}

.ca-plan-mobile-detail {
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-top: .7rem;
    border-top: 1px solid #e4edf6;
}

.ca-plan-mobile-detail strong {
    color: #102a43;
    font-weight: 700;
    text-align: right;
}

.ca-landing-footer {
    background: #f4f7fb;
    border-top: 1px solid #e4edf6;
    color: #829ab1;
    display: flex;
    gap: .75rem;
    justify-content: center;
    align-items: center;
    font-size: .88rem;
    padding: 1.25rem;
}

.ca-landing-footer a {
    color: #627d98;
    text-decoration: none;
    font-weight: 600;
}

.ca-landing-footer a:hover {
    color: #0f62a8;
}

@media (max-width: 640px) {
    .ca-pricing-desktop {
        display: none;
    }

    .ca-pricing-mobile {
        display: block;
    }

    .ca-plans-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Subscription page: one column of cards. */
.subscription-page .content-card {
    margin-bottom: 1rem;
}

.your-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem 1rem;
}

.your-plan-head h2 {
    margin: 0;
}

.your-plan-status {
    color: #334e68;
    font-size: .95rem;
    font-weight: 600;
}

.your-plan-line {
    margin: .4rem 0 0;
    color: #486581;
    font-size: .95rem;
}

.ca-plan-choices.compact {
    max-width: none;
    justify-items: stretch;
    margin: .25rem 0 1rem;
    text-align: left;
}

.ca-plan-choice-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.ca-plan-choice-block {
    display: grid;
    align-content: start;
    gap: .5rem;
}

.ca-plan-choices.compact .ca-plan-choice-row {
    justify-items: start;
}

.ca-plan-choices.compact .ca-plan-choice-options {
    justify-content: flex-start;
}

.ca-plan-choices.compact .ca-plan-choice-label {
    color: #334e68;
    font-size: .9rem;
}

.ca-plan-choices.compact .ca-plan-choice {
    padding: 8px 12px;
    font-size: 14px;
}

.ca-plan-choices.compact .ca-plan-choice-hint {
    color: #486581;
}

.ca-plan-more {
    font-size: inherit;
}

.subscription-page .plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.subscription-page .plan-card {
    gap: .75rem;
}

.subscription-page .plan-card .ca-pricing-terms {
    font-size: .85rem;
}

.plan-card-name {
    margin: 0;
    color: #102a43;
    font-size: 1.15rem;
    font-weight: 800;
}

.plan-card-tagline {
    margin: .25rem 0 0;
    color: #486581;
    font-size: .875rem;
}

.plan-card-summary {
    margin: 0;
    color: #334e68;
    font-size: .95rem;
    font-weight: 600;
}

.plan-booked-note {
    margin: 0 0 1rem;
    padding: .55rem .9rem;
    border: 1px solid #f0d58c;
    border-radius: 10px;
    background: #fff8e6;
    color: #7a5b0b;
    font-size: .9rem;
}

.checkout-dialog {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.checkout-dialog h2 {
    font-size: 1.3rem;
}

.checkout-for,
.checkout-line {
    margin: .75rem 0 0;
    color: #334e68;
    font-size: .95rem;
}

.checkout-warning {
    margin: .75rem 0 0;
    padding: .5rem .75rem;
    border: 1px solid #f0d58c;
    border-radius: 10px;
    background: #fff8e6;
    color: #7a5b0b;
    font-size: .9rem;
}

.checkout-price {
    margin: .75rem 0 0;
    color: #102a43;
    font-size: 1.05rem;
}

.checkout-dialog .checkout-invoice {
    margin-top: .75rem;
    padding: 0;
}

.checkout-dialog .checkout-invoice label {
    font-size: .875rem;
}

.checkout-dialog .checkout-invoice .hint {
    font-size: .85rem;
}

.ca-pricing-shell.embedded {
    margin-top: 1rem;
}

.ca-pricing-shell.embedded .ca-pricing-table-wrap {
    border: 1px solid #e4edf6;
    border-radius: 16px;
    box-shadow: none;
}

@media (max-width: 640px) {
    .ca-plan-choice-pair {
        grid-template-columns: 1fr;
    }

    .subscription-page .content-card {
        padding: 1rem;
    }

    .subscription-page .plan-card {
        padding: 1.1rem;
    }

    /* Three plans side by side on a phone: the table takes the card's side padding, four equal columns, smaller type. */
    .ca-pricing-shell.embedded {
        margin-inline: -1rem;
    }

    .ca-pricing-shell.embedded .ca-pricing-desktop {
        display: block;
    }

    .ca-pricing-shell.embedded .ca-pricing-table-wrap {
        border-inline: 0;
        border-radius: 0;
    }

    .ca-pricing-shell.embedded .ca-pricing-table {
        table-layout: fixed;
        width: 100%;
    }

    .ca-pricing-shell.embedded .ca-pricing-table th,
    .ca-pricing-shell.embedded .ca-pricing-table td {
        padding: .45rem .2rem;
        font-size: .8rem;
    }

    .ca-pricing-shell.embedded .ca-pricing-feature-head,
    .ca-pricing-shell.embedded .ca-pricing-feature-label {
        min-width: 0;
        width: 25%;
        padding-left: .5rem;
    }

    .ca-pricing-shell.embedded .ca-pricing-feature-head {
        font-size: .7rem;
    }

    .ca-pricing-shell.embedded .ca-pricing-plan-head {
        min-width: 0;
    }

    .ca-pricing-shell.embedded .ca-pricing-plan-name {
        font-size: .7rem;
        hyphens: auto;
        overflow-wrap: anywhere;
    }

    .ca-pricing-shell.embedded .ca-pricing-tagline {
        display: none;
    }

    .ca-pricing-shell.embedded .ca-pricing-price {
        font-size: .95rem;
    }

    .ca-pricing-shell.embedded .ca-pricing-terms {
        font-size: .7rem;
    }

    .ca-pricing-shell.embedded .ca-pricing-check {
        width: 1.3rem;
        height: 1.3rem;
        font-size: .8rem;
    }
}
