/* Nous City paywall (city/city-pay.js): the pitch, the trial pill, the frozen city, admin, thanks. */
.cpay-gate { font-family: Satoshi, system-ui, sans-serif; color: #1f2937; }
.cpay-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; min-height: 30px; }

/* buttons */
.cpay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px;
    padding: 12px 22px; font: 600 15px/1.1 Satoshi, system-ui, sans-serif; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s; }
.cpay-btn:active { transform: scale(.97); }
.cpay-btn--go, .cpay-btn--buy { background: linear-gradient(180deg, #34d399, #10b981); color: #fff; box-shadow: 0 6px 18px rgba(16, 185, 129, .32); }
.cpay-btn--go:hover, .cpay-btn--buy:hover { box-shadow: 0 8px 22px rgba(16, 185, 129, .42); }
.cpay-btn--buy { background: linear-gradient(180deg, #fbbf24, #f59e0b); box-shadow: 0 6px 18px rgba(245, 158, 11, .32); }
.cpay-btn--soon { background: #e5e7eb; color: #6b7280; cursor: default; box-shadow: none; }
.cpay-btn[disabled] { opacity: .75; cursor: default; }
.cpay-btn--small { padding: 7px 14px; font-size: 13px; background: #fff; color: #111827; }

/* shared text */
.cpay-kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #059669; font-weight: 700; }
.cpay-title { margin: 0 0 10px; font-size: 26px; line-height: 1.15; font-weight: 700; color: #111827; }
.cpay-text { margin: 0 0 16px; color: #4b5563; font-size: 15px; line-height: 1.45; }
.cpay-note { margin: 12px 0 0; font-size: 12.5px; color: #9ca3af; }
.cpay-err { margin: 10px 0 0; font-size: 13px; color: #dc2626; }
.cpay-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(255, 255, 255, .85); color: #374151; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cpay-tag--ice { background: rgba(224, 242, 254, .9); color: #0369a1; }
.cpay-loading { padding: 80px 0; text-align: center; color: #9ca3af; }

/* 3D stages */
.cpay-stage { position: absolute; inset: 0; }
.cpay-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.cpay-stage__fail { position: absolute; inset: auto 0 45% 0; text-align: center; color: #6b7280; font-size: 14px; }

/* preview: the pitch */
.cpay-pitch { display: grid; grid-template-columns: 1fr; border-radius: 24px; overflow: hidden; background: #fff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .08); }
.cpay-pitch__art { position: relative; height: 340px; background: linear-gradient(#cfe8ff, #f4f9ff); }
.cpay-pitch__body { padding: 22px 22px 24px; }
.cpay-lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.cpay-lines li { position: relative; padding-left: 26px; font-size: 15px; color: #374151; line-height: 1.35; }
.cpay-lines li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #6ee7b7, #10b981); box-shadow: 0 0 0 3px #d1fae5; }
.cpay-pitch .cpay-btn--go { width: 100%; padding: 15px 22px; font-size: 16px; }
@media (min-width: 900px) {
    .cpay-pitch { grid-template-columns: 1.4fr 1fr; }
    .cpay-pitch__art { height: 520px; }
    .cpay-pitch__body { align-self: center; padding: 34px; }
}

/* trial: the pill */
.cpay-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 13px; border-radius: 999px; font-size: 13px;
    background: #ecfdf5; color: #047857; font-weight: 600; box-shadow: inset 0 0 0 1px #a7f3d0; }
.cpay-pill > span:first-child:last-child { padding-right: 7px; }
.cpay-pill__buy { border: 0; cursor: pointer; font: inherit; padding: 4px 11px; border-radius: 999px; background: #f59e0b; color: #fff; text-decoration: none; font-weight: 700; }
.cpay-pill__buy:hover { background: #d97706; }
.cpay-pill__soon { padding: 4px 10px; border-radius: 999px; background: #fff; color: #6b7280; font-weight: 600; }

/* expired: the frozen city */
.cpay-frozen { position: relative; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(15, 23, 42, .08); }
.cpay-frozen__art { position: relative; height: 420px; background: linear-gradient(#e0f2fe, #f8fafc); }
.cpay-stage--frozen { filter: saturate(.55) brightness(1.04); }
.cpay-frozen__art::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(224, 242, 254, .25), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .5)); }
.cpay-card { padding: 22px; }
.cpay-frozen__card .cpay-kicker { color: #0284c7; }
.cpay-frozen__card .cpay-btn { width: 100%; }
.cpay-ctrls { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.cpay-round { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #111827;
    font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
@media (min-width: 900px) {
    .cpay-frozen__art { height: 560px; }
    .cpay-frozen__card { position: absolute; left: 20px; bottom: 20px; z-index: 3; max-width: 380px; border-radius: 20px;
        background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(15, 23, 42, .14); }
}

/* admin */
.cpay-admin { position: relative; margin-left: auto; }
.cpay-admin__btn { border: 0; border-radius: 999px; padding: 6px 12px; font: 600 12px Satoshi, system-ui, sans-serif;
    background: #1f2937; color: #f9fafb; cursor: pointer; }
.cpay-admin__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; padding: 8px; border-radius: 14px;
    background: #fff; box-shadow: 0 12px 34px rgba(15, 23, 42, .18); }
.cpay-admin__head { margin: 4px 8px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; font-weight: 700; }
.cpay-admin__item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 9px;
    font: 500 14px Satoshi, system-ui, sans-serif; color: #1f2937; cursor: pointer; }
.cpay-admin__item:hover { background: #f3f4f6; }
.cpay-admin__item.is-on { background: #ecfdf5; color: #047857; font-weight: 700; }
.cpay-admin__sep { height: 1px; margin: 6px 4px; background: #f1f5f9; }
.cpay-sandbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #0f172a; }
.cpay-sandbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; color: #e2e8f0; font: 600 13px Satoshi, system-ui, sans-serif; }
.cpay-sandbox__frame { flex: 1; width: 100%; border: 0; background: #f4f6f9; }

/* paid: "manage subscription" */
.cpay-manage { font-size: 13px; font-weight: 600; color: #6b7280; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.cpay-manage:hover { color: #111827; }
.cpay-buywrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cpay-buywrap .cpay-err, .cpay-buywrap .cpay-note { margin: 0; }
.cpay-restore { display: block; margin: 12px 0 0; padding: 4px 2px; border: 0; background: none; font: 600 13px/1.2 Satoshi, system-ui, sans-serif;
    color: #6b7280; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cpay-restore:hover { color: #111827; }
.cpay-restore[disabled] { opacity: .7; cursor: default; }

/* settings */
.cpay-setting__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cpay-setting__sub { margin: 4px 0 0; font-size: 14px; color: #6b7280; }
.cpay-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #f3f4f6; flex-shrink: 0; }
.cpay-seg__btn { border: 0; background: none; padding: 7px 15px; border-radius: 999px; font: 600 14px Satoshi, system-ui, sans-serif; color: #6b7280; cursor: pointer; }
.cpay-seg__btn.is-on { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }

/* thanks */
.cpay-thanks { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); transform: translateX(-50%); z-index: 900;
    display: flex; flex-direction: column; gap: 2px; min-width: 260px; max-width: calc(100vw - 32px); padding: 13px 40px 13px 18px; border-radius: 16px;
    background: #111827; color: #f9fafb; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); font: 14px/1.35 Satoshi, system-ui, sans-serif;
    animation: cpay-up .35s ease-out; }
.cpay-thanks strong { font-size: 15px; }
.cpay-thanks span { color: #cbd5e1; }
.cpay-thanks.is-done { background: linear-gradient(135deg, #059669, #10b981); }
.cpay-thanks.is-done span { color: #ecfdf5; }
.cpay-thanks__x { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12);
    color: inherit; font-size: 16px; cursor: pointer; }
@keyframes cpay-up { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .cpay-thanks { animation: none; } }

/* night mode */
body.night-mode .cpay-gate { color: #e5e7eb; }
body.night-mode .cpay-pitch, body.night-mode .cpay-frozen { background: #111827; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
body.night-mode .cpay-title { color: #f9fafb; }
body.night-mode .cpay-text, body.night-mode .cpay-lines li { color: #cbd5e1; }
body.night-mode .cpay-lines li::before { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
body.night-mode .cpay-pill { background: rgba(16, 185, 129, .14); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .35); }
body.night-mode .cpay-pill__soon { background: #1f2937; color: #9ca3af; }
body.night-mode .cpay-manage { color: #9ca3af; }
body.night-mode .cpay-manage:hover { color: #f9fafb; }
body.night-mode .cpay-restore { color: #9ca3af; }
body.night-mode .cpay-restore:hover { color: #f9fafb; }
body.night-mode .cpay-btn--soon { background: #374151; color: #9ca3af; }
body.night-mode .cpay-admin__menu { background: #1f2937; }
body.night-mode .cpay-admin__item { color: #e5e7eb; }
body.night-mode .cpay-admin__item:hover { background: #374151; }
body.night-mode .cpay-seg { background: #1f2937; }
body.night-mode .cpay-seg__btn.is-on { background: #374151; color: #f9fafb; }
@media (min-width: 900px) { body.night-mode .cpay-frozen__card { background: rgba(17, 24, 39, .94); } }
