Files
remnawave-minishop/bot/app/web/templates/subscription_webapp.css
T

1175 lines
19 KiB
CSS

:root {
color-scheme: dark;
--accent: #00fe7a;
--bg: #03070b;
--panel: #111820;
--panel-2: #0b1118;
--panel-3: #17212b;
--border: rgba(255, 255, 255, 0.12);
--border-strong: rgba(255, 255, 255, 0.2);
--text: #f2f7f4;
--muted: #a9b4b0;
--dim: #68736f;
--danger: #ff6b6b;
--blue: #2d9cff;
--radius: 8px;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
html,
body,
#app {
min-height: 100%;
margin: 0;
}
body {
background: #02070b;
color: var(--text);
-webkit-font-smoothing: antialiased;
letter-spacing: 0;
}
button,
input {
font: inherit;
letter-spacing: 0;
}
button {
cursor: pointer;
}
button:disabled {
cursor: progress;
opacity: 0.58;
}
a {
color: inherit;
}
.app-shell {
min-height: 100dvh;
background: linear-gradient(180deg, #06100c 0%, #03070b 26%, #02060a 100%);
}
.phone-screen {
position: relative;
width: min(100vw, 440px);
min-height: 100dvh;
margin: 0 auto;
overflow-x: hidden;
padding: max(16px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}
.content {
display: grid;
gap: 10px;
}
.content.with-nav {
padding-bottom: 86px;
}
.loader {
display: grid;
min-height: 100dvh;
place-items: center;
align-content: center;
gap: 14px;
color: var(--muted);
font-weight: 800;
}
.app-header,
.preview-header,
.screen-head {
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 12px;
min-height: 48px;
}
.screen-head {
grid-template-columns: 42px minmax(0, 1fr) 42px;
margin-bottom: 6px;
}
.center-title {
align-items: start;
}
.center-copy {
min-width: 0;
text-align: center;
}
.screen-head h1,
.center-copy h1 {
margin: 0;
color: var(--text);
font-size: 18px;
line-height: 1.16;
font-weight: 850;
}
.screen-head p,
.center-copy p {
margin: 3px 0 0;
color: var(--muted);
font-size: 12px;
line-height: 1.3;
}
.screen-head strong {
color: var(--accent);
}
.brand-row {
display: flex;
min-width: 0;
align-items: center;
gap: 10px;
}
.brand-row strong {
min-width: 0;
overflow: hidden;
color: var(--text);
font-size: 15px;
font-weight: 850;
text-overflow: ellipsis;
white-space: nowrap;
}
.accent-title .brand-row strong {
color: var(--accent);
}
.brand-mark {
display: grid;
width: 38px;
height: 38px;
flex: 0 0 auto;
place-items: center;
color: var(--accent);
font-size: 26px;
line-height: 1;
}
.brand-mark img {
width: 100%;
height: 100%;
object-fit: contain;
}
.brand-mark-lg {
width: 66px;
height: 66px;
font-size: 46px;
}
.brand-mark-xl {
width: 96px;
height: 96px;
font-size: 70px;
}
.card {
position: relative;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
var(--panel);
box-shadow:
0 18px 48px rgba(0, 0, 0, 0.22),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
padding: 14px;
}
.card-active {
border-color: color-mix(in srgb, var(--accent) 76%, var(--border));
box-shadow:
0 18px 48px rgba(0, 0, 0, 0.22),
0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card-compact {
padding: 11px;
}
.status-card {
padding: 16px;
}
.sub-status {
display: flex;
align-items: center;
gap: 12px;
color: var(--accent);
}
.sub-status h2 {
margin: 0;
font-size: 15px;
line-height: 1.16;
}
.sub-status p {
margin: 5px 0 0;
color: var(--text);
font-size: 12px;
opacity: 0.82;
}
.traffic-top,
.total-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.traffic-top span,
.card-label,
.total-card span,
.settings-row small,
.select-card small,
.method-card small {
color: var(--muted);
font-size: 12px;
}
.traffic-top strong {
font-size: 12px;
font-weight: 850;
}
.progress {
position: relative;
height: 8px;
margin-top: 12px;
overflow: hidden;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
}
.progress span {
position: absolute;
inset: 0 auto 0 0;
width: 0;
border-radius: inherit;
background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 72%, white));
box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent);
}
.traffic-percent {
margin-top: 6px;
text-align: right;
color: var(--muted);
font-size: 11px;
}
.action-stack {
display: grid;
gap: 8px;
}
.btn {
display: inline-flex;
min-height: 44px;
min-width: 0;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px solid transparent;
border-radius: var(--radius);
padding: 10px 14px;
text-align: center;
text-decoration: none;
font-size: 14px;
font-weight: 850;
line-height: 1.1;
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover {
transform: translateY(-1px);
}
.btn-primary {
border-color: color-mix(in srgb, var(--accent) 72%, transparent);
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 94%, white), var(--accent));
color: #031009;
box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 20%, transparent);
}
.btn-secondary,
.btn-outline {
border-color: var(--border-strong);
background: rgba(255, 255, 255, 0.045);
color: var(--text);
}
.btn-outline {
border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
color: var(--accent);
}
.btn-ghost {
background: transparent;
color: var(--muted);
}
.btn-telegram {
border-color: #2d9cff;
background: linear-gradient(180deg, #2f9ff4, #1786df);
color: white;
}
.btn-icon {
border-color: var(--border);
background: rgba(255, 255, 255, 0.04);
color: var(--text);
}
.btn-square {
width: 42px;
min-width: 42px;
height: 42px;
padding: 0;
}
.btn-sm {
min-height: 36px;
padding: 8px 10px;
font-size: 12px;
}
.wide {
width: 100%;
}
.input {
width: 100%;
min-height: 44px;
min-width: 0;
border: 1px solid var(--border);
border-radius: var(--radius);
background: rgba(4, 8, 11, 0.48);
color: var(--text);
outline: none;
padding: 11px 12px;
font-size: 13px;
font-weight: 700;
}
.input:focus {
border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.input.muted {
display: flex;
align-items: center;
color: var(--dim);
}
.bottom-action {
margin-top: 4px;
}
.period-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.period-card,
.method-card,
.select-card,
.settings-row {
border: 1px solid var(--border);
border-radius: var(--radius);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
color: var(--text);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.period-card {
position: relative;
display: grid;
min-height: 82px;
place-items: center;
gap: 4px;
padding: 10px 8px;
}
.period-card strong {
font-size: 12px;
white-space: nowrap;
}
.period-card span {
font-size: 16px;
font-weight: 850;
}
.period-card small {
color: var(--muted);
font-size: 10px;
}
.period-card svg {
position: absolute;
top: 8px;
right: 8px;
color: var(--accent);
}
.period-card.active,
.method-card.active,
.select-card.active {
border-color: var(--accent);
background: color-mix(in srgb, var(--accent) 9%, rgba(255, 255, 255, 0.035));
box-shadow:
0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.total-card {
padding: 12px 14px;
}
.total-card strong {
font-size: 22px;
font-weight: 900;
}
.method-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 7px;
}
.method-card {
display: flex;
min-height: 48px;
align-items: center;
gap: 8px;
padding: 8px;
text-align: left;
}
.method-card svg {
flex: 0 0 auto;
}
.method-card span {
display: grid;
min-width: 0;
gap: 2px;
}
.method-card strong,
.method-card small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.method-card strong {
font-size: 10px;
}
.method-card small {
font-size: 8px;
}
.tariff-list,
.settings-list {
display: grid;
gap: 8px;
}
.select-card {
display: grid;
grid-template-columns: 52px minmax(0, 1fr) 24px;
align-items: center;
gap: 12px;
padding: 12px;
text-align: left;
}
.tariff-list.compact .select-card {
grid-template-columns: minmax(0, 1fr) auto 24px;
}
.select-icon {
display: grid;
width: 42px;
height: 42px;
place-items: center;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--accent);
}
.select-card span:not(.select-icon) {
display: grid;
gap: 3px;
min-width: 0;
}
.select-card strong {
font-size: 14px;
}
.select-card em {
color: var(--muted);
font-size: 11px;
font-style: normal;
}
.copy-row,
.email-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
}
.copy-row code {
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius);
background: rgba(0, 0, 0, 0.2);
color: var(--text);
padding: 12px;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.bonus-card {
display: flex;
align-items: center;
gap: 14px;
}
.bonus-card > svg {
flex: 0 0 auto;
color: var(--accent);
}
.bonus-card span {
color: var(--muted);
font-size: 12px;
}
.bonus-card strong {
display: block;
color: var(--accent);
font-size: 17px;
}
.bonus-card p {
margin: 5px 0 0;
color: var(--muted);
font-size: 12px;
}
.settings-profile {
display: flex;
align-items: center;
gap: 12px;
}
.settings-avatar {
display: grid;
width: 58px;
height: 58px;
flex: 0 0 auto;
place-items: center;
overflow: hidden;
border: 1px solid var(--border);
border-radius: 999px;
background: rgba(255, 255, 255, 0.03);
}
.settings-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.settings-avatar svg {
color: var(--accent);
}
.settings-profile-meta {
display: grid;
min-width: 0;
gap: 3px;
}
.settings-profile-meta strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
}
.settings-profile-meta small {
overflow: hidden;
color: var(--muted);
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
}
.settings-row {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) 18px;
align-items: center;
gap: 10px;
min-height: 50px;
padding: 9px 10px;
text-align: left;
}
.settings-row > svg:first-child {
color: var(--text);
opacity: 0.9;
}
.settings-row > svg:last-child {
color: var(--muted);
}
.settings-row span {
display: grid;
min-width: 0;
gap: 2px;
}
.settings-row strong,
.settings-row small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.settings-row strong {
font-size: 12px;
}
.bottom-nav {
position: absolute;
right: 14px;
bottom: max(10px, env(safe-area-inset-bottom));
left: 14px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2px;
min-height: 64px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: rgba(7, 12, 17, 0.88);
box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
backdrop-filter: blur(16px);
}
.bottom-nav.static {
position: absolute;
}
.bottom-nav button {
display: grid;
place-items: center;
align-content: center;
gap: 4px;
border: 0;
background: transparent;
color: var(--muted);
font-size: 10px;
font-weight: 800;
}
.bottom-nav button.active {
color: var(--accent);
}
.home-layout {
display: flex;
min-height: calc(100dvh - 34px);
flex-direction: column;
gap: 18px;
padding-bottom: 86px;
}
.home-brand {
padding-top: clamp(26px, 10dvh, 74px);
}
.home-bottom {
display: grid;
gap: 10px;
margin-top: auto;
}
.auth-screen {
display: grid;
align-content: center;
}
.auth-card-wrap {
display: grid;
gap: 16px;
}
.login-brand {
display: grid;
justify-items: center;
gap: 10px;
text-align: center;
}
.login-brand.small {
gap: 5px;
}
.login-brand h1 {
margin: 0;
overflow-wrap: anywhere;
color: var(--accent);
font-size: 32px;
font-weight: 900;
line-height: 1.04;
}
.login-brand p {
margin: 0;
color: var(--muted);
font-size: 13px;
}
.auth-card {
display: grid;
gap: 14px;
}
.segmented {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: rgba(0, 0, 0, 0.18);
padding: 4px;
}
.segmented button {
min-height: 35px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--muted);
font-weight: 850;
}
.segmented button.active {
background: color-mix(in srgb, var(--accent) 11%, transparent);
color: var(--accent);
}
.auth-pane {
display: grid;
gap: 10px;
}
.auth-pane .field-label,
.auth-card .field-label {
color: var(--text);
font-size: 13px;
font-weight: 850;
}
.telegram-widget {
display: grid;
min-height: 54px;
place-items: center;
}
.auth-bottom {
text-align: center;
color: var(--muted);
font-size: 13px;
}
.auth-bottom strong {
color: var(--accent);
}
.or-line {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 10px;
color: var(--muted);
font-size: 12px;
}
.or-line span {
height: 1px;
background: var(--border);
}
.otp-wrap {
display: grid;
align-content: center;
gap: 20px;
min-height: calc(100dvh - 120px);
}
.otp-input-wrap {
position: relative;
display: block;
}
.otp-input-wrap input {
position: absolute;
inset: 0;
z-index: 2;
width: 100%;
border: 0;
background: transparent;
color: transparent;
caret-color: transparent;
outline: none;
}
.otp-slots {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 10px;
}
.otp-slots span {
display: grid;
aspect-ratio: 1;
place-items: center;
border: 1px solid color-mix(in srgb, var(--accent) 74%, var(--border));
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.035);
font-size: 25px;
font-weight: 900;
}
.otp-slots span.filled {
background: color-mix(in srgb, var(--accent) 9%, rgba(255, 255, 255, 0.04));
}
.link-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 0;
background: transparent;
color: var(--muted);
font-size: 13px;
}
.status-line {
color: var(--accent);
font-size: 12px;
line-height: 1.4;
}
.status-line.error,
.error {
color: var(--danger);
}
.empty-card {
grid-column: 1 / -1;
color: var(--muted);
font-size: 13px;
}
.dialog {
position: fixed;
inset: 0;
z-index: 40;
display: grid;
place-items: center;
padding: 16px;
}
.dialog-backdrop {
position: absolute;
inset: 0;
border: 0;
background: rgba(0, 0, 0, 0.68);
backdrop-filter: blur(10px);
}
.dialog-card {
position: relative;
z-index: 1;
display: grid;
width: min(100%, 360px);
gap: 16px;
border: 1px solid var(--border-strong);
border-radius: var(--radius);
background: var(--panel);
padding: 18px;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}
.dialog-head {
display: grid;
grid-template-columns: minmax(0, 1fr) 42px;
align-items: start;
gap: 12px;
}
.dialog-head h2 {
margin: 0;
font-size: 17px;
}
.dialog-head p {
margin: 6px 0 0;
color: var(--muted);
font-size: 12px;
line-height: 1.45;
}
.dialog-actions {
display: grid;
gap: 8px;
}
.toast {
position: fixed;
right: 16px;
bottom: 16px;
z-index: 60;
max-width: min(420px, calc(100vw - 32px));
border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--border));
border-radius: var(--radius);
background: rgba(15, 21, 27, 0.92);
box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
color: var(--text);
padding: 12px 14px;
font-size: 13px;
font-weight: 800;
}
.preview-board {
display: grid;
width: max-content;
min-height: 100vh;
grid-template-columns: repeat(3, auto);
gap: 22px 38px;
align-items: start;
padding: 18px 74px 28px;
background: linear-gradient(180deg, #06100c 0%, #02060b 32%, #010407 100%);
}
.preview-phone-wrap {
display: grid;
gap: 9px;
}
.preview-phone-wrap h2 {
margin: 0;
text-align: center;
font-size: 18px;
line-height: 1.1;
}
.preview-phone-wrap h2 span {
color: var(--accent);
}
.preview-phone {
position: relative;
display: grid;
width: 430px;
min-height: 318px;
align-content: start;
gap: 8px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 18px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015)),
#071017;
box-shadow:
0 28px 80px rgba(0, 0, 0, 0.54),
inset 0 1px 0 rgba(255, 255, 255, 0.08);
padding: 15px 16px 16px;
}
.preview-phone-wrap.wide .preview-phone {
width: 510px;
}
.preview-phone .bottom-nav {
right: 16px;
bottom: 8px;
left: 16px;
min-height: 50px;
box-shadow: none;
}
.preview-phone .bottom-nav span {
font-size: 9px;
}
.preview-phone .card {
padding: 12px;
}
.preview-phone .status-card {
padding: 14px;
}
.preview-phone .btn {
min-height: 38px;
font-size: 12px;
padding: 8px 10px;
}
.preview-phone .btn-square {
width: 36px;
min-width: 36px;
height: 36px;
padding: 0;
}
.preview-phone .period-card {
min-height: 72px;
}
.preview-phone .method-card {
min-height: 42px;
}
.preview-phone .settings-row {
min-height: 39px;
}
.preview-phone .settings-avatar {
width: 46px;
height: 46px;
}
.preview-phone .settings-profile-meta strong {
font-size: 12px;
}
.preview-phone .settings-profile-meta small {
font-size: 10px;
}
.preview-phone .brand-mark {
width: 34px;
height: 34px;
font-size: 23px;
}
.preview-phone .brand-mark-lg {
width: 56px;
height: 56px;
font-size: 39px;
}
.preview-phone .brand-mark-xl {
width: 78px;
height: 78px;
font-size: 56px;
}
.preview-phone .home-layout {
min-height: 300px;
gap: 12px;
padding-bottom: 58px;
}
.preview-phone .home-brand {
padding-top: 0;
}
.preview-phone .login-brand h1 {
font-size: 24px;
}
.preview-modal {
position: absolute;
right: 18px;
bottom: 18px;
display: grid;
width: 178px;
gap: 8px;
justify-items: center;
border: 1px solid var(--border-strong);
border-radius: 14px;
background: rgba(20, 29, 35, 0.94);
box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46);
padding: 16px;
text-align: center;
}
.preview-modal svg {
color: var(--accent);
}
.preview-modal strong {
font-size: 13px;
}
.preview-modal p {
margin: 0;
color: var(--muted);
font-size: 10px;
line-height: 1.35;
}
@media (max-width: 460px) {
.phone-screen {
width: 100vw;
padding-right: 10px;
padding-left: 10px;
}
.period-grid,
.method-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.copy-row,
.email-row {
grid-template-columns: 1fr;
}
}
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
.btn-primary {
background: var(--accent);
}
}
/*$vite$:1*/