@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&display=swap");

:root {
    --admin-bg: #231d21;
    --admin-bg-soft: #2a2328;
    --admin-panel: #2a2328;
    --admin-panel-2: #31292f;
    --admin-line: rgba(255, 255, 255, 0.14);
    --admin-line-strong: rgba(255, 201, 104, 0.34);
    --admin-text: #f7efe7;
    --admin-muted: #aa9ea4;
    --admin-accent: #f4b650;
    --admin-accent-2: #ffca70;
    --admin-accent-text: #231a11;
    --admin-success: #4dd4a7;
    --admin-danger: #ff6c8f;
    --admin-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

html,
body.admin-body {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body.admin-body {
    margin: 0;
    color: var(--admin-text);
    background:
        radial-gradient(circle at top center, rgba(244, 182, 80, 0.05), transparent 30%),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.03), transparent 24%),
        linear-gradient(180deg, #231d21 0%, #211b1f 100%);
    overflow-x: hidden;
}

.admin-body,
.admin-body button,
.admin-body input,
.admin-body select,
.admin-body textarea {
    font-family: "Unbounded", "Onest", "Montserrat", sans-serif;
}

.admin-shell {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding: 28px 0 56px;
}

.admin-content,
.admin-content-standalone {
    width: 100%;
}

.admin-header,
.admin-panel-section {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.admin-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 8px 0 28px;
}

.admin-header-copy h2 {
    margin: 10px 0 8px;
    font-size: clamp(2.15rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-header-copy p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.admin-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 36px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(244, 182, 80, 0.14);
    border: 1px solid rgba(244, 182, 80, 0.22);
    color: var(--admin-accent-2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.admin-header-side {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-header-chip,
.admin-header-user {
    min-height: 78px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--admin-line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--admin-shadow);
}

.admin-header-chip span,
.admin-header-user span {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-header-chip strong,
.admin-header-user strong {
    display: block;
    color: var(--admin-text);
    font-size: 1rem;
    font-weight: 700;
}

.admin-header-user {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    align-items: center;
    min-width: 220px;
}

.admin-header-user span,
.admin-header-user strong {
    grid-column: 1;
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--admin-accent-text);
    background: linear-gradient(180deg, var(--admin-accent-2), var(--admin-accent));
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(244, 182, 80, 0.24);
}

.admin-panel-section {
    display: grid;
    gap: 24px;
    padding: 6px 0 0;
}

.admin-card,
.admin-dashboard-hero,
.admin-confirm-card {
    background: linear-gradient(180deg, rgba(44, 36, 41, 0.98), rgba(35, 29, 33, 0.98));
    border: 1px solid var(--admin-line);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--admin-shadow);
}

.admin-card {
    padding: 28px;
    position: relative;
}

.admin-card::before,
.admin-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 202, 112, 0.24), transparent);
    pointer-events: none;
}

.admin-card > h2,
.admin-form-shell-head h2,
.admin-section-head h2,
.admin-list-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.2vw, 2.25rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.admin-card-note,
.admin-section-head p,
.admin-list-head p,
.admin-form-shell-head p,
.admin-helper-text,
.admin-empty-state,
.admin-dashboard-copy p,
.admin-dashboard-tile small,
.admin-product-pick-card small,
.admin-discount-main p {
    color: var(--admin-muted);
    margin: 0;
}

.admin-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
    gap: 26px;
    padding: 32px;
}

.admin-dashboard-copy {
    display: grid;
    align-content: center;
    gap: 8px;
}

