:root {
    --bg: #171f26;
    --surface: rgba(49, 60, 71, 0.5);
    --surface-solid: #313c47;
    --border: #313c47;
    --text: rgba(250, 252, 255, 0.85);
    --text-muted: rgba(250, 252, 255, 0.45);
    --accent: #7a44bf;
    --accent-light: #9333ea;
    --pink: #e879f9;
    --green: #22c55e;
    --radius: 16px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; }

body.panel-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 500;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app-wrap {
    max-width: 1284px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    padding-top: 24px;
}

/* Sidebar */
.panel-sidebar {
    width: 224px;
    padding: 0 6px 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 24px;
    align-self: start;
}

.panel-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 15px;
    margin-bottom: 2px;
}

.panel-sidebar-brand .panel-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    line-height: 1;
}

.panel-sidebar-brand .panel-logo::before {
    content: '';
    width: 20px;
    flex-shrink: 0;
}

.panel-topbar-brand {
    height: 40px;
}

.panel-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.panel-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(250, 252, 255, 0.92);
    transition: color 0.15s;
}
.panel-logo-text-lg {
    font-size: 28px;
}
.panel-logo:hover .panel-logo-text {
    color: #fff;
}

.panel-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.panel-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 20px;
    border-radius: var(--radius-pill);
    color: var(--text);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.panel-nav a:hover { background: rgba(49, 60, 71, 0.25); }

.panel-nav a.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

.panel-nav a .nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.85;
}

.panel-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 14px;
    opacity: 0.5;
}

.panel-nav-scroll {
    display: contents;
}

/* Layout grid (SMMWay: 224px + 1060px) */
.panel-topbar {
    display: grid;
    grid-template-columns: 224px minmax(0, 1060px);
    align-items: center;
    height: 40px;
    margin-bottom: 0;
    position: relative;
    z-index: 50;
}

.panel-topbar-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 0 32px;
    min-width: 0;
    position: relative;
}

.panel-topbar-actions {
    display: contents;
}

.panel-topbar-tools .panel-lang-switch { order: 1; }
.panel-topbar-tools .panel-search { order: 2; }
.panel-topbar-tools .panel-topbar-right { order: 3; }
.panel-topbar-tools .panel-search-dropdown { order: 4; }

.panel-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(250, 252, 255, 0.1);
}

.panel-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(250, 252, 255, 0.55);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.panel-lang-btn:hover {
    color: rgba(250, 252, 255, 0.92);
}

.panel-lang-btn.is-active {
    color: #fff;
    background: rgba(249, 115, 22, 0.22);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.15);
}

.panel-lang-switch-guest,
.panel-lang-switch-legal {
    background: rgba(15, 23, 42, 0.72);
}

.panel-lang-switch-legal {
    margin-right: 8px;
}

.app-body {
    display: grid;
    grid-template-columns: 224px minmax(0, 1060px);
    align-items: start;
}

.panel-main {
    min-width: 0;
    padding: 0 32px;
}

.panel-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.panel-search {
    width: 350px;
    max-width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.panel-search input {
    width: 100%;
    height: 40px;
    background: var(--surface);
    border: none;
    border-radius: 24px;
    padding: 0 15px 0 44px;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    outline: none;
}

.panel-search input::placeholder { color: var(--text-muted); }
.panel-search input:focus { box-shadow: 0 0 0 2px rgba(122, 68, 191, 0.35); }

.panel-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.panel-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 32px;
    right: 32px;
    width: auto;
    max-height: 420px;
    overflow-y: auto;
    background: #1e2730;
    border: 1px solid rgba(49, 60, 71, 0.8);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 252, 255, 0.15) transparent;
    z-index: 1;
}

.panel-search-dropdown.is-open { display: block; }

.panel-search-dropdown.is-empty {
    padding: 16px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    min-height: 56px;
    color: inherit;
    text-decoration: none;
    transition: background 0.12s;
    border-top: 1px solid rgba(49, 60, 71, 0.45);
}

.search-result-item:first-child { border-top: none; }

.search-result-item:hover,
.search-result-item.is-active {
    background: rgba(49, 60, 71, 0.35);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1rem;
}

.search-result-icon.service-icon-photo .service-icon-img {
    width: 20px;
    height: 20px;
}

.search-result-id {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(49, 60, 71, 0.65);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.search-result-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text);
}

.search-result-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.search-result-chevron svg {
    width: 16px;
    height: 16px;
}

.favorites-block {
    margin-bottom: 28px;
}

.favorites-block-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
}

.favorites-block-star {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    flex-shrink: 0;
}

.favorites-list .service-row-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.favorites-list .search-result-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1rem;
}

.favorites-list .search-result-icon.service-icon-photo .service-icon-img {
    width: 20px;
    height: 20px;
}

.favorites-list .search-result-id {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(49, 60, 71, 0.65);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.favorites-block + .service-list-flat .group-item:first-child {
    border-top: 1px solid rgba(49, 60, 71, 0.5);
}

.panel-topup-link {
    display: inline-flex;
    text-decoration: none;
    flex-shrink: 0;
}

.panel-topup-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
}

.panel-topup-link:hover .panel-topup-btn {
    background: rgba(49, 60, 71, 0.25);
    border-color: rgba(49, 60, 71, 0.85);
}

.panel-topup-balance {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.panel-topup-divider {
    width: 1px;
    height: 20px;
    margin: 0 12px;
    background: rgba(49, 60, 71, 0.85);
    flex-shrink: 0;
}

.panel-topup-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.panel-btn-topup {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s;
}

.panel-btn-topup:hover {
    background: rgba(49, 60, 71, 0.25);
    color: var(--accent);
}

.panel-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px 16px 4px 4px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s;
}

.panel-discount:hover {
    background: rgba(49, 60, 71, 0.25);
    border-color: rgba(49, 60, 71, 0.85);
    color: inherit;
}

.discount-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.discount-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.discount-avatar-icon {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    overflow: hidden;
}

.discount-label { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.2; }
.discount-label strong { font-weight: 600; }

.discount-tiers-list .discount-tier-row {
    cursor: default;
}

.discount-tier-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1.25rem;
}

.discount-tier-percent {
    color: #f97316;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.35;
}

.discount-tier-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.discount-tier-threshold {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.discount-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid #f97316;
    border-radius: 8px;
    color: #f97316;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.discount-footnote {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

.panel-content {
    padding: 24px 0 40px;
    width: 100%;
    max-width: 996px;
}

.order-flow { max-width: 996px; width: 100%; }

.panel-page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px;
    color: var(--text);
}

/* Alerts */
.panel-alert {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 15px;
}
.panel-alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.panel-alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* Service list */
.service-list {
    background: transparent;
    border-radius: var(--radius);
    overflow: visible;
}

.service-list-flat { background: transparent; border: none; }

.service-list-flat .service-row {
    min-height: 81px;
    height: auto;
    padding: 16px 0;
    border-radius: 0;
    border-top: 1px solid rgba(49, 60, 71, 0.5);
    border-bottom: none;
    transition: border-color 250ms ease-in-out;
}

.service-list-flat .service-row:first-child { border-top: none; }

.service-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 0 0 12px;
    font-weight: 600;
    color: var(--text);
    font-size: 17px;
}

