1395 lines
23 KiB
CSS
1395 lines
23 KiB
CSS
/* Admin panel — расширение дизайн-системы кабинета */
|
|
|
|
.admin-body {
|
|
min-height: 100vh;
|
|
position: relative;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-bg {
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
background:
|
|
radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
|
|
var(--bg);
|
|
}
|
|
|
|
.admin-app {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 10px 12px 40px;
|
|
}
|
|
|
|
/* Top bar */
|
|
.admin-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.admin-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.admin-brand-mark {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 22px;
|
|
border-radius: 14px;
|
|
background: linear-gradient(145deg, rgba(61, 207, 154, 0.25), rgba(61, 207, 154, 0.06));
|
|
border: 1px solid rgba(61, 207, 154, 0.35);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.admin-brand span {
|
|
display: block;
|
|
}
|
|
|
|
.admin-brand-eyebrow {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.admin-brand-title {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.admin-topbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.admin-link-cabinet {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Login */
|
|
.admin-login-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
padding: 24px 0 40px;
|
|
min-height: calc(100vh - 120px);
|
|
}
|
|
|
|
.admin-login-card {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 420px;
|
|
padding: 32px 28px 28px;
|
|
border-radius: 24px;
|
|
background: linear-gradient(165deg, rgba(24, 33, 30, 0.95), rgba(15, 22, 20, 0.98));
|
|
border: 1px solid rgba(61, 207, 154, 0.2);
|
|
box-shadow:
|
|
0 24px 64px rgba(0, 0, 0, 0.45),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.admin-login-glow {
|
|
position: absolute;
|
|
top: -80px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 200px;
|
|
height: 200px;
|
|
background: radial-gradient(circle, rgba(61, 207, 154, 0.35), transparent 70%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.admin-login-icon {
|
|
position: relative;
|
|
width: 56px;
|
|
height: 56px;
|
|
margin: 0 auto 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--accent);
|
|
border-radius: 16px;
|
|
background: linear-gradient(145deg, rgba(61, 207, 154, 0.22), rgba(61, 207, 154, 0.06));
|
|
border: 1px solid rgba(61, 207, 154, 0.3);
|
|
}
|
|
|
|
.admin-login-kicker {
|
|
position: relative;
|
|
margin: 0 0 8px;
|
|
text-align: center;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.admin-login-card h1 {
|
|
position: relative;
|
|
margin: 0 0 10px;
|
|
text-align: center;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.admin-login-lead {
|
|
position: relative;
|
|
margin: 0 0 22px;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
line-height: 1.55;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-login-lead code {
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
border-radius: 6px;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.admin-login-form {
|
|
position: relative;
|
|
}
|
|
|
|
.admin-login-btn {
|
|
margin-top: 4px;
|
|
padding: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-alert {
|
|
margin-top: 16px;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
background: rgba(255, 107, 107, 0.12);
|
|
border: 1px solid rgba(255, 107, 107, 0.35);
|
|
color: #ffb4b4;
|
|
}
|
|
|
|
/* Dashboard */
|
|
.admin-dashboard {
|
|
display: grid;
|
|
grid-template-columns: 220px minmax(0, 1fr);
|
|
gap: 20px;
|
|
align-items: start;
|
|
animation: admin-fade-in 0.35s ease;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
position: sticky;
|
|
top: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 14px 12px;
|
|
border-radius: 18px;
|
|
background: var(--card);
|
|
border: 1px solid var(--line);
|
|
backdrop-filter: blur(10px);
|
|
max-height: calc(100vh - 24px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.admin-sidebar-brand {
|
|
padding: 4px 8px 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.admin-sidebar-kicker {
|
|
display: block;
|
|
font-size: 11px;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--muted);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.admin-sidebar-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.admin-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.admin-views {
|
|
min-width: 0;
|
|
}
|
|
|
|
.admin-section {
|
|
display: none;
|
|
}
|
|
|
|
.admin-section.is-active {
|
|
display: block;
|
|
animation: admin-fade-in 0.25s ease;
|
|
}
|
|
|
|
.admin-section.admin-grid.is-active {
|
|
display: grid;
|
|
}
|
|
|
|
@keyframes admin-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.admin-hello {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.admin-hello-title {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.admin-hello-hint {
|
|
padding: 8px 12px;
|
|
border-radius: 12px;
|
|
background: rgba(61, 207, 154, 0.08);
|
|
border: 1px solid rgba(61, 207, 154, 0.2);
|
|
max-width: 320px;
|
|
}
|
|
|
|
.admin-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-width: thin;
|
|
padding: 2px;
|
|
margin: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
.admin-nav::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.admin-nav::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.admin-nav-btn {
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
transition: background 0.18s, color 0.18s, border-color 0.18s;
|
|
}
|
|
|
|
.admin-nav-btn:hover {
|
|
color: var(--text);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.admin-nav-btn.active {
|
|
color: var(--text);
|
|
background: rgba(61, 207, 154, 0.12);
|
|
border-color: rgba(61, 207, 154, 0.28);
|
|
}
|
|
|
|
.admin-nav-ico {
|
|
display: grid;
|
|
place-items: center;
|
|
color: inherit;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.admin-nav-btn.active .admin-nav-ico {
|
|
color: var(--accent);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.admin-dashboard {
|
|
grid-template-columns: 1fr;
|
|
gap: 14px;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
position: static;
|
|
max-height: none;
|
|
overflow: visible;
|
|
padding: 12px;
|
|
}
|
|
|
|
.admin-sidebar-brand {
|
|
display: none;
|
|
}
|
|
|
|
.admin-nav {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
gap: 6px;
|
|
}
|
|
|
|
.admin-nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.admin-nav-btn {
|
|
width: auto;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.admin-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 0;
|
|
scroll-margin-top: 0;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.admin-stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.admin-stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.admin-stat {
|
|
padding: 16px;
|
|
border-radius: var(--radius);
|
|
background: var(--card);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
transition: border-color 0.2s, transform 0.2s;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-stat:hover {
|
|
border-color: rgba(61, 207, 154, 0.25);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.admin-stat-top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-stat-ico {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 10px;
|
|
color: var(--accent);
|
|
background: rgba(61, 207, 154, 0.1);
|
|
border: 1px solid rgba(61, 207, 154, 0.22);
|
|
}
|
|
|
|
.admin-stat-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.admin-stat-value {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.admin-stat-hint {
|
|
margin: 0;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-stat--total .admin-stat-value {
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-stat--unused .admin-stat-value {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.admin-stat--used .admin-stat-value {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-stat-skeleton {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
padding: 24px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-grid {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.admin-card {
|
|
padding: 20px;
|
|
}
|
|
|
|
.admin-card-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.admin-card-head.compact {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.admin-card-head h2 {
|
|
margin: 0 0 4px;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.admin-card-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
flex-shrink: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 18px;
|
|
border-radius: 12px;
|
|
background: var(--bg-2);
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
.admin-card-icon--svg {
|
|
color: var(--accent);
|
|
background: rgba(61, 207, 154, 0.1);
|
|
border-color: rgba(61, 207, 154, 0.28);
|
|
}
|
|
|
|
.admin-card-icon svg {
|
|
display: block;
|
|
}
|
|
|
|
.admin-subhead {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.admin-card,
|
|
#section-xui,
|
|
#section-codes,
|
|
#section-users,
|
|
#section-tickets,
|
|
#section-ai {
|
|
scroll-margin-top: 72px;
|
|
}
|
|
|
|
.admin-empty {
|
|
text-align: center;
|
|
padding: 28px 16px;
|
|
border-radius: 14px;
|
|
border: 1px dashed rgba(61, 207, 154, 0.25);
|
|
background: rgba(0, 0, 0, 0.16);
|
|
}
|
|
|
|
.admin-empty .empty-title {
|
|
margin: 0 0 6px;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.admin-form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-form-grid .full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.admin-form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.generated-wrap {
|
|
margin-top: 20px;
|
|
padding-top: 18px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.generated-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.code-output {
|
|
padding: 14px 16px;
|
|
border-radius: 14px;
|
|
background: var(--bg);
|
|
border: 1px dashed rgba(61, 207, 154, 0.35);
|
|
font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
color: var(--accent);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.admin-list-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.admin-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-select {
|
|
appearance: none;
|
|
border: 1px solid var(--line);
|
|
background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238fa59a'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
|
|
color: var(--text);
|
|
border-radius: 12px;
|
|
padding: 10px 36px 10px 12px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-select:focus {
|
|
outline: 1px solid rgba(61, 207, 154, 0.45);
|
|
}
|
|
|
|
.codes-table-wrap {
|
|
overflow-x: auto;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--line);
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.codes-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.codes-table thead {
|
|
background: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.codes-table th {
|
|
text-align: left;
|
|
padding: 12px 14px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--muted);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.codes-table td {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.codes-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.codes-table tbody tr {
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.codes-table tbody tr:hover {
|
|
background: rgba(61, 207, 154, 0.06);
|
|
}
|
|
|
|
.codes-table .code-cell {
|
|
font-family: ui-monospace, Consolas, monospace;
|
|
font-size: 12px;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
user-select: all;
|
|
}
|
|
|
|
.codes-table .code-cell:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.badge--free {
|
|
background: rgba(61, 207, 154, 0.15);
|
|
color: var(--accent);
|
|
border: 1px solid rgba(61, 207, 154, 0.35);
|
|
}
|
|
|
|
.badge--used {
|
|
background: rgba(143, 165, 154, 0.12);
|
|
color: var(--muted);
|
|
border: 1px solid var(--line);
|
|
}
|
|
|
|
.admin-toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 100;
|
|
max-width: min(90vw, 360px);
|
|
text-align: center;
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.admin-card-users {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.admin-toolbar--grow {
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.admin-search {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
border: 1px solid var(--line);
|
|
background: var(--bg-2);
|
|
color: var(--text);
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-search:focus {
|
|
outline: none;
|
|
border-color: rgba(61, 207, 154, 0.45);
|
|
}
|
|
|
|
.admin-users-summary {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.users-table td:first-child {
|
|
max-width: 220px;
|
|
}
|
|
|
|
.user-display {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.user-sub {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.btn-credit {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.admin-dialog {
|
|
border: 0;
|
|
padding: 0;
|
|
border-radius: 20px;
|
|
max-width: min(92vw, 420px);
|
|
background: transparent;
|
|
}
|
|
|
|
.admin-dialog::backdrop {
|
|
background: rgba(0, 0, 0, 0.65);
|
|
}
|
|
|
|
.admin-dialog-inner {
|
|
margin: 0;
|
|
padding: 22px 20px;
|
|
background: var(--card);
|
|
border: 1px solid var(--line);
|
|
border-radius: 20px;
|
|
box-shadow: var(--shadow);
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-dialog-inner h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.admin-dialog-inner label {
|
|
display: grid;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-dialog-inner input,
|
|
.admin-dialog-inner textarea {
|
|
border: 1px solid var(--line);
|
|
background: var(--bg-2);
|
|
color: var(--text);
|
|
border-radius: 12px;
|
|
padding: 11px 12px;
|
|
font: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.admin-dialog-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: flex-end;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.codes-empty {
|
|
text-align: center;
|
|
padding: 32px 16px !important;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-card-tickets {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.admin-tickets-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.3fr);
|
|
gap: 14px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.admin-ticket-empty {
|
|
border: 1px dashed rgba(61, 207, 154, 0.25);
|
|
border-radius: 14px;
|
|
padding: 36px 18px;
|
|
background: rgba(0, 0, 0, 0.12);
|
|
text-align: center;
|
|
display: grid;
|
|
place-content: center;
|
|
gap: 4px;
|
|
min-height: 280px;
|
|
}
|
|
|
|
.admin-ticket-empty.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.admin-tickets-layout:has(#admin-ticket-detail:not(.hidden)) .admin-ticket-empty {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.admin-tickets-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.admin-tickets-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
max-height: 520px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.admin-ticket-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--line);
|
|
background: rgba(0, 0, 0, 0.18);
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.admin-ticket-row:hover,
|
|
.admin-ticket-row.active {
|
|
border-color: rgba(61, 207, 154, 0.4);
|
|
background: rgba(61, 207, 154, 0.08);
|
|
}
|
|
|
|
.admin-ticket-row strong {
|
|
display: block;
|
|
font-size: 13px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.admin-ticket-detail {
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
background: rgba(0, 0, 0, 0.16);
|
|
display: grid;
|
|
gap: 12px;
|
|
min-height: 280px;
|
|
}
|
|
|
|
.admin-ticket-detail-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.admin-ticket-detail-head h3 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.admin-ticket-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.admin-ticket-messages {
|
|
display: grid;
|
|
gap: 8px;
|
|
max-height: 320px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.admin-ticket-reply {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-ticket-reply textarea {
|
|
border: 1px solid var(--line);
|
|
background: var(--bg-2);
|
|
color: var(--text);
|
|
border-radius: 12px;
|
|
padding: 11px 12px;
|
|
font: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.badge--open {
|
|
color: var(--accent);
|
|
border-color: rgba(61, 207, 154, 0.35);
|
|
background: rgba(61, 207, 154, 0.1);
|
|
}
|
|
|
|
.badge--answered {
|
|
color: #7db7ff;
|
|
border-color: rgba(125, 183, 255, 0.35);
|
|
background: rgba(125, 183, 255, 0.1);
|
|
}
|
|
|
|
.badge--closed {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-stat--tickets .admin-stat-value {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.admin-card-ai {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.admin-ai-form .admin-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-ai-form .admin-check input {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.admin-key-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.admin-key-row input {
|
|
flex: 1;
|
|
}
|
|
|
|
.full-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.compact-head {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.ai-models-pick {
|
|
display: grid;
|
|
gap: 6px;
|
|
max-height: 220px;
|
|
overflow: auto;
|
|
padding: 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: rgba(0, 0, 0, 0.16);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.ai-model-chip {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 2px 10px;
|
|
align-items: center;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.ai-model-chip code {
|
|
grid-column: 2;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.ai-model-chip.active,
|
|
.ai-model-chip:has(input:checked) {
|
|
border-color: rgba(61, 207, 154, 0.35);
|
|
background: rgba(61, 207, 154, 0.08);
|
|
}
|
|
|
|
.ai-model-chip input {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.admin-ai-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ai-test-out {
|
|
margin: 0;
|
|
padding: 12px;
|
|
border-radius: 12px;
|
|
background: var(--bg-2);
|
|
border: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
white-space: pre-wrap;
|
|
max-height: 240px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.ticket-msg--ai {
|
|
border-color: rgba(125, 183, 255, 0.35);
|
|
background: rgba(125, 183, 255, 0.1);
|
|
}
|
|
|
|
/* 3x-ui servers */
|
|
.admin-card-xui {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.xui-servers-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.xui-server-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 10px 14px;
|
|
align-items: start;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--line);
|
|
background: rgba(12, 20, 17, 0.55);
|
|
}
|
|
|
|
.xui-server-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.xui-server-title {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.xui-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
padding: 2px 7px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(61, 207, 154, 0.35);
|
|
color: var(--accent);
|
|
background: rgba(61, 207, 154, 0.1);
|
|
}
|
|
|
|
.xui-badge.off {
|
|
color: var(--muted);
|
|
border-color: var(--line);
|
|
background: transparent;
|
|
}
|
|
|
|
.xui-badge.ok {
|
|
color: #3dcf9a;
|
|
}
|
|
|
|
.xui-badge.bad {
|
|
color: #f07178;
|
|
border-color: rgba(240, 113, 120, 0.35);
|
|
background: rgba(240, 113, 120, 0.08);
|
|
}
|
|
|
|
.xui-server-meta {
|
|
margin-top: 6px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
word-break: break-all;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.xui-server-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.xui-form {
|
|
margin-top: 8px;
|
|
padding-top: 14px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.xui-server-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.xui-server-actions {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
.admin-card-awg {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#section-awg {
|
|
scroll-margin-top: 72px;
|
|
}
|
|
|
|
#section-tariffs,
|
|
#section-payments {
|
|
scroll-margin-top: 72px;
|
|
}
|
|
|
|
.admin-subhead.full-width {
|
|
margin: 8px 0 0;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--line);
|
|
font-size: 14px;
|
|
font-weight: 650;
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-sale-toggle.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.admin-sale-toggle {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
margin: 0 0 16px;
|
|
padding: 14px 16px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(61, 207, 154, 0.28);
|
|
background:
|
|
linear-gradient(160deg, rgba(61, 207, 154, 0.1), transparent 55%),
|
|
rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.admin-sale-toggle.is-off {
|
|
border-color: var(--line);
|
|
background: rgba(0, 0, 0, 0.16);
|
|
}
|
|
|
|
.admin-sale-toggle-main {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.admin-switch {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.admin-switch input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.admin-switch-slider {
|
|
position: relative;
|
|
width: 46px;
|
|
height: 26px;
|
|
flex-shrink: 0;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid var(--line);
|
|
transition: background 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.admin-switch-slider::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: #c8d6cf;
|
|
transition: transform 0.2s, background 0.2s;
|
|
}
|
|
|
|
.admin-switch input:checked + .admin-switch-slider {
|
|
background: rgba(61, 207, 154, 0.35);
|
|
border-color: rgba(61, 207, 154, 0.55);
|
|
}
|
|
|
|
.admin-switch input:checked + .admin-switch-slider::after {
|
|
transform: translateX(20px);
|
|
background: var(--accent);
|
|
}
|
|
|
|
.admin-switch-text {
|
|
display: grid;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.admin-switch-text strong {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.admin-switch-text small {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.admin-sale-toggle-price {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.admin-sale-toggle-price label {
|
|
display: grid;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.admin-sale-toggle-price input {
|
|
width: 100px;
|
|
border: 1px solid var(--line);
|
|
background: var(--bg-2);
|
|
color: var(--text);
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.admin-check input {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.xui-wg-settings {
|
|
margin-top: 18px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.xui-wg-settings .admin-card-head {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.xui-wg-settings .admin-form-grid {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.backup-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin: 8px 0 16px;
|
|
}
|
|
|
|
.backup-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--line);
|
|
background: var(--bg-2);
|
|
}
|
|
|
|
.backup-row-main {
|
|
display: grid;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.backup-name {
|
|
font-size: 12px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.backup-row-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.backup-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.backup-row-actions {
|
|
justify-content: flex-end;
|
|
}
|
|
}
|