.admin-dashboard-copy h2 {
    margin: 0;
    font-size: clamp(2.2rem, 3.1vw, 3.3rem);
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.admin-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-dashboard-metric,
.admin-stat-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--admin-line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.admin-dashboard-metric span,
.admin-stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--admin-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-dashboard-metric strong,
.admin-stat-card strong {
    display: block;
    color: var(--admin-text);
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.admin-dashboard-grid,
.admin-stats-grid,
.admin-product-grid,
.admin-coupon-grid,
.admin-server-grid,
.admin-group-grid,
.admin-security-grid,
.admin-analytics-grid {
    display: grid;
    gap: 18px;
}

.admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-tile,
.admin-product-card,
.admin-coupon-card,
.admin-discount-card,
.admin-group-card,
.admin-server-card,
.admin-analytics-card {
    border-radius: 28px;
    border: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--admin-shadow);
}

.admin-dashboard-tile {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    min-height: 188px;
    padding: 24px;
    color: var(--admin-text);
    text-align: left;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(46, 38, 43, 0.96), rgba(36, 30, 34, 0.96));
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-dashboard-tile:hover {
    transform: translateY(-3px);
    border-color: var(--admin-line-strong);
    background: linear-gradient(180deg, rgba(54, 45, 51, 0.98), rgba(40, 33, 38, 0.98));
}

.admin-dashboard-tile strong {
    grid-column: 2;
    align-self: end;
    font-size: 1.2rem;
    line-height: 1.15;
    max-width: 14ch;
    text-wrap: balance;
}

.admin-dashboard-tile small {
    grid-column: 2;
    align-self: start;
    line-height: 1.45;
    max-width: 24ch;
    font-size: 0.92rem;
    text-wrap: pretty;
    word-break: normal;
}

.admin-dashboard-icon,
.admin-back-link,
.admin-icon-button,
.flash-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-dashboard-icon {
    grid-row: 1 / span 2;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(244, 182, 80, 0.12) !important;
    color: var(--admin-accent-2) !important;
    font-size: 0;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(244, 182, 80, 0.12);
    position: relative;
}

.admin-dashboard-icon::before {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.96;
}

.admin-dashboard-icon.is-blue::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3h4l.8 2.2 2.2.8 2 3-.9 2.1.9 2.1-2 3-2.2.8L14 21h-4l-.8-2.2-2.2-.8-2-3 .9-2.1L5 9l2-3 2.2-.8z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-green::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='6' rx='2'/%3E%3Crect x='4' y='13' width='16' height='6' rx='2'/%3E%3Cpath d='M8 8h.01M8 16h.01M12 8h5M12 16h5'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-amber::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 7v10L12 21l7.5-4V7z'/%3E%3Cpath d='M4.5 7 12 11l7.5-4M12 11v10'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-red::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-cyan::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16c2-2 4-2 6 0s4 2 6 0 4-2 4-2'/%3E%3Cpath d='M4 10c2-2 4-2 6 0s4 2 6 0 4-2 4-2'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-slate::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5h10M7 12h10M7 19h10'/%3E%3Ccircle cx='5' cy='5' r='1' fill='%23ffca70' stroke='none'/%3E%3Ccircle cx='5' cy='12' r='1' fill='%23ffca70' stroke='none'/%3E%3Ccircle cx='5' cy='19' r='1' fill='%23ffca70' stroke='none'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-gold::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 2.8 7.5 7 10 4.2-2.5 7-5.5 7-10V6z'/%3E%3Cpath d='m9.2 12 1.8 1.8 3.8-4.1'/%3E%3C/svg%3E");
}

.admin-dashboard-icon.is-violet::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffca70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M12 13.5c0-2 3-2.2 3-5a3 3 0 1 0-6 0'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.admin-section-head,
.admin-list-head,
.admin-form-shell-head,
.admin-editor-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-back-link {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: 1px solid rgba(255, 202, 112, 0.16);
    border-radius: 18px;
    color: var(--admin-text);
    background: linear-gradient(180deg, rgba(54, 45, 51, 0.98), rgba(36, 30, 34, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 26px rgba(0, 0, 0, 0.22);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.admin-back-link.is-hidden {
    display: none;
}

.admin-back-link:hover {
    border-color: rgba(255, 202, 112, 0.28);
    background: linear-gradient(180deg, rgba(60, 50, 56, 0.98), rgba(40, 33, 38, 0.98));
}

.admin-settings-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--admin-line);
}

.admin-settings-tab {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--admin-muted);
    font-weight: 700;
    cursor: pointer;
}

.admin-settings-tab.active {
    color: var(--admin-text);
    background: rgba(244, 182, 80, 0.1);
    border-color: rgba(244, 182, 80, 0.18);
}

.admin-form,
.admin-editor-stack,
.admin-settings-sections {
    display: grid;
    gap: 18px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 760px) {
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }
}

.admin-password-control {
    position: relative;
    display: block;
}

.admin-password-control input {
    width: 100%;
    padding-right: 52px !important;
}