.service-list-header > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.service-list-header .price-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: 2px;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
    transition: background 0.12s;
    cursor: pointer;
}

.service-row:hover { color: var(--text); }
.service-list-flat .service-row:hover { background: transparent; }

.service-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: #fff;
    overflow: hidden;
}

.service-icon-round { border-radius: 50%; }

.service-icon-photo {
    background: rgba(40, 56, 71, 0.5) !important;
}

.service-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.service-row-body { flex: 1; min-width: 0; }
.service-row-title {
    font-weight: 500;
    font-size: 17px;
    line-height: 1.35;
    color: var(--text);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-row-desc { color: var(--text-muted); font-size: 14px; margin-top: 2px; line-height: 1.35; }
.service-row-meta { color: var(--text-muted); font-size: 14px; margin-top: 2px; font-weight: 400; }

.service-row-price {
    font-weight: 500;
    font-size: 17px;
    white-space: nowrap;
    margin-left: auto;
    padding-right: 8px;
    padding-top: 2px;
    flex-shrink: 0;
}

.service-row-chevron {
    width: 54px;
    height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.12s;
    margin-top: 2px;
}

.service-row-chevron svg { width: 16px; height: 16px; }

.service-row:hover .service-row-chevron { background: rgba(49, 60, 71, 0.3); }

.service-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    transition: color 0.15s, background 0.15s;
}
.service-back:hover { color: var(--text); background: rgba(49, 60, 71, 0.25); }

/* Card-style rows (categories) */
.service-list-cards {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list-cards .service-row {
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 16px 20px;
    min-height: 72px;
    height: auto;
    align-items: flex-start;
}

.service-list-cards .service-row:hover {
    background: rgba(49, 60, 71, 0.65);
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    font-weight: 400;
}
.empty-state p {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 17px;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state a:not(.panel-btn-primary) { color: var(--accent); }
.empty-state a.panel-btn-primary { color: #fff; }

/* Cards */
.panel-card {
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(49, 60, 71, 0.6);
    font-weight: 600;
    color: var(--text);
}

.panel-card-body { padding: 20px; }

.panel-stat {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
}
.panel-stat-label { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; font-weight: 400; }
.panel-stat-value { font-size: 28px; font-weight: 700; color: var(--text); }

/* Forms */
.panel-form .form-label { color: var(--text); font-size: 15px; font-weight: 500; }
.panel-form .form-control,
.panel-form .form-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
}
.panel-form .form-control:focus,
.panel-form .form-select:focus {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(122, 68, 191, 0.2);
}
.panel-form .form-control::placeholder { color: var(--text-muted); }
.panel-form .form-text { color: var(--text-muted); }

.order-field-hint {
    color: #f97316;
    font-size: 13px;
    font-weight: 400;
}

.order-field-hint.is-error {
    color: #ef4444;
}

.order-comments-input {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.panel-btn-primary {
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.15s;
}
.panel-btn-primary:hover { background: var(--accent-light); color: #fff; }
.panel-btn-primary:disabled { opacity: 0.5; }

.panel-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.panel-btn-outline svg { width: 18px; height: 18px; flex-shrink: 0; }
.panel-btn-outline:hover {
    background: rgba(122, 68, 191, 0.12);
    color: #e879f9;
    border-color: var(--accent-light);
}

.panel-desc-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.45;
    font-weight: 400;
}

.panel-price-box {
    background: rgba(122, 68, 191, 0.12);
    border: 1px solid rgba(122, 68, 191, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    color: #c4b5fd;
}

/* Order form */
.order-page { max-width: 996px; }

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.order-form-col { min-width: 0; }

.order-layout-single {
    grid-template-columns: minmax(0, 400px);
    max-width: 400px;
}

.order-info-col {
    min-width: 0;
    position: sticky;
    top: 24px;
}

.order-service-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.order-service-header .service-icon { width: 48px; height: 48px; min-width: 48px; font-size: 1.2rem; }
.order-service-header .service-icon-photo .service-icon-img { width: 28px; height: 28px; }

.order-service-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.order-service-header h1 {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    color: var(--text);
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-service-id {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(49, 60, 71, 0.65);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.order-service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.order-service-id-btn,
.order-service-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(49, 60, 71, 0.65);
    background: rgba(49, 60, 71, 0.45);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.order-service-id-btn svg,
.order-service-fav-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.order-service-id-btn:hover,
.order-service-fav-btn:hover {
    background: rgba(49, 60, 71, 0.65);
    color: var(--text);
}

.order-service-id-btn.is-copied {
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.35);
}

.order-service-fav-btn {
    width: 32px;
    padding: 0;
}

.order-service-fav-btn .fav-icon-filled { display: none; }

.order-service-fav-btn.is-active {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
}

.order-service-fav-btn.is-active .fav-icon-outline { display: none; }
.order-service-fav-btn.is-active .fav-icon-filled { display: block; }

.order-service-fav-btn:disabled { opacity: 0.6; cursor: wait; }

.qty-label { color: var(--text-muted); font-size: 14px; margin-bottom: 10px; font-weight: 400; }

.qty-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.qty-preset {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.qty-preset:hover { border-color: rgba(250, 252, 255, 0.2); }
.qty-preset.active {
    border-color: var(--accent);
    background: rgba(122, 68, 191, 0.2);
    color: var(--text);
}

.qty-preset.custom { color: var(--text-muted); }

.order-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 400;
}

.order-summary-row .label { color: var(--text-muted); }

.btn-order-submit {
    width: 100%;
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    transition: background 0.15s;
}

.btn-order-submit:hover { background: var(--accent-light); color: #fff; }
.btn-order-submit:disabled { opacity: 0.5; }

.order-service-desc-card {
    background: rgba(49, 60, 71, 0.35);
    border: 1px solid rgba(49, 60, 71, 0.55);
    border-radius: var(--radius);
    overflow: hidden;
}

.order-service-desc-title {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(49, 60, 71, 0.55);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.order-service-desc-body {
    padding: 16px 20px 20px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 252, 255, 0.15) transparent;
}

.order-service-desc-body p {
    margin: 0 0 14px;
    color: rgba(250, 252, 255, 0.62);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.order-service-desc-body p:last-child { margin-bottom: 0; }

/* Orders list (SMMWay flat rows) */
.orders-filters { margin-bottom: 20px; }

.orders-list { display: flex; flex-direction: column; }

.orders-list-flat .order-row {
    border-bottom: 1px solid rgba(49, 60, 71, 0.6);
    border-radius: 0;
    background: transparent;
    padding: 16px 0;
    min-height: 80px;
}

.orders-list-flat .order-row:first-child { padding-top: 0; }
.orders-list-flat .order-row:last-child { border-bottom: none; }
.orders-list-flat .order-row:hover { background: rgba(49, 60, 71, 0.15); }

.order-row-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.order-row-main:hover .order-row-title { color: #fff; }

.order-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    transition: background 0.12s;
}

.order-row-icon { width: 48px; height: 48px; font-size: 1.2rem; }

.order-row-body { flex: 1; min-width: 0; }
.order-row-title { font-weight: 500; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.order-row-link { color: #60a5fa; font-size: 14px; text-decoration: none; font-weight: 400; }
.order-row-link:hover { text-decoration: underline; }

.order-row-status { text-align: right; min-width: 140px; }
.order-row-progress { color: var(--text-muted); font-size: 14px; margin-top: 4px; font-weight: 400; }

.order-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-action-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.order-action-btn:hover { color: var(--text); background: rgba(49, 60, 71, 0.3); }
.order-action-danger:hover { color: #f87171; border-color: rgba(248,113,113,0.3); }

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}
.order-status-success { color: #4ade80; }
.order-status-primary { color: #60a5fa; }
.order-status-warning { color: #fbbf24; }
.order-status-info { color: #38bdf8; }
.order-status-secondary { color: var(--text-muted); }
.order-status-danger { color: #f87171; }

/* Order detail */
.order-detail-page { max-width: 996px; }
.order-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 24px;
    line-height: 1.25;
}
.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}
.order-detail-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 4px 20px;
    margin-bottom: 16px;
}
.order-detail-card-muted { padding-top: 8px; padding-bottom: 8px; }
.order-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(49, 60, 71, 0.55);
}
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    flex-shrink: 0;
}
.order-detail-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-align: right;
    min-width: 0;
    word-break: break-all;
}
.order-detail-link {
    color: #60a5fa;
    text-decoration: none;
}
.order-detail-link:hover { text-decoration: underline; }
.order-detail-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.order-detail-copy svg { width: 16px; height: 16px; color: var(--text-muted); }
.order-detail-copy.is-copied { color: var(--green); }
.order-repeat-btn { margin-bottom: 16px; }
.order-detail-aside { position: sticky; top: 88px; }
.order-detail-status-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}
.order-detail-status-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.order-detail-progress {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.order-detail-status-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}
.order-detail-status-badge { display: flex; justify-content: center; }
.order-detail-refund-note {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
}

@media (max-width: 860px) {
    .order-detail-layout { grid-template-columns: 1fr; }
    .order-detail-aside { position: static; }
}

/* Profile */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.profile-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(49, 60, 71, 0.6);
    padding-bottom: 12px;
}

.profile-tab {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -13px;
    font-weight: 500;
}

.profile-tab.active {
    color: var(--text);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.profile-tab:hover { color: var(--text); }

.input-copy-wrap { position: relative; }
.input-copy-wrap .form-control { padding-right: 44px; }
.input-copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}
.input-copy-btn:hover { color: var(--text); }

.referral-link-input {
    cursor: pointer;
}

.referral-link-input.is-copied {
    border-color: rgba(74, 222, 128, 0.55);
    color: #4ade80;
}

.panel-btn-save {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.15s;
}
.panel-btn-save:hover { background: rgba(49, 60, 71, 0.65); color: var(--text); }

.profile-stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 8px;
}

.profile-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.profile-stat-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; font-weight: 400; }
.profile-stat-balance .profile-stat-value { color: var(--accent); }

.balance-history { display: flex; flex-direction: column; }
.balance-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(49, 60, 71, 0.55);
}
.balance-history-row:first-child { border-top: none; padding-top: 0; }
.balance-history-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.balance-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}
.balance-history-icon.is-plus {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}
.balance-history-icon.is-minus {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}
.balance-history-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.balance-history-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}
.balance-history-right {
    text-align: right;
    flex-shrink: 0;
    max-width: 50%;
}
.balance-history-action {
    font-size: 16px;
    font-weight: 500;
    color: #22c55e;
    line-height: 1.3;
}
.balance-history-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.balance-history-ref:hover { color: var(--text); }
.balance-history-ref-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(122, 68, 191, 0.2);
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.balance-history-ref-icon svg { width: 14px; height: 14px; }
.profile-layout-history { grid-template-columns: 1fr; max-width: 900px; }

.security-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.security-subtitle {
    font-size: 13px;
    color: rgba(250, 252, 255, 0.62);
    line-height: 1.45;
}

.session-revoke-all-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.session-revoke-all-btn:hover {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.6);
    color: #fecaca;
}

