:root {
    --ub-bg: #07130d;
    --ub-bg-soft: #102016;
    --ub-panel: rgba(12, 24, 16, 0.74);
    --ub-panel-strong: rgba(19, 34, 23, 0.9);
    --ub-line: rgba(227, 188, 99, 0.2);
    --ub-text: #f7f1dc;
    --ub-muted: #c7bb98;
    --ub-accent: #e3bc63;
    --ub-accent-strong: #7b2f25;
    --ub-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ub-theme {
    margin: 0;
    color: var(--ub-text);
    font-family: Georgia, serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(227, 188, 99, 0.16), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(123, 47, 37, 0.2), transparent 24%),
        radial-gradient(circle at 70% 72%, rgba(60, 122, 73, 0.18), transparent 30%),
        linear-gradient(140deg, #051009 0%, #0b1a10 45%, #07130d 100%);
    min-height: 100vh;
}

body.ub-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent 85%);
}

.ub-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 4rem;
    position: relative;
}

.ub-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 19, 13, 0.7);
    border-bottom: 1px solid rgba(227, 188, 99, 0.12);
}

.ub-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: .9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ub-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: var(--ub-text);
}

.ub-brand__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(227, 188, 99, .12));
}

.ub-brand__copy strong {
    display: block;
    letter-spacing: .16em;
    font-size: .9rem;
    text-transform: uppercase;
}

.ub-brand__copy span {
    display: block;
    color: var(--ub-muted);
    margin-top: .15rem;
}

.ub-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

.ub-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.ub-card {
    background: var(--ub-panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--ub-line);
    border-radius: 28px;
    box-shadow: var(--ub-shadow);
}

.ub-card--light {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2a30;
    border: 1px solid rgba(31, 42, 48, .1);
    box-shadow: 0 12px 30px rgba(31, 42, 48, .08);
}

.ub-card__body {
    padding: 1.5rem;
}

.ub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor: pointer;
}

.ub-button:hover {
    transform: translateY(-1px);
}