.admin-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    min-width: 0 !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 9px !important;
    border-radius: 9px !important;
    transform: translateY(-50%);
    line-height: 1 !important;
}

.admin-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.admin-password-toggle.is-visible svg {
    opacity: 0.65;
}

.admin-editor-stack {
    gap: 20px;
}

.admin-form > button[type="submit"],
.admin-form-actions,
.admin-inline-actions {
    margin-top: 6px;
}

.admin-form > button[type="submit"],
.admin-form-actions button,
.admin-inline-actions button,
.admin-inline-actions .hero-button {
    justify-self: start;
}

.admin-form-shell-head,
.admin-list-head,
.admin-section-head {
    padding-bottom: 8px;
}

.admin-form-two,
.admin-settings-sections,
.admin-security-grid,
.admin-server-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-editor-block,
.admin-settings-block {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--admin-line);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    min-width: 0;
}

.admin-editor-block > h3,
.admin-settings-block > h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
}

.admin-editor-block > h3::before,
.admin-settings-block > h3::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(244, 182, 80, 0.1);
    box-shadow: inset 0 0 0 1px rgba(244, 182, 80, 0.14);
    flex: 0 0 34px;
}

.admin-editor-block h3,
.admin-settings-block h3,
.admin-analytics-card h3,
.admin-server-card h3,
.admin-group-card h3 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.admin-form label,
.admin-settings-block label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-form label + label,
.admin-settings-block label + label {
    margin-top: 2px;
}

.admin-form label > span,
.admin-settings-block label > span,
.admin-server-meta span {
    color: var(--admin-text);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.admin-body input:not([type="checkbox"]):not([type="range"]),
.admin-body select,
.admin-body textarea {
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--admin-text);
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-body textarea {
    min-height: 140px;
    padding: 16px 18px;
    resize: vertical;
    line-height: 1.65;
}

.admin-body select[multiple] {
    min-height: 220px;
    padding: 12px;
    line-height: 1.45;
}

.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
    border-color: rgba(244, 182, 80, 0.32);
    box-shadow: 0 0 0 4px rgba(244, 182, 80, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.admin-body button,
.admin-body .hero-button,
.admin-body .danger-button,
.admin-body .ghost-link {
    appearance: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.admin-body button {
    background: transparent;
    color: inherit;
}

.admin-body button[type="submit"],
.admin-body .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--admin-accent-2), var(--admin-accent));
    color: var(--admin-accent-text);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 34px rgba(244, 182, 80, 0.18);
}

.admin-body .hero-button.secondary,
.admin-body .ghost-link {
    background: rgba(255, 255, 255, 0.04);
    color: var(--admin-text);
    border: 1px solid var(--admin-line);
    box-shadow: none;
}

.admin-body .danger-button {
    background: linear-gradient(180deg, #ff7f98 0%, #d54f69 100%);
    color: #fff2f5;
    box-shadow: 0 16px 34px rgba(213, 79, 105, 0.18);
}

.admin-mini-button,
.admin-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    max-width: 100%;
}

.admin-icon-button {
    min-width: 42px;
}

.admin-body .table-wrap .ghost-link,
.admin-body .table-wrap .danger-button,
.admin-body .table-wrap .hero-button.secondary,
.actions-cell .ghost-link,
.actions-cell .danger-button,
.actions-cell .hero-button.secondary,
.admin-coupon-actions .ghost-link,
.admin-coupon-actions .danger-button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.78rem;
}

.admin-body button:hover,
.admin-body .hero-button:hover,
.admin-body .danger-button:hover,
.admin-body .ghost-link:hover,
.admin-back-link:hover,
.admin-user-avatar:hover {
    transform: translateY(-1px);
}

.admin-helper-text,
.admin-card-note {
    line-height: 1.6;
    font-size: 0.88rem;
}

.checkbox-row,
.admin-product-pick-all {
    display: flex !important;
    align-items: center;
    min-height: 42px;
    gap: 14px;
}

.checkbox-row span,
.admin-product-pick-all span {
    color: var(--admin-text);
    font-weight: 600;
}

.checkbox-row input,
.admin-product-pick-all input,
.admin-product-pick-card input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkbox-row input::after,
.admin-product-pick-all input::after,
.admin-product-pick-card input::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 10px;
    height: 18px;
    margin: auto;
    border-right: 3px solid #241b13;
    border-bottom: 3px solid #241b13;
    transform: rotate(45deg) translate(-1px, -1px);
    transform-origin: center;
    opacity: 0;
}