.session-list { display: flex; flex-direction: column; gap: 12px; }

.session-item {
    border-radius: 14px;
    background: #243038;
    border: 1px solid rgba(49, 60, 71, 0.85);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.session-item-current {
    border-color: rgba(147, 51, 234, 0.55);
    background: linear-gradient(135deg, rgba(122, 68, 191, 0.14) 0%, #243038 55%);
    box-shadow: 0 0 0 1px rgba(122, 68, 191, 0.12);
}

.session-item[open] {
    border-color: rgba(147, 51, 234, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.session-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}

.session-summary:hover { background: rgba(255, 255, 255, 0.02); }

.session-summary::-webkit-details-marker { display: none; }

.session-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(122, 68, 191, 0.18);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-item-current .session-summary-icon {
    background: rgba(122, 68, 191, 0.28);
    color: #e9d5ff;
}

.session-summary-icon svg { width: 20px; height: 20px; }

.session-summary-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.session-summary-meta {
    font-size: 13px;
    color: rgba(250, 252, 255, 0.58);
}

.session-chevron-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(49, 60, 71, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(250, 252, 255, 0.65);
    border-bottom: 2px solid rgba(250, 252, 255, 0.65);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -2px;
}

.session-item[open] .session-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.session-device {
    font-weight: 600;
    font-size: 15px;
    color: #fafcff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.session-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: rgba(122, 68, 191, 0.35);
    color: #e9d5ff;
    border: 1px solid rgba(192, 132, 252, 0.35);
}

.session-details {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(49, 60, 71, 0.7);
    background: rgba(23, 31, 38, 0.45);
}

.session-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
}

.session-detail-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(36, 48, 56, 0.75);
    border: 1px solid rgba(49, 60, 71, 0.65);
}

.session-detail-cell-wide { grid-column: 1 / -1; }

.session-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(250, 252, 255, 0.52);
}

.session-detail-value {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 252, 255, 0.92);
    line-height: 1.35;
}

.session-detail-primary {
    color: #fafcff;
    font-weight: 600;
}

.session-detail-secondary {
    font-size: 12px;
    font-weight: 400;
    color: rgba(250, 252, 255, 0.48);
}

.session-code {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #d8b4fe;
    background: rgba(122, 68, 191, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}

.session-code-mono {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
    max-width: 100%;
}

.session-ua-block {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(36, 48, 56, 0.75);
    border: 1px solid rgba(49, 60, 71, 0.65);
}

.session-ua-block .session-detail-label { display: block; margin-bottom: 8px; }

.session-ua {
    margin: 0;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 11px;
    line-height: 1.55;
    color: rgba(250, 252, 255, 0.62);
    word-break: break-all;
}

.session-revoke-form {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(49, 60, 71, 0.55);
}

.session-revoke-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.session-revoke-btn:hover {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.65);
    color: #fecaca;
}

.panel-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    min-height: auto;
}

@media (max-width: 640px) {
    .session-detail-grid { grid-template-columns: 1fr; }
    .session-detail-cell-wide { grid-column: auto; }
    .session-revoke-all-btn { width: 100%; }
}

/* 2FA */
.twofa-card { margin-bottom: 16px; }