.ub-button--primary {
    color: #1d1404;
    background: linear-gradient(135deg, #f3db9a, #ddb154 54%, #b36b36 120%);
    box-shadow: 0 12px 30px rgba(227, 188, 99, 0.26);
}

.ub-button--secondary,
.ub-button--ghost {
    color: var(--ub-text);
    background: rgba(255, 255, 255, .04);
    border-color: rgba(227, 188, 99, 0.2);
}

.ub-button--icon {
    width: 46px;
    min-width: 46px;
    padding: 0;
    border-radius: 50%;
}

.ub-button--icon .ub-icon {
    display: block;
    flex-shrink: 0;
}

.ub-settings-section {
    margin: 1.25rem 0 0;
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid rgba(227, 188, 99, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.ub-card--light .ub-settings-section {
    border-color: rgba(31, 42, 48, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

.ub-settings-section > legend {
    padding: 0 0.35rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ub-accent);
}

.ub-card--light .ub-settings-section > legend {
    color: #1b6b73;
}

.ub-section-title--compact {
    margin: 0.85rem 0 0.35rem;
    font-size: 1.15rem;
}

.ub-card--light .ub-button--icon.ub-button--ghost {
    color: #1f2a30;
    border-color: rgba(31, 42, 48, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.ub-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(227, 188, 99, 0.08);
    border: 1px solid rgba(227, 188, 99, 0.18);
    color: #f0d69b;
    font-size: .84rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ub-muted {
    color: var(--ub-muted);
}

.ub-notice {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.ub-notice--info {
    background: rgba(238, 246, 247, 0.12);
    color: #e6f4f5;
    border: 1px solid rgba(182, 226, 231, 0.18);
}

.ub-notice--warn {
    background: rgba(255, 186, 92, 0.18);
    color: #ffe4b8;
    border: 2px solid rgba(255, 186, 92, 0.55);
    font-weight: 650;
}

.ub-notice--error {
    background: rgba(253, 232, 232, 0.14);
    color: #ffd7d7;
    border: 1px solid rgba(255, 173, 173, 0.18);
}

.ub-offer {
    margin-top: 1.25rem;
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(227, 188, 99, 0.12), rgba(123, 47, 37, 0.08));
    border: 1px solid rgba(227, 188, 99, 0.18);
}

.ub-offer h3 {
    margin: .4rem 0 .65rem;
}

.ub-offer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .85rem;
    margin-top: .85rem;
}

.ub-offer__action {
    margin-top: 1rem;
}

.ub-offer__metric {
    padding: .85rem .9rem;
    border-radius: 18px;
    background: rgba(9, 18, 12, 0.34);
    border: 1px solid rgba(227, 188, 99, 0.12);
}

.ub-offer__metric strong {
    display: block;
    font-size: 1.35rem;
    color: #f5df9d;
}

.ub-section-title {
    margin-top: 0;
}

.ub-form-row {
    margin-top: 1rem;
}

.ub-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.ub-input,
.ub-select,
.ub-textarea {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: inherit;
    border: 1px solid rgba(31, 42, 48, .2);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2a30;
}

.ub-textarea {
    min-height: 260px;
}

.ub-check {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.ub-check input {
    width: auto;
    margin-top: .2rem;
}

.ub-grid-two {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1rem;
}

.ub-link {
    color: var(--ub-accent);
    text-decoration: none;
}

.ub-link:hover,
.ub-link:focus-visible {
    color: #f0d69b;
    text-decoration: underline;
}

/* Default anchors on the dark theme stay golden (avoid browser blue on green). */
body.ub-theme a:not(.ub-button):not(.ub-brand) {
    color: var(--ub-accent);
}

body.ub-theme a:not(.ub-button):not(.ub-brand):hover,
body.ub-theme a:not(.ub-button):not(.ub-brand):focus-visible {
    color: #f0d69b;
}

.ub-card--light .ub-muted {
    color: #52626b;
}

.ub-card--light .ub-link,
body.ub-theme .ub-card--light a:not(.ub-button) {
    color: #1b6b73;
}

.ub-card--light .ub-button--secondary,
.ub-card--light .ub-button--ghost {
    color: #1f2a30;
    background: #fff;
    border-color: rgba(31, 42, 48, .18);
}

.ub-card--light .ub-notice--info {
    background: #eef6f7;
    color: #21434c;
    border: 1px solid rgba(33, 67, 76, .12);
}

.ub-card--light .ub-notice--warn {
    background: #fff1d6;
    color: #6a3b00;
    border: 2px solid rgba(176, 96, 16, 0.45);
    font-weight: 650;
}

.ub-card--light .ub-notice--error {
    background: #fde8e8;
    color: #8a1f1f;
    border: 1px solid rgba(138, 31, 31, .12);
}

.ub-card--light .ub-offer {
    background: linear-gradient(135deg, rgba(27, 107, 115, 0.08), rgba(227, 188, 99, 0.18));
    border: 1px solid rgba(31, 42, 48, .08);
}

.ub-card--light .ub-offer__metric {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 42, 48, .08);
}

.ub-card--light .ub-offer__metric strong {
    color: #1b6b73;
}

.ub-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border: 1px solid var(--ub-line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(9, 18, 12, 0.24);
}

.ub-table th,
.ub-table td {
    text-align: left;
    padding: .75rem .85rem;
    border-bottom: 1px solid rgba(227, 188, 99, 0.12);
    vertical-align: top;
}

.ub-table thead th {
    background: rgba(12, 24, 16, 0.64);
    color: #f5df9d;
    font-weight: 700;
}

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

.ub-table--compact th,
.ub-table--compact td {
    padding: .6rem .75rem;
}

.ub-table--features {
    table-layout: fixed;
}

.ub-table--features col.col-feature  { width: 46%; }
.ub-table--features col.col-check    { width: 10%; }
.ub-table--features col.col-gate     { width: 34%; }

.ub-table--features th.ub-col-check,
.ub-table--features td.ub-col-check {
    text-align: center;
    font-size: 1.05rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.ub-check-yes {
    color: #7de4a0;
    font-weight: 700;
}

.ub-check-no {
    color: rgba(199, 187, 152, 0.40);
    font-weight: 700;
}

.ub-check-teaser {
    color: #f0c674;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ub-table--features td.ub-col-gate {
    color: var(--ub-muted);
    font-size: .9rem;
}

.ub-table--features tbody tr:hover {
    background: rgba(227, 188, 99, 0.04);
}

.ub-table-footnotes {
    margin-top: .85rem;
    padding: .75rem .95rem;
    border-left: 2px solid rgba(227, 188, 99, 0.22);
    color: var(--ub-muted);
    font-size: .88rem;
}

.ub-table-footnotes p {
    margin: .3rem 0;
    line-height: 1.55;
}

.ub-table-footnotes sup {
    color: #f5df9d;
    font-weight: 700;
    margin-right: .2rem;
}

.ub-tab-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.ub-tab--active {
    border-color: rgba(227, 188, 99, 0.5);
    background: rgba(227, 188, 99, 0.12);
    cursor: default;
    pointer-events: none;
}

.ub-pricing-mvp-note {
    text-align: center;
    color: var(--ub-muted);
    font-size: .82rem;
    margin-top: 2rem;
    opacity: 0.7;
}

.ub-footer {
    margin-top: 2.5rem;
    padding: 1.25rem 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ub-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
    text-align: center;
}

.ub-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    justify-content: center;
    align-items: center;
}

.ub-footer__sep {
    color: var(--ub-muted);
    opacity: 0.7;
}

.ub-footer__meta {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Plan runway (paid period remaining time) */
.ub-plan-runway-wrap {
    margin-top: 0.85rem;
}

.ub-plan-runway {
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(46, 160, 120, 0.28);
    background: linear-gradient(160deg, rgba(12, 42, 32, 0.55), rgba(18, 28, 22, 0.35));
}

.ub-card--light .ub-plan-runway,
.ub-notice .ub-plan-runway {
    border-color: rgba(27, 107, 115, 0.22);
    background: linear-gradient(160deg, #f3fbf8, #eef6f7 70%, #fff8f2);
}

.ub-plan-runway__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.55rem;
}

.ub-plan-runway__title {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8fd6b8;
    font-weight: 650;
}

.ub-card--light .ub-plan-runway__title,
.ub-notice .ub-plan-runway__title {
    color: #1b6b73;
}

.ub-plan-runway__meta {
    font-size: 0.88rem;
    color: var(--ub-muted);
}

.ub-card--light .ub-plan-runway__meta,
.ub-notice .ub-plan-runway__meta {
    color: #52626b;
}

.ub-plan-runway__meta strong {
    color: #e8f7ef;
    font-weight: 700;
}

.ub-card--light .ub-plan-runway__meta strong,
.ub-notice .ub-plan-runway__meta strong {
    color: #0f3d36;
}

.ub-plan-runway__track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: visible;
    background: linear-gradient(
        90deg,
        #2f9e6f 0%,
        #4fb37a 55%,
        #d4a017 82%,
        #c45c4a 100%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ub-plan-runway__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: rgba(7, 19, 13, 0.28);
    pointer-events: none;
}

.ub-card--light .ub-plan-runway__fill,
.ub-notice .ub-plan-runway__fill {
    background: rgba(255, 255, 255, 0.45);
}

.ub-plan-runway__marker {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #b8f0cf, #2f9e6f 62%, #1d6b4c);
    border: 2px solid #e8f7ef;
    box-shadow: 0 0 0 2px rgba(47, 158, 111, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ub-plan-runway--warn .ub-plan-runway__marker {
    background: radial-gradient(circle at 35% 30%, #ffe7a0, #d4a017 65%, #9a6d08);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.ub-plan-runway--critical .ub-plan-runway__marker,
.ub-plan-runway--ended .ub-plan-runway__marker {
    background: radial-gradient(circle at 35% 30%, #ffd0c8, #c45c4a 65%, #8a3228);
    box-shadow: 0 0 0 2px rgba(196, 92, 74, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    .ub-header__inner {
        align-items: flex-start;
    }

    .ub-brand__logo {
        width: 50px;
        height: 50px;
    }

    .ub-grid-two {
        grid-template-columns: 1fr;
    }
}