.checkbox-row input:hover,
.admin-product-pick-all input:hover,
.admin-product-pick-card input:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.checkbox-row input:checked,
.admin-product-pick-all input:checked,
.admin-product-pick-card input:checked {
    border-color: rgba(255, 201, 104, 0.42);
    background: linear-gradient(180deg, #ffca70, #f4b650);
    box-shadow: 0 12px 26px rgba(244, 182, 80, 0.16);
}

.checkbox-row input:checked::after,
.admin-product-pick-all input:checked::after,
.admin-product-pick-card input:checked::after {
    opacity: 1;
}

.checkbox-row input:focus-visible,
.admin-product-pick-all input:focus-visible,
.admin-product-pick-card input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 182, 80, 0.14);
}

.admin-product-pick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-height: 420px;
    overflow: auto;
    padding-right: 6px;
}

.admin-product-pick-card {
    position: relative;
    display: grid !important;
    place-items: center;
    gap: 10px;
    min-height: 180px;
    padding: 20px;
    text-align: center;
}

.admin-product-pick-card input {
    position: absolute;
    top: 14px;
    right: 14px;
}

.admin-product-pick-card img,
.admin-product-image-preview,
.admin-product-art img,
.admin-group-item img {
    display: block;
    object-fit: contain;
}

.admin-product-pick-card img,
.admin-product-art img {
    width: 80px;
    height: 80px;
}

.admin-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-product-image-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.admin-product-image-preview {
    width: 128px;
    height: 128px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-product-image-actions {
    display: grid;
    gap: 10px;
}

.admin-description-input {
    min-height: 140px;
}

.admin-description-large {
    min-height: 220px;
}

.admin-description-colorbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-description-colorbar input[type="color"] {
    width: 48px;
    min-height: 40px;
    padding: 3px;
    cursor: pointer;
}

.admin-description-colorbar button {
    width: auto;
    min-height: 40px;
    padding: 8px 14px;
}

.admin-description-colorbar span {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.admin-secret-saved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: var(--admin-success);
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-secret-saved::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.admin-product-card {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 22px;
    min-height: 100%;
}

.admin-product-card-top,
.admin-coupon-card-top,
.admin-group-head,
.admin-server-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.admin-product-title {
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.admin-product-art {
    display: grid;
    place-items: center;
    min-height: 160px;
}

.admin-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line);
}

.admin-coupon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-coupon-card,
.admin-discount-card,
.admin-server-card,
.admin-group-card,
.admin-analytics-card {
    padding: 24px;
    min-height: 100%;
}

.admin-coupon-discount,
.admin-discount-percent {
    color: var(--admin-success);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.admin-coupon-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--admin-line);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    overflow: hidden;
}