.twofa-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.twofa-status-on {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.twofa-status-off {
    background: rgba(250, 252, 255, 0.06);
    color: rgba(250, 252, 255, 0.55);
    border: 1px solid rgba(49, 60, 71, 0.65);
}

.twofa-desc {
    margin: 16px 0 0;
    font-size: 14px;
    color: rgba(250, 252, 255, 0.62);
}

.twofa-enable-btn {
    margin-top: 16px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.55);
    background: rgba(122, 68, 191, 0.2);
    color: #e9d5ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.twofa-enable-btn:hover {
    background: rgba(122, 68, 191, 0.32);
    border-color: rgba(192, 132, 252, 0.55);
}

.twofa-setup { margin-top: 16px; }

.twofa-setup-panel {
    margin-top: 14px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(23, 31, 38, 0.55);
    border: 1px solid rgba(49, 60, 71, 0.75);
}

.twofa-setup-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}

.twofa-qr-wrap {
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 2px solid rgba(192, 132, 252, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    line-height: 0;
}

.twofa-qr-img {
    display: block;
    width: 196px;
    height: 196px;
    border-radius: 6px;
}

.twofa-setup-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.twofa-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(250, 252, 255, 0.72);
}

.twofa-secret-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(36, 48, 56, 0.9);
    border: 1px solid rgba(147, 51, 234, 0.45);
}

.twofa-secret-key {
    display: block;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: #e9d5ff;
    word-break: break-all;
}

.twofa-copy-btn {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(147, 51, 234, 0.45);
    background: rgba(122, 68, 191, 0.18);
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.twofa-copy-btn:hover {
    background: rgba(122, 68, 191, 0.3);
}

.twofa-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(250, 252, 255, 0.68);
}

.twofa-confirm-form {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(49, 60, 71, 0.65);
}

.twofa-code-input {
    max-width: 180px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
    font-size: 18px;
    text-align: center;
}

.twofa-cancel-form { margin-top: 12px; }

.twofa-code-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.twofa-code-row .form-control {
    max-width: 160px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.twofa-cancel-link {
    background: none;
    border: none;
    padding: 0;
    color: rgba(250, 252, 255, 0.48);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.twofa-cancel-link:hover { color: rgba(250, 252, 255, 0.72); }

.twofa-backup-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: rgba(250, 252, 255, 0.88);
}

.twofa-backup-alert p { font-size: 13px; color: rgba(250, 252, 255, 0.62); }

.twofa-backup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.twofa-backup-code {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(23, 31, 38, 0.65);
    border: 1px solid rgba(49, 60, 71, 0.65);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    color: #fde68a;
    text-align: center;
}

.twofa-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.twofa-action-details {
    border-radius: 10px;
    background: rgba(36, 48, 56, 0.55);
    border: 1px solid rgba(49, 60, 71, 0.65);
    overflow: hidden;
}

.twofa-action-details summary {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 252, 255, 0.82);
    list-style: none;
}

.twofa-action-details summary::-webkit-details-marker { display: none; }

.twofa-action-details[open] summary {
    border-bottom: 1px solid rgba(49, 60, 71, 0.55);
}

.twofa-inline-form {
    padding: 14px;
}

.twofa-action-danger summary { color: #fca5a5; }

@media (max-width: 640px) {
    .twofa-setup-grid { grid-template-columns: 1fr; justify-items: center; }
    .twofa-setup-info { width: 100%; }
    .twofa-backup-grid { grid-template-columns: 1fr; }
    .twofa-code-row .form-control { max-width: none; flex: 1; }
    .twofa-code-input { max-width: none; width: 100%; }
}

@media (max-width: 640px) {
    .balance-history-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .balance-history-right { text-align: left; max-width: none; }
}

/* Filter pills (SMMWay) */
.filter-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-pills a {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.15s;
}
.filter-pills a:hover { color: var(--text); }
.filter-pills a.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

@media (max-width: 1320px) {
    .app-wrap { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 960px) {
    .app-wrap {
        padding: 12px 16px 0;
        max-width: 100%;
        min-width: 0;
    }

    .panel-topbar,
    .app-body {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .panel-topbar-brand { display: none; }

    .panel-topbar {
        height: auto;
        margin-bottom: 10px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg);
        padding-top: 4px;
        max-width: 100%;
    }

    .panel-topbar-tools {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0;
        width: 100%;
        min-height: 0;
    }

    .panel-topbar-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        order: 1;
    }

    .panel-topbar-actions .panel-lang-switch {
        flex-shrink: 0;
    }

    .panel-topbar-actions .panel-topbar-right {
        flex-shrink: 0;
        margin-left: auto;
    }

    .panel-topbar-tools .panel-search {
        width: 100%;
        order: 2;
    }

    .panel-topbar-tools .panel-search-dropdown {
        order: 3;
    }

    .panel-topbar-tools .panel-topbar-right {
        gap: 8px;
    }

    .panel-search-dropdown {
        left: 0;
        right: 0;
        z-index: 120;
    }

    .panel-sidebar {
        width: 100%;
        position: static;
        display: block;
        padding: 0 0 10px;
        margin: 0 0 6px;
        border-bottom: 1px solid rgba(49, 60, 71, 0.45);
        max-width: none;
        min-width: 0;
        overflow: visible;
    }

    .panel-sidebar-brand {
        display: none;
    }

    .public-header-left {
        display: none;
    }

    .public-header-inner {
        justify-content: flex-end;
    }

    .panel-nav-scroll {
        display: block;
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        margin-inline: -16px;
        padding-inline: 16px;
        scroll-padding-inline: 16px;
    }

    .panel-nav-scroll::before,
    .panel-nav-scroll::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 2px;
        width: 32px;
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.15s ease;
    }

    .panel-nav-scroll::before {
        left: 0;
        background: linear-gradient(to right, var(--bg) 15%, transparent);
    }

    .panel-nav-scroll::after {
        right: 0;
        background: linear-gradient(to left, var(--bg) 15%, transparent);
    }

    .panel-nav-scroll.can-scroll::after {
        opacity: 1;
    }

    .panel-nav-scroll.can-scroll.is-scrolled::before {
        opacity: 1;
    }

    .panel-nav-scroll.can-scroll.is-at-end::after {
        opacity: 0;
    }

    .panel-nav-scroll::-webkit-scrollbar { display: none; }

    .panel-nav {
        display: inline-flex;
        flex: none;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        overflow: visible;
        gap: 6px;
        width: max-content;
        padding: 0 0 2px;
    }

    .panel-nav::after {
        content: '';
        flex: 0 0 16px;
        height: 1px;
    }

    .panel-nav::-webkit-scrollbar { display: none; }

    .panel-nav a {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 14px;
        gap: 8px;
    }

    .panel-nav-divider { display: none; }

    .panel-main { padding: 0; max-width: 100%; min-width: 0; }
    .panel-content { padding: 12px 2px 48px; max-width: none; }
    .profile-layout { grid-template-columns: 1fr; }

    .profile-aside {
        order: -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-stat-card {
        margin-bottom: 0;
    }

    .order-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .order-info-col { position: static; }
    .order-service-desc-body { max-height: none; }
}

@media (max-width: 640px) {
    .panel-topbar-tools .panel-lang-switch-topbar .panel-lang-btn {
        font-size: 0;
        padding: 0 9px;
        min-width: 34px;
    }

    .panel-topbar-tools .panel-lang-switch-topbar .panel-lang-btn::before {
        content: attr(lang);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .panel-topup-btn {
        height: 36px;
        padding: 0 12px;
    }

    .panel-topup-balance {
        font-size: 14px;
    }

    .panel-topup-label,
    .panel-topup-divider {
        display: none;
    }

    .panel-discount {
        padding: 4px;
        border-radius: 50%;
        border-color: transparent;
        background: transparent;
    }

    .panel-discount .discount-label {
        display: none;
    }

    .panel-nav a {
        padding: 7px 12px;
        font-size: 13px;
    }

    .panel-nav a .nav-icon {
        width: 18px;
        height: 18px;
    }

    .panel-search-dropdown {
        max-height: min(420px, 55vh);
        border-radius: 14px;
    }

    .search-result-item {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 6px 10px;
        padding: 12px 14px;
        min-height: 0;
        align-items: start;
    }

    .search-result-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 36px;
        height: 36px;
        min-width: 36px;
        align-self: center;
    }

    .search-result-body {
        grid-column: 2;
        grid-row: 1;
    }

    .search-result-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.4;
    }

    .search-result-id {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        font-size: 11px;
        padding: 2px 6px;
    }

    .search-result-price {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        font-size: 14px;
        font-weight: 600;
    }

    .search-result-chevron {
        display: none;
    }

    .panel-body .legal-site-footer {
        padding: 20px 12px 32px;
    }

    .panel-body:has(#cookieBanner:not([hidden])) {
        padding-bottom: 88px;
    }

    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
    }

    .profile-tabs::-webkit-scrollbar { display: none; }

    .profile-tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 14px;
        padding-bottom: 10px;
        margin-bottom: -13px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-layout-history {
        max-width: none;
    }

    .profile-main {
        min-width: 0;
    }

    .profile-aside {
        order: -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-stat-card {
        margin-bottom: 0;
        padding: 14px 10px;
        text-align: center;
    }

    .profile-stat-value {
        font-size: 1.15rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .profile-stat-label {
        font-size: 12px;
        margin-top: 6px;
        line-height: 1.3;
    }

    .profile-tabs {
        gap: 14px;
        margin-bottom: 16px;
        margin-inline: -2px;
        padding-bottom: 10px;
        scroll-padding-inline: 2px;
    }

    .panel-form .form-control {
        font-size: 16px;
    }

    .panel-form h5 {
        font-size: 1rem;
    }

    .panel-btn-save,
    .twofa-enable-btn {
        width: 100%;
    }

    .input-copy-wrap .form-control {
        padding-right: 44px;
        font-size: 15px;
    }

    .input-copy-btn {
        width: 40px;
        height: 40px;
        right: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-layout .panel-card .panel-card-body {
        padding: 16px;
    }

    .balance-history-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 0;
    }

    .balance-history-left {
        gap: 12px;
    }

    .balance-history-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .balance-history-amount {
        font-size: 1.25rem;
    }

    .balance-history-date {
        font-size: 13px;
    }

    .balance-history-right {
        text-align: left;
        max-width: none;
        width: 100%;
        padding-left: 48px;
    }

    .balance-history-action {
        font-size: 14px;
    }

    .balance-history-ref {
        font-size: 14px;
        margin-top: 4px;
        word-break: break-all;
    }

    .security-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .security-header .twofa-status {
        align-self: flex-start;
    }

    .session-revoke-all-btn {
        width: 100%;
    }

    .session-summary {
        padding: 14px;
        gap: 10px;
    }

    .session-summary-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .session-summary-icon svg {
        width: 18px;
        height: 18px;
    }

    .session-device {
        font-size: 14px;
    }

    .session-summary-meta {
        font-size: 12px;
        line-height: 1.4;
        word-break: break-word;
    }

    .session-details {
        padding: 0 14px 14px;
    }

    .session-detail-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 12px;
    }

    .session-detail-cell-wide {
        grid-column: auto;
    }

    .session-detail-cell {
        padding: 10px 12px;
    }

    .session-revoke-btn {
        width: 100%;
    }

    .twofa-setup-panel {
        padding: 14px;
    }

    .twofa-setup-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }

    .twofa-setup-info {
        width: 100%;
    }

    .twofa-qr-wrap {
        padding: 12px;
    }

    .twofa-qr-img {
        width: 168px;
        height: 168px;
    }

    .twofa-code-row {
        flex-direction: column;
        align-items: stretch;
    }

    .twofa-code-row .form-control,
    .twofa-code-input {
        max-width: none;
        width: 100%;
    }

    .twofa-code-row .panel-btn-save,
    .twofa-code-row .panel-btn-outline,
    .twofa-code-row .session-revoke-btn {
        width: 100%;
    }

    .twofa-backup-grid {
        grid-template-columns: 1fr;
    }

    .twofa-secret-key {
        font-size: 13px;
    }

    .twofa-copy-btn {
        width: 100%;
        text-align: center;
    }

    .panel-page-title {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .filter-pills,
    .orders-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        margin-inline: -2px;
        padding-bottom: 4px;
    }

    .filter-pills::-webkit-scrollbar,
    .orders-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-pills a {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
    }

    .orders-list-flat .order-row {
        min-height: 0;
        padding: 14px 0;
    }

    .order-row {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 6px 10px;
        align-items: start;
        padding: 14px 0;
    }

    .order-row-main {
        display: contents;
    }

    .order-row-icon {
        grid-column: 1;
        grid-row: 1;
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .order-row-body {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .order-row-title {
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 4px;
        overflow-wrap: anywhere;
    }

    .order-row-link {
        display: block;
        font-size: 13px;
        line-height: 1.4;
        word-break: break-all;
    }

    .order-row-status {
        grid-column: 1 / 3;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
        width: auto;
        text-align: left;
        padding-top: 8px;
        margin-top: 2px;
        border-top: 1px solid rgba(49, 60, 71, 0.45);
    }

    .order-row-progress {
        margin-top: 0;
        font-size: 13px;
        flex-shrink: 0;
    }

    .order-row-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: start;
        flex-direction: column;
        gap: 4px;
    }

    .order-row-actions .service-row-chevron {
        width: 40px;
        height: 28px;
    }

    .order-action-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .order-detail-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .order-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0;
    }

    .order-detail-value {
        text-align: left;
        word-break: break-all;
        font-size: 15px;
    }

    .order-detail-card {
        padding-inline: 14px;
    }

    .service-row {
        gap: 12px;
        padding: 14px 0;
    }

    .service-row-icon,
    .service-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .service-row-title {
        font-size: 15px;
    }

    .service-row-chevron {
        width: 44px;
        height: 28px;
    }

    .service-list-header {
        font-size: 15px;
        padding-bottom: 10px;
    }

    .service-back {
        margin-bottom: 14px;
        font-size: 14px;
    }

    .pay-title {
        font-size: 1.35rem;
    }

    .pay-method-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pay-amount-input {
        font-size: 20px;
        height: 48px;
    }

    .panel-stat {
        padding: 16px;
    }

    .panel-stat-value {
        font-size: 1.5rem;
    }

    .panel-card-body {
        padding: 16px;
    }

    .panel-card-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .discount-tier-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .discount-tier-right {
        width: 100%;
        margin-top: 4px;
    }

    .discount-tier-threshold {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .profile-aside {
        grid-template-columns: 1fr;
    }

    .profile-stat-card {
        text-align: left;
        padding: 14px 16px;
    }
}