.admin-coupon-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-coupon-meta span {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-coupon-footer,
.actions-cell,
.admin-coupon-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-coupon-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.admin-coupon-status-dot.is-active {
    background: var(--admin-success);
    box-shadow: 0 0 0 6px rgba(77, 212, 167, 0.1);
}

.admin-group-head small,
.admin-product-card-top small {
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-chip-success {
    background: rgba(77, 212, 167, 0.12);
    color: #94f1cf;
}

.admin-chip-danger {
    background: rgba(255, 108, 143, 0.12);
    color: #ff9eb7;
}

.admin-chip-muted {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd0d6;
}

.admin-analytics-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    align-items: start;
}

.admin-analytics-card {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 18px;
}

.admin-analytics-list,
.admin-country-list {
    display: grid;
    gap: 12px;
}

.admin-analytics-row,
.admin-country-row {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-analytics-row-head,
.admin-country-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.admin-analytics-row-head strong,
.admin-country-copy strong {
    font-size: 1rem;
    line-height: 1.2;
    min-width: 0;
}

.admin-analytics-row-head span,
.admin-country-copy span {
    color: var(--admin-muted);
    font-size: 0.86rem;
    min-width: 0;
    flex: 0 1 auto;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}

.admin-analytics-bar,
.admin-country-bar {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-analytics-bar span,
.admin-country-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffca70 0%, #f4b650 100%);
    box-shadow: 0 0 16px rgba(244, 182, 80, 0.22);
}

.admin-country-row {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
}

.admin-country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(244, 182, 80, 0.1);
    border: 1px solid rgba(244, 182, 80, 0.14);
    color: var(--admin-accent-2);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.admin-country-copy {
    align-items: center;
}

.admin-server-form {
    gap: 16px;
}

.admin-server-form-actions {
    justify-content: flex-start;
}

.admin-discount-list {
    display: grid;
    gap: 18px;
}

.admin-discount-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-discount-card .actions-cell {
    justify-content: flex-end;
}

.admin-discount-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-select-all {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.78rem;
}

.admin-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-group-items,
.admin-server-meta {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.admin-group-item,
.admin-server-meta div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.admin-group-item > div {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-group-item strong,
.admin-group-item small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-group-item strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.25;
}

.admin-group-head small,
.admin-product-card-top small {
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.admin-server-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-server-card p,
.admin-server-meta span {
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.admin-stack-grid {
    display: grid;
    gap: 18px;
}

.admin-admin-grid,
.admin-history-grid,
.admin-purchase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-admin-grid {
    align-items: start;
}

.admin-bug-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stack-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--admin-shadow);
}

.admin-account-card {
    align-content: start;
    grid-auto-rows: max-content;
    min-width: 0;
    height: auto;
}

.admin-account-card .admin-stack-head,
.admin-account-card .admin-account-meta,
.admin-account-card .admin-permission-list,
.admin-account-card .actions-cell {
    min-width: 0;
}

.admin-account-card .admin-account-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-account-card .admin-permission-list {
    align-items: center;
}

.admin-account-card .admin-permission-list .admin-chip {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-height: 30px;
    height: auto;
    padding: 6px 12px;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
}

.admin-account-card .admin-permission-list .admin-chip-more {
    color: var(--admin-accent-2);
    border-color: rgba(244, 182, 80, 0.22);
    background: rgba(244, 182, 80, 0.08);
    white-space: nowrap;
}

.admin-account-card .actions-cell {
    justify-content: flex-start;
    margin-top: 2px;
}

.admin-form-shell-head p,
.admin-list-head p,
.admin-section-head p {
    max-width: 720px;
}

.admin-stack-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-stack-head small {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.admin-stack-head h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.admin-stack-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-stack-meta div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-stack-meta span {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-stack-meta strong {
    display: block;
    color: var(--admin-text);
    line-height: 1.3;
}

.admin-stack-description {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-stack-description p {
    margin: 0;
    color: #ded4d9;
    line-height: 1.65;
}

.admin-bug-status-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-bug-status-form select {
    min-width: 180px;
}

.admin-server-meta strong {
    display: block;
    margin-left: auto;
    text-align: right;
}

.table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    border: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.02);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--admin-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table tbody tr {
    transition: background 0.16s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.admin-current-badge,
.admin-table-note,
.admin-helper-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-muted);
    font-size: 0.83rem;
}

.admin-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 8, 10, 0.76);
    backdrop-filter: blur(8px);
}

.admin-confirm-overlay[hidden] {
    display: none !important;
}

.admin-confirm-card {
    width: min(460px, 100%);
    padding: 28px;
}

.admin-confirm-title {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 800;
}

.admin-confirm-message {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.6;
}

.admin-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.admin-command-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
}

.admin-command-row .hero-button {
    min-width: 72px;
}

.flash-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 160;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 28px));
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid var(--admin-line);
    backdrop-filter: blur(16px);
    box-shadow: var(--admin-shadow);
    pointer-events: auto;
}

.flash-success {
    background: linear-gradient(180deg, rgba(14, 66, 51, 0.96), rgba(9, 42, 33, 0.96));
}

.flash-error {
    background: linear-gradient(180deg, rgba(73, 23, 35, 0.96), rgba(49, 16, 24, 0.96));
}

.flash-body {
    display: flex;
    gap: 12px;
}

.flash-indicator {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--admin-success);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.flash-error .flash-indicator {
    background: var(--admin-danger);
}

.flash-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.flash-copy span {
    color: rgba(255, 245, 236, 0.88);
    line-height: 1.45;
}

.flash-close {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff6e9;
    font-size: 1.2rem;
}