/* Pay page */
.pay-page { max-width: 720px; }
.pay-promo-page { max-width: 480px; }
.pay-hub-balance {
    color: rgba(250, 252, 255, 0.72);
    margin: -8px 0 12px;
    font-size: 15px;
}

.pay-hub-legal-note {
    margin: 0 0 24px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(250, 252, 255, 0.1);
    background: rgba(49, 60, 71, 0.45);
    color: rgba(250, 252, 255, 0.68);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.pay-hub-legal-note a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.pay-hub-legal-note a:hover {
    color: #c084fc;
}
.pay-hub-row .service-row-chevron { margin-left: auto; }
.pay-hub-row .pay-hub-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(49, 60, 71, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.service-row-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.pay-recent-hub { margin-top: 8px; }
.pay-method-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.pay-method-header-icon { width: 56px; height: 56px; font-size: 26px; }
.pay-layout-single { grid-template-columns: 1fr 280px; }
.pay-promo-form { max-width: 400px; }
.pay-promo-form .btn-order-submit { width: 100%; }
.pay-title { font-size: 28px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.pay-subtitle { color: var(--text-muted); margin: 0; font-size: 15px; }
.pay-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.pay-amount-wrap { position: relative; margin-bottom: 12px; }
.pay-amount-input { font-size: 24px; font-weight: 700; padding-right: 40px; height: 56px; }
.pay-amount-currency { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; }
.pay-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pay-preset-rub {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}
.pay-amount-note { margin-top: -4px; }
.pay-preset {
    border: 1px solid var(--border);
    background: rgba(49, 60, 71, 0.35);
    color: var(--text);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pay-preset:hover, .pay-preset.active { border-color: var(--accent); background: rgba(122, 68, 191, 0.15); }
.pay-promo-row { display: flex; gap: 8px; }
.pay-promo-row .form-control { flex: 1; }
.pay-promo-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: var(--radius-pill);
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.pay-promo-btn:hover { border-color: var(--accent); }
.pay-promo-result { margin-top: 8px; font-size: 14px; }
.pay-promo-result.is-ok { color: var(--green); }
.pay-promo-result.is-error { color: #ef4444; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pay-method { cursor: pointer; margin: 0; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(49, 60, 71, 0.35);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 100%;
}
.pay-method input:checked + .pay-method-card { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(122, 68, 191, 0.25); }
.pay-method-icon { font-size: 24px; }
.pay-method-name { font-weight: 600; font-size: 15px; }
.pay-method-limits { font-size: 12px; color: var(--text-muted); }
.pay-summary-card {
    background: rgba(49, 60, 71, 0.45);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 24px;
}
.pay-summary-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 16px; }
.pay-summary-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.pay-summary-row strong { font-weight: 700; }
.pay-summary-total { padding-top: 10px; border-top: 1px solid var(--border); margin-top: 6px; font-size: 16px; }
.pay-summary-bonus strong { color: var(--green); }
.pay-submit { width: 100%; margin-top: 16px; }
.pay-recent { margin-top: 20px; }
.pay-recent-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.pay-recent-item {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 10px 0; border-bottom: 1px solid rgba(49, 60, 71, 0.6);
    color: var(--text); text-decoration: none; font-size: 14px;
}
.pay-recent-item:hover { color: #fff; }
.pay-status-badge, .pay-recent-status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill); }
.pay-status-ok { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.pay-status-pending { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.pay-status-muted { background: rgba(250, 252, 255, 0.08); color: var(--text-muted); }
.pay-status-error { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.pay-status-page { max-width: 560px; }
.pay-status-card { padding: 24px; }
.pay-status-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pay-status-header h1 { font-size: 22px; margin: 0; }
.pay-status-grid { display: grid; gap: 10px; margin-bottom: 20px; }
.pay-status-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pay-instructions { background: rgba(23, 31, 38, 0.6); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.pay-instructions-title { font-weight: 700; margin-bottom: 8px; }
.pay-instructions-body, .pay-instructions-details { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.pay-instructions-details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 600; color: var(--text); }
.pay-status-note { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.pay-cancel-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: var(--radius-pill); padding: 8px 16px; cursor: pointer; font-size: 14px; }
.pay-cancel-btn:hover { border-color: #ef4444; color: #ef4444; }

.pay-promo-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pay-promo-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.pay-balance-promo { border: 1px solid var(--border); border-radius: var(--radius); }
.pay-balance-promo-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pay-balance-promo-lead { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }

.order-promo-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
}
.order-promo-toggle:hover, .order-promo-toggle.is-open {
    border-color: var(--accent);
    color: var(--text);
}
.order-promo-wrap .pay-promo-row { margin-top: 8px; }

@media (max-width: 768px) {
    .pay-layout { grid-template-columns: 1fr; }
    .pay-summary-card { position: static; }
}

/* Legal / 152-FZ */
.legal-body { min-height: 100vh; }

.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 13px;
}

.legal-nav a {
    color: rgba(250, 252, 255, 0.62);
    text-decoration: none;
}

.legal-nav a:hover { color: var(--accent-light); }

.legal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fafcff;
    margin-bottom: 12px;
}

.legal-meta {
    font-size: 13px;
    color: rgba(250, 252, 255, 0.52);
    margin-bottom: 24px;
}

.legal-prose {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(250, 252, 255, 0.82);
}

.legal-prose h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fafcff;
    margin: 28px 0 12px;
}

.legal-prose p { margin-bottom: 12px; }

.legal-prose ul {
    margin: 0 0 14px;
    padding-left: 1.25rem;
}

.legal-prose li { margin-bottom: 6px; }

.legal-prose a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-contact-primary {
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 600;
}

.legal-contact-primary a {
    color: #229ED9;
    text-decoration: none;
}

.legal-contact-primary a:hover {
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0 16px;
}

.legal-table th,
.legal-table td {
    border: 1px solid rgba(49, 60, 71, 0.75);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: rgba(36, 48, 56, 0.75);
    color: rgba(250, 252, 255, 0.72);
    font-weight: 600;
}

.legal-dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 16px;
    margin: 0;
}

.legal-dl dt {
    color: rgba(250, 252, 255, 0.55);
    margin: 0;
}

.legal-dl dd { margin: 0; color: rgba(250, 252, 255, 0.88); }

.legal-note {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.28);
    font-size: 13px;
    color: rgba(250, 252, 255, 0.72);
}

.legal-note-muted {
    background: rgba(49, 60, 71, 0.35);
    border-color: rgba(49, 60, 71, 0.65);
    color: rgba(250, 252, 255, 0.62);
}

.legal-disclaimer-box {
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(49, 60, 71, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.legal-disclaimer-box ul {
    margin: 10px 0 0;
    padding-left: 1.2rem;
}

.legal-disclaimer-box li { margin-bottom: 8px; }

.legal-disclaimer-meta {
    margin: 10px 0 0;
    font-size: 11px;
    color: rgba(250, 252, 255, 0.42);
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
}

.auth-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-page-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(122, 68, 191, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 68, 191, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 18%, black 10%, transparent 78%);
}

.auth-page-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 68, 191, 0.34) 0%, transparent 68%);
    filter: blur(80px);
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding:
        max(16px, env(safe-area-inset-top, 0px))
        max(20px, env(safe-area-inset-right, 0px))
        max(20px, env(safe-area-inset-bottom, 0px))
        max(20px, env(safe-area-inset-left, 0px));
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 20px;
}

.auth-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    line-height: 1;
}

.auth-brand:hover {
    color: #e9d5ff;
}

.auth-topbar .panel-lang-switch-guest {
    flex-shrink: 0;
}

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 24px;
}

.auth-alert {
    margin-bottom: 14px;
}

.auth-card {
    background: rgba(36, 48, 56, 0.82);
    border: 1px solid rgba(147, 51, 234, 0.22);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.auth-card-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(250, 252, 255, 0.58);
}

.auth-form .form-label {
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-form .form-control {
    min-height: 48px;
    padding: 12px 14px;
    background: rgba(23, 31, 38, 0.72);
    border-color: rgba(49, 60, 71, 0.85);
}

.auth-form .form-control:focus {
    background: rgba(23, 31, 38, 0.92);
    border-color: rgba(147, 51, 234, 0.65);
    box-shadow: 0 0 0 3px rgba(122, 68, 191, 0.18);
}

.auth-form .legal-consent-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(23, 31, 38, 0.55);
    border: 1px solid rgba(49, 60, 71, 0.65);
}

.auth-code-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    text-align: center;
    font-size: 20px !important;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #7a44bf 0%, #9333ea 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(122, 68, 191, 0.35);
    transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-submit:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(122, 68, 191, 0.42);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-switch {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(49, 60, 71, 0.65);
    text-align: center;
    font-size: 14px;
    color: rgba(250, 252, 255, 0.58);
    line-height: 1.5;
}

.auth-switch a {
    color: #c084fc;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #e9d5ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: none;
}

.auth-footer .legal-footer-links {
    margin-bottom: 8px;
}

.auth-page:has(#cookieBanner:not([hidden])) .auth-shell {
    padding-bottom: max(88px, calc(20px + env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 640px) {
    .auth-shell {
        max-width: none;
        padding-inline: 16px;
    }

    .auth-card {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .auth-topbar {
        padding-bottom: 16px;
    }

    .auth-brand {
        font-size: 18px;
    }

    .auth-main {
        justify-content: flex-start;
        padding-top: 12px;
    }
}

.legal-site-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(49, 60, 71, 0.55);
    text-align: center;
}

.public-body .legal-site-footer {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 20px 40px;
}

.panel-body .legal-site-footer {
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 32px 40px;
}

.public-body:has(#cookieBanner:not([hidden])) {
    padding-bottom: 72px;
}

.panel-body:has(#cookieBanner:not([hidden])) {
    padding-bottom: 72px;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 10px;
    font-size: 12px;
}

.legal-footer-links a {
    color: rgba(250, 252, 255, 0.55);
    text-decoration: none;
}

.legal-footer-links a:hover { color: var(--accent-light); }

.legal-footer-copy {
    margin: 0;
    font-size: 11px;
    color: rgba(250, 252, 255, 0.38);
    line-height: 1.5;
}

.legal-consent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(250, 252, 255, 0.72);
    cursor: pointer;
}

.legal-consent-item input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.legal-consent-item a {
    color: var(--accent-light);
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(23, 31, 38, 0.96);
    border-top: 1px solid rgba(49, 60, 71, 0.85);
    backdrop-filter: blur(8px);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(250, 252, 255, 0.72);
    flex: 1;
    min-width: 240px;
}

.cookie-banner-text a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-banner-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.55);
    background: rgba(122, 68, 191, 0.25);
    color: #e9d5ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    background: rgba(122, 68, 191, 0.38);
}

@media (max-width: 640px) {
    .legal-dl { grid-template-columns: 1fr; }
    .legal-header { flex-direction: column; align-items: flex-start; }
}

/* Public / guest catalog */
.public-body {
    background: var(--bg);
    min-height: 100vh;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(49, 60, 71, 0.65);
    background: rgba(23, 31, 38, 0.92);
    backdrop-filter: blur(12px);
}

.public-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.public-header-center {
    flex: 1;
    position: relative;
    min-width: 0;
}

.public-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.public-header-right .panel-topbar-right {
    gap: 10px;
}

.public-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.public-nav-link:hover {
    color: var(--accent-light);
}

.public-search {
    max-width: 420px;
    margin: 0 auto;
}

.public-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.public-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.public-btn-lg {
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 14px;
}

.public-btn-primary {
    background: linear-gradient(135deg, #7a44bf, #9333ea);
    color: #fff;
    border-color: rgba(147, 51, 234, 0.5);
}

.public-btn-primary:hover {
    color: #fff;
    filter: brightness(1.08);
}

.public-btn-ghost {
    background: rgba(49, 60, 71, 0.45);
    color: var(--text);
    border-color: rgba(49, 60, 71, 0.85);
}

.public-btn-ghost:hover {
    color: #fff;
    background: rgba(49, 60, 71, 0.75);
}

.public-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.public-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.public-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.public-main:has(.home-page) {
    max-width: none;
    padding: 0;
}

.home-page {
    overflow: hidden;
}

.home-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.home-hero {
    position: relative;
    padding: 88px 0 64px;
    overflow: hidden;
    min-height: 460px;
}

.home-hero-inner {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    pointer-events: none;
}

.home-hero-inner a,
.home-hero-inner .home-btn {
    pointer-events: auto;
}

.home-hero-deco-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.home-hero-deco {
    position: absolute;
    animation: home-deco-drift ease-in-out infinite;
}

.home-hero-deco-1 { top: 12%; left: 6%; animation-duration: 8s; animation-delay: 0s; opacity: 0.55; }
.home-hero-deco-2 { top: 16%; right: 7%; animation-duration: 10s; animation-delay: -2s; opacity: 0.5; }
.home-hero-deco-3 { top: 46%; left: 4%; animation-duration: 11s; animation-delay: -4s; opacity: 0.42; }
.home-hero-deco-4 { top: 42%; right: 5%; animation-duration: 9s; animation-delay: -1s; opacity: 0.48; }
.home-hero-deco-5 { bottom: 20%; left: 8%; animation-duration: 12s; animation-delay: -3s; opacity: 0.4; }
.home-hero-deco-6 { bottom: 16%; right: 9%; animation-duration: 8.5s; animation-delay: -5s; opacity: 0.45; }

.home-hero-deco-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(49, 60, 71, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.home-hero-deco-icon .service-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 18px !important;
}

.home-hero-deco-icon .service-icon-img {
    width: 22px !important;
    height: 22px !important;
}

@keyframes home-deco-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(8px, -12px) rotate(3deg); }
    66% { transform: translate(-5px, 7px) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-deco {
        animation: none;
    }
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(122, 68, 191, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 68, 191, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 75%);
}

.home-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.home-glow-a {
    width: 560px;
    height: 560px;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(122, 68, 191, 0.45) 0%, transparent 68%);
}

.home-glow-b {
    display: none;
}

.home-eyebrow {
    display: inline-block;
    padding: 7px 16px;
    margin: 0 0 22px;
    border-radius: var(--radius-pill);
    background: rgba(122, 68, 191, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.35);
    color: #e9d5ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.home-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
    color: #fff;
}