.admin-footer {
    margin-top: 64px;
    padding: 18px 0 28px;
    background: transparent;
}

.admin-footer-inner {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-footer a {
    color: #b9b4bf;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: opacity 0.18s ease;
}

.admin-footer a span {
    color: var(--admin-accent);
}

.admin-footer a:hover {
    opacity: 0.86;
}

.admin-form-actions,
.admin-inline-actions {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-inline-actions {
    margin: 0 0 18px;
}

.admin-login-shell {
    min-height: 100vh;
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 40px 0 56px;
}

.admin-login-toast-stack {
    position: fixed;
}

.admin-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.admin-login-hero,
.admin-login-card {
    padding: 34px;
}

.admin-login-hero {
    display: grid;
    align-content: start;
    gap: 18px;
}

.admin-login-hero h1,
.admin-login-head h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.admin-login-hero p,
.admin-login-head p {
    margin: 0;
    color: var(--admin-muted);
    line-height: 1.7;
}

.admin-login-points {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.admin-login-point {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--admin-line);
}

.admin-login-point strong {
    color: var(--admin-text);
    font-size: 1rem;
}

.admin-login-point span {
    color: var(--admin-muted);
    line-height: 1.55;
}

.admin-login-card {
    display: grid;
    align-content: start;
    gap: 24px;
}

.admin-login-head {
    display: grid;
    gap: 10px;
}

.admin-login-form {
    gap: 16px;
}

.admin-login-form button[type="submit"] {
    width: 100%;
    justify-self: stretch;
}

.admin-permission-block {
    gap: 16px;
}

.admin-permission-summary {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--admin-line);
    color: var(--admin-muted);
    line-height: 1.6;
}

.admin-permission-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-permission-modal-card {
    width: min(980px, 100%);
    max-height: min(88vh, 960px);
    overflow: auto;
}

.admin-permission-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.admin-permission-modal-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-permission-modal-head {
    display: grid;
    gap: 6px;
}

.admin-permission-modal-head strong {
    color: var(--admin-text);
    font-size: 1.05rem;
}

.admin-permission-modal-head span {
    color: var(--admin-muted);
    line-height: 1.5;
}

.admin-permission-option-list {
    display: grid;
    gap: 12px;
}

.admin-permission-option {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-permission-option input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    position: relative;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-permission-option input::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 6px;
    height: 12px;
    margin: auto;
    border-right: 2px solid #241b13;
    border-bottom: 2px solid #241b13;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
}

.admin-permission-option input:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.admin-permission-option input:checked {
    border-color: rgba(255, 201, 104, 0.42);
    background: linear-gradient(180deg, #ffca70, #f4b650);
    box-shadow: 0 10px 22px rgba(244, 182, 80, 0.18);
}

.admin-permission-option input:checked::after {
    opacity: 1;
}

.admin-permission-option input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(244, 182, 80, 0.14);
}

.admin-permission-option span {
    color: var(--admin-text);
    line-height: 1.45;
}

.admin-body ::placeholder {
    color: #8e8188;
}

@media (max-width: 1120px) {
    .admin-header,
    .admin-dashboard-hero,
    .admin-dashboard-grid,
    .admin-stats-grid,
    .admin-product-grid,
    .admin-coupon-grid,
    .admin-server-grid,
    .admin-group-grid,
    .admin-analytics-grid,
    .admin-form-two,
    .admin-settings-sections,
    .admin-security-grid,
    .admin-server-summary,
    .admin-product-pick-grid,
    .admin-admin-grid,
    .admin-history-grid,
    .admin-purchase-grid,
    .admin-bug-grid,
    .admin-stack-meta {
        grid-template-columns: 1fr 1fr;
    }

    .admin-header {
        grid-template-columns: 1fr;
    }

    .admin-admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-header-side {
        justify-content: flex-start;
    }

    .admin-dashboard-hero,
    .admin-discount-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-product-image-row {
        grid-template-columns: 1fr;
    }

    .admin-login-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .admin-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 18px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .admin-login-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 18px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .admin-card,
    .admin-dashboard-hero,
    .admin-confirm-card {
        padding: 20px;
        border-radius: 24px;
        min-width: 0;
    }

    .admin-dashboard-grid,
    .admin-stats-grid,
    .admin-product-grid,
    .admin-coupon-grid,
    .admin-server-grid,
    .admin-group-grid,
    .admin-analytics-grid,
    .admin-form-two,
    .admin-settings-sections,
    .admin-security-grid,
    .admin-server-summary,
    .admin-product-pick-grid,
    .admin-dashboard-metrics,
    .admin-admin-grid,
    .admin-history-grid,
    .admin-purchase-grid,
    .admin-bug-grid,
    .admin-stack-meta {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-tile {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: auto;
        padding: 18px;
    }

    .admin-account-card .admin-account-meta {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-tile strong,
    .admin-dashboard-tile small {
        max-width: none;
    }

    .admin-dashboard-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .admin-header-copy h2,
    .admin-dashboard-copy h2,
    .admin-login-hero h1,
    .admin-login-head h2 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
        line-height: 1.05;
    }

    .admin-section-head,
    .admin-list-head,
    .admin-form-shell-head,
    .admin-editor-block-head {
        align-items: flex-start;
        flex-direction: column;
        min-width: 0;
    }

    .admin-form,
    .admin-editor-stack,
    .admin-settings-sections {
        gap: 16px;
    }

    .admin-product-card,
    .admin-coupon-card,
    .admin-discount-card,
    .admin-group-card,
    .admin-server-card,
    .admin-analytics-card,
    .admin-stack-card {
        padding: 18px;
        border-radius: 22px;
        min-width: 0;
    }

    .admin-coupon-meta,
    .admin-discount-main {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-permission-modal-grid {
        grid-template-columns: 1fr;
    }

    .admin-coupon-code {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
    }

    .admin-body input:not([type="checkbox"]):not([type="range"]),
    .admin-body select,
    .admin-body textarea {
        font-size: 0.92rem;
        min-height: 54px;
    }

    .admin-header-chip,
    .admin-header-user {
        width: 100%;
    }

    .admin-list-head > div,
    .admin-section-head > div,
    .admin-form-shell-head > div,
    .admin-editor-block-head > div,
    .admin-group-head > div,
    .admin-server-card-head > div,
    .admin-product-card-top > div,
    .admin-coupon-card-top > div {
        width: 100%;
        min-width: 0;
    }

    .admin-card > h2,
    .admin-form-shell-head h2,
    .admin-section-head h2,
    .admin-list-head h2,
    .admin-editor-block h3,
    .admin-settings-block h3,
    .admin-analytics-card h3,
    .admin-server-card h3,
    .admin-group-card h3,
    .admin-product-title,
    .admin-group-item strong,
    .admin-server-meta strong,
    .admin-chip,
    .admin-mini-button,
    .admin-select-all,
    .admin-helper-text,
    .admin-card-note {
        overflow-wrap: anywhere;
    }

    .admin-country-row,
    .admin-analytics-row-head,
    .admin-country-copy {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .admin-analytics-row-head,
    .admin-country-copy {
        flex-direction: column;
        gap: 6px;
    }

    .admin-country-copy span,
    .admin-analytics-row-head span {
        text-align: left;
    }

    .admin-product-card-top,
    .admin-coupon-card-top,
    .admin-group-head,
    .admin-server-card-head,
    .actions-cell,
    .admin-coupon-actions,
    .admin-coupon-footer,
    .admin-form-actions,
    .admin-inline-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .admin-body button[type="submit"],
    .admin-body .hero-button,
    .admin-body .danger-button,
    .admin-body .ghost-link,
    .admin-form > button[type="submit"],
    .admin-form-actions button,
    .admin-inline-actions button,
    .admin-inline-actions .hero-button,
    .actions-cell .ghost-link,
    .actions-cell .danger-button,
    .actions-cell .hero-button.secondary,
    .admin-mini-button,
    .admin-select-all {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-group-item,
    .admin-server-meta div {
        align-items: flex-start;
    }

    .admin-group-item strong,
    .admin-group-item small,
    .admin-server-meta strong,
    .admin-server-meta span {
        min-width: 0;
    }

    .admin-table {
        min-width: 640px;
    }

    .admin-table th,
    .admin-table td {
        padding: 14px 12px;
    }

    .flash-stack {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .admin-footer-inner {
        width: min(100% - 24px, 1120px);
    }

    .admin-login-hero,
    .admin-login-card {
        padding: 22px;
    }
}