.home-hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    color: rgba(250, 252, 255, 0.52);
    margin: 0 auto 32px;
    max-width: 520px;
    line-height: 1.6;
    font-weight: 400;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s, filter 0.15s, background 0.15s, border-color 0.15s;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn-primary {
    background: linear-gradient(135deg, #7a44bf 0%, #9333ea 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(122, 68, 191, 0.4);
}

.home-btn-primary:hover {
    color: #fff;
    filter: brightness(1.08);
}

.home-btn-outline {
    background: rgba(250, 252, 255, 0.04);
    color: rgba(250, 252, 255, 0.92);
    border-color: rgba(250, 252, 255, 0.18);
}

.home-btn-outline:hover {
    color: #fff;
    background: rgba(250, 252, 255, 0.08);
    border-color: rgba(250, 252, 255, 0.28);
}

.home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(49, 60, 71, 0.55);
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

.home-hero-stats strong {
    color: #fff;
    font-weight: 700;
}

/* Timeline */
.home-flow {
    padding: 40px 0 48px;
}

.home-flow-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 36px;
    border-radius: 20px;
    background: rgba(49, 60, 71, 0.12);
    border: 1px solid rgba(49, 60, 71, 0.45);
}

.home-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.home-timeline::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 68, 191, 0.4) 15%, rgba(122, 68, 191, 0.4) 85%, transparent);
    pointer-events: none;
}

.home-timeline-item {
    position: relative;
    text-align: center;
    padding: 0 12px;
}

.home-timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(147, 51, 234, 0.4);
    color: #e9d5ff;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.home-timeline-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.home-timeline-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
}

.catalog-service-page {
    max-width: 900px;
}

.catalog-service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
    align-items: start;
}

.catalog-service-layout--solo {
    grid-template-columns: minmax(0, 380px);
    max-width: 380px;
}

.catalog-service-aside {
    position: sticky;
    top: 88px;
}

.catalog-service-order {
    background: linear-gradient(165deg, rgba(55, 65, 78, 0.92) 0%, rgba(35, 42, 52, 0.96) 100%);
    border: 1px solid rgba(122, 68, 191, 0.28);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.catalog-price-block {
    margin-bottom: 14px;
}

.catalog-price-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-price-value {
    font-size: clamp(1.75rem, 4vw, 2.125rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.catalog-service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(250, 252, 255, 0.08);
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    background: rgba(250, 252, 255, 0.06);
    border: 1px solid rgba(250, 252, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: rgba(250, 252, 255, 0.78);
}

.catalog-guest-note {
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: rgba(122, 68, 191, 0.12);
    border: 1px solid rgba(147, 51, 234, 0.22);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(250, 252, 255, 0.72);
}

.catalog-service-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, filter 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}

.catalog-btn-primary {
    background: linear-gradient(135deg, #7a44bf 0%, #9333ea 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(122, 68, 191, 0.38);
}

.catalog-btn-primary:hover {
    color: #fff;
    filter: brightness(1.07);
    box-shadow: 0 6px 22px rgba(122, 68, 191, 0.45);
}

.catalog-btn-outline {
    background: rgba(250, 252, 255, 0.04);
    color: rgba(250, 252, 255, 0.92);
    border-color: rgba(250, 252, 255, 0.2);
}

.catalog-btn-outline:hover {
    color: #fff;
    background: rgba(250, 252, 255, 0.08);
    border-color: rgba(250, 252, 255, 0.32);
}

.catalog-service-desc-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.catalog-service-desc-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.catalog-service-id {
    cursor: default;
}

@media (max-width: 900px) {
    .public-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .public-header-center {
        order: 3;
        flex: 1 1 100%;
    }

    .home-hero-deco-wrap {
        display: none;
    }

    .home-hero-inner {
        pointer-events: auto;
    }

    .home-flow-card {
        padding: 24px 20px;
    }

    .home-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-timeline::before {
        display: none;
    }

    .home-timeline-item {
        text-align: left;
        display: flex;
        gap: 16px;
        align-items: flex-start;
        padding: 0;
    }

    .home-timeline-num {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .home-hero {
        padding: 56px 0 40px;
        min-height: auto;
    }

    .home-flow {
        padding: 32px 0 48px;
    }

    .catalog-service-layout,
    .catalog-service-layout--solo {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .catalog-service-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .public-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        padding: 10px 16px;
        gap: 10px;
        align-items: center;
    }

    .public-header-left {
        grid-column: 1;
        grid-row: 1;
        gap: 0;
        min-width: 0;
    }

    .public-header-left .panel-logo-text {
        font-size: 18px;
    }

    .public-header-right {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .public-header-inner:has(.panel-topbar-right) {
        grid-template-rows: auto auto auto;
    }

    .public-header-inner:has(.panel-topbar-right) .public-header-left {
        grid-column: 1;
        grid-row: 1;
    }

    .public-header-inner:has(.panel-topbar-right) .public-header-right {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .public-header-inner:has(.panel-topbar-right) .public-header-center {
        grid-row: 3;
    }

    .public-header-right .panel-topup-label,
    .public-header-right .panel-topup-divider {
        display: none;
    }

    .public-header-right .panel-discount .discount-label {
        display: none;
    }

    .public-header-right .panel-discount {
        padding: 4px;
        border-radius: 50%;
        border-color: transparent;
        background: transparent;
    }

    .public-header-right .panel-topup-btn {
        height: 36px;
        padding: 0 12px;
    }

    .public-header-right .panel-topup-balance {
        font-size: 14px;
    }

    .public-header-center {
        grid-column: 1 / -1;
        grid-row: 2;
        order: unset;
        flex: unset;
    }

    .public-nav {
        display: none;
    }

    .public-search {
        max-width: none;
        margin: 0;
    }

    .public-search.panel-search {
        width: 100%;
    }

    .public-header-center .panel-search-dropdown {
        left: 0;
        right: 0;
    }

    .public-btn {
        padding: 7px 11px;
        font-size: 13px;
        border-radius: 10px;
    }

    .panel-lang-switch-topbar .panel-lang-btn {
        font-size: 0;
        padding: 0 9px;
        min-width: 34px;
    }

    .panel-lang-switch-topbar .panel-lang-btn::before {
        content: attr(lang);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .public-body:has(.home-page) .public-header-center {
        display: none;
    }

    .public-body:has(.home-page) .public-header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .public-body:has(.home-page) .public-header-right {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-end;
    }

    .home-container {
        padding: 0 16px;
    }

    .home-hero {
        padding: 28px 0 24px;
    }

    .home-eyebrow {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .home-hero-title {
        font-size: clamp(1.85rem, 8.5vw, 2.35rem);
        margin-bottom: 14px;
    }

    .home-hero-subtitle {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.55;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-btn {
        width: 100%;
        padding: 13px 20px;
    }

    .home-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 24px;
        padding-top: 20px;
        font-size: 13px;
    }

    .home-flow {
        padding: 24px 0 40px;
    }

    .home-flow-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .public-body .legal-site-footer {
        padding: 20px 16px 32px;
    }

    .public-body:has(#cookieBanner:not([hidden])) {
        padding-bottom: 88px;
    }
}
