/* Стили шаблона index.php. Порядок правил и подключения сохранён; файл кэшируется браузером. */
/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ — СТРОГИЙ РЕДИЗАЙН
   Везде border-radius: 7px
   Без transform
============================================================ */

:root {
    --wm-bg: #171615;
    --wm-card: #232220;
    --wm-card-2: #2c2b28;
    --wm-card-3: #191817;
    --wm-border: rgba(255, 255, 255, 0.1);
    --wm-border-strong: rgba(255, 255, 255, 0.18);
    --wm-text: #ffffff;
    --wm-muted: rgba(255, 255, 255, 0.66);
    --wm-muted-2: rgba(255, 255, 255, 0.42);
    --wm-accent: #c4455c;
    --wm-accent-hover: #d15a71;
    --wm-accent-dark: #9f3246;
    --wm-green: #4CAF50;
    --wm-yellow: #f6b23c;
    --wm-red: #fb7185;
    --wm-blue: #60a5fa;
    --wm-radius: 7px;
}

main {
    background: transparent;
    min-height: calc(100vh - 200px);
}

a {
    color: var(--wm-accent);
    transition: 0.2s ease;
}

a:hover {
    color: var(--wm-accent-hover);
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

input,
textarea,
select {
    color: var(--wm-text);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--wm-border-strong);
    border-radius: var(--wm-radius);
    padding: 11px 14px;
    transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(196, 69, 92, 0.85);
    background: rgba(255, 255, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================================
   ОСНОВНАЯ СЕТКА
============================================================ */

.account-panel {
    max-width: 1350px;
    margin: 34px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    background: transparent;
}

.account-left {
    position: sticky;
    top: 20px;
    height: fit-content;
    padding: 26px 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
        var(--wm-card);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
}

.account-right {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
        var(--wm-card);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    padding: 28px;
    overflow: hidden;
}

.account-header {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--wm-border);
}

.account-title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--wm-text);
    margin-bottom: 6px;
}

.account-subtitle {
    font-size: 14px;
    color: var(--wm-muted);
}

/* ============================================================
   АВАТАР
============================================================ */

.account-avatar {
    position: relative;
    width: 146px;
    height: 146px;
    margin: 0 auto 20px;
}

.account-avatar-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.22);
    background: var(--wm-card-3);
}

#account-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.25s ease;
}

.account-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 16, 15, 0.76);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s ease;
}

.account-avatar-wrapper:hover .account-avatar-overlay {
    opacity: 1;
}

.account-avatar-text {
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 0 14px;
}

#account-avatar-file {
    display: none;
}

.account-avatar-status {
    min-height: 18px;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    color: var(--wm-muted);
}

.account-avatar-status.success {
    color: var(--wm-green);
}

.account-avatar-status.error {
    color: var(--wm-red);
}

.account-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 6px;
}

.account-name-secondary {
    font-size: 14px;
    color: var(--wm-muted);
    text-align: center;
    margin-bottom: 10px;
}

.account-id {
    width: fit-content;
    margin: 0 auto;
    padding: 6px 10px;
    border-radius: var(--wm-radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--wm-border);
    font-size: 12px;
    color: var(--wm-muted);
}

/* ============================================================
   КНОПКИ
============================================================ */

.account-header-buttons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.account-guest-button,
.account-save-button,
.anketa-edit-button,
.anketa-top-button,
.payment-submit-btn,
.wm-top-modal__btn,
.wm-top-extend-btn,
.account-anketa-tooltip__btn {
    border: 0;
    text-decoration: none;
    border-radius: var(--wm-radius);
    font-weight: 800;
    transition: 0.18s ease;
}

.payment-section-hint {
    margin: -6px 0 18px;
    padding: 12px 14px;
    border-radius: var(--wm-radius);
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
    color: rgba(255,255,255,0.74);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.payment-section-hint strong {
    color: #ffffff;
    font-weight: 900;
}

.account-guest-button,
.account-save-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    color: white !important;
    font-size: 14px;
}

.account-guest-button:hover,
.account-save-button:hover {
    background: linear-gradient(135deg, var(--wm-accent-hover), var(--wm-accent));
    color: white !important;
}

/* ============================================================
   ИНСТРУКЦИЯ
============================================================ */

.account-instruction-dropdown {
    position: relative;
    display: inline-block;
}

.account-instruction-button {
    min-height: 42px;
    padding: 11px 18px;
    background: rgba(255,255,255,0.07);
    color: white;
    border: 1px solid var(--wm-border-strong);
    border-radius: var(--wm-radius);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.18s ease;
}

.account-instruction-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(196, 69, 92, 0.55);
}

.dropdown-arrow {
    font-size: 10px;
}

.instruction-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 250px;
    background: #1f1e1c;
    border: 1px solid var(--wm-border-strong);
    border-radius: var(--wm-radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
    z-index: 1000;
}

.account-instruction-dropdown:hover .instruction-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.instruction-menu-item {
    display: block;
    padding: 12px 12px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--wm-radius);
}

.instruction-menu-item:hover {
    background: rgba(196, 69, 92, 0.15);
    color: white;
}

/* ============================================================
   ПОПАПЫ
============================================================ */

.instruction-popup-overlay,
.wm-top-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    z-index: 9998;
}

.instruction-popup-overlay.active,
.wm-top-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.instruction-popup,
.wm-top-modal {
    position: fixed;
    top: 35%;
    left: 50%;
    width: 92%;
    max-width: 660px;
    max-height: 84vh;
    background: #232220;
    border: 1px solid var(--wm-border-strong);
    border-radius: var(--wm-radius);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    z-index: 9999;
    overflow: hidden;
    margin-left: -330px;
    margin-top: -260px;
}

.instruction-popup.active,
.wm-top-modal.active {
    opacity: 1;
    visibility: visible;
}

.instruction-popup-header,
.wm-top-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #1d1c1a;
    border-bottom: 1px solid var(--wm-border);
}

.instruction-popup-header h3,
.wm-top-modal__title {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.instruction-popup-close,
.wm-top-modal__close {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    line-height: 1;
}

.instruction-popup-close:hover,
.wm-top-modal__close:hover {
    color: white;
    background: rgba(196,69,92,0.18);
}

.instruction-popup-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(84vh - 74px);
}

.instruction-popup-content h4 {
    color: white;
    font-size: 18px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wm-border);
}

.instruction-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.instruction-step:last-child {
    border-bottom: 0;
}

.instruction-step-number {
    width: 34px;
    height: 34px;
    border-radius: var(--wm-radius);
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.instruction-step-content strong {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 15px;
}

.instruction-step-content p,
.instruction-step-content li {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.6;
}

.instruction-step-content ul {
    margin: 10px 0 0;
    padding-left: 0;
}

.instruction-step-content li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.instruction-step-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: var(--wm-radius);
    background: var(--wm-accent);
}

.instruction-note,
.instruction-tip,
.instruction-important {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: var(--wm-radius);
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.86);
}

.instruction-note {
    background: rgba(96,165,250,0.12);
    border: 1px solid rgba(96,165,250,0.24);
}

.instruction-tip {
    background: rgba(76,175,80,0.12);
    border: 1px solid rgba(76,175,80,0.24);
}

.instruction-important {
    background: rgba(196,69,92,0.13);
    border: 1px solid rgba(196,69,92,0.28);
}

.payment-method,
.pricing-tier {
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    margin-bottom: 8px;
    color: rgba(255,255,255,0.86);
    font-size: 14px;
}

.status-on {
    color: var(--wm-green);
    font-weight: 700;
}

.status-off {
    color: var(--wm-red);
    font-weight: 700;
}

.status-pending {
    color: var(--wm-yellow);
    font-weight: 700;
}

.status-verified {
    color: var(--wm-blue);
    font-weight: 700;
}

/* ============================================================
   ТАБЫ
============================================================ */

.account-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    overflow-x: auto;
}

.account-tab {
    flex: 1;
    min-height: 42px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: var(--wm-radius);
    color: rgba(255,255,255,0.66);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.18s ease;
}

.account-tab:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.account-tab.active {
    color: white;
    background: linear-gradient(135deg, rgba(196,69,92,0.9), rgba(159,50,70,0.9));
}

.account-tab.active::after {
    display: none;
}

.account-tab-content {
    display: none;
}

.account-tab-content.is-active {
    display: block;
}

/* ============================================================
   СЕКЦИИ
============================================================ */

.account-section {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
}

.account-section-title {
    font-size: 18px;
    font-weight: 900;
    color: white;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wm-border);
}

.account-section-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

.account-section-row:last-child {
    border-bottom: 0;
}

.account-label {
    font-size: 14px;
    color: var(--wm-muted);
}

.account-value {
    font-size: 14px;
    color: white;
    word-break: break-word;
}

.account-input-wrap {
    width: 100%;
}

.account-input {
    width: 100%;
    max-width: 380px;
}

.account-settings-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.account-settings-status {
    min-height: 20px;
    font-size: 14px;
    color: var(--wm-muted);
}

.account-settings-status.success {
    color: var(--wm-green);
}

.account-settings-status.error {
    color: var(--wm-red);
}

/* ============================================================
   БАЛАНС И ОПЛАТА
============================================================ */

.account-balance-top {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin: 6px 0 24px;
}

.account-balance-amount {
    position: relative;
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 34px 20px 22px;
    border-radius: var(--wm-radius);
    background:
        radial-gradient(circle at top left, rgba(196,69,92,0.26), transparent 220px),
        rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
    color: white;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
}

.account-balance-amount::before {
    content: 'Текущий баланс';
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    color: var(--wm-muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
}

.account-balance-currency {
    display: inline-flex;
    align-items: center;
    margin: 0 0 3px;
    color: var(--wm-muted);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.account-balance-support {
    padding: 18px;
    border-radius: var(--wm-radius);
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
}

.account-balance-support__title {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
}

.account-balance-support__text {
    max-width: 520px;
    margin-bottom: 14px;
    color: var(--wm-muted);
    font-size: 14px;
    line-height: 1.55;
}

.account-balance-support__btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--wm-border-strong);
    border-radius: var(--wm-radius);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    transition: 0.18s ease;
}

.account-balance-support__btn:hover {
    background: rgba(196,69,92,0.18);
    border-color: rgba(196,69,92,0.5);
    color: #ffffff !important;
}

.account-balance-note {
    color: var(--wm-muted);
    font-size: 14px;
}

.payment-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--wm-border);
}

.payment-section-title {
    margin: 0 0 18px;
    color: white;
    font-size: 20px;
    font-weight: 900;
}

.payment-section-title::after {
    display: none;
}

.payment-methods-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.payment-method-item {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    padding: 16px 44px 16px 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    cursor: pointer;
    transition: 0.18s ease;
}

.payment-method-item:hover {
    border-color: rgba(196,69,92,0.55);
    background: rgba(196,69,92,0.08);
}

.payment-method-item.active {
    border-color: rgba(196,69,92,0.85);
    background: rgba(196,69,92,0.14);
}

.payment-method-item.active::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    border-radius: var(--wm-radius);
    background: var(--wm-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-name {
    color: white;
    font-size: 17px;
    font-weight: 900;
}

.payment-method-fee {
    color: var(--wm-muted);
    font-size: 13px;
    font-weight: 600;
}

.payment-form-wrapper {
    margin-top: 18px;
}

.payment-form {
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
}

.payment-form-row {
    margin-bottom: 16px;
}

.payment-form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--wm-muted);
    font-size: 14px;
    font-weight: 700;
}

.payment-input {
    width: 100%;
}

.payment-input--error {
    border-color: rgba(251, 113, 133, 0.95) !important;
    background: rgba(251, 113, 133, 0.09) !important;
}

.payment-min-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: var(--wm-radius);
    background: rgba(196, 69, 92, 0.11);
    border: 1px solid rgba(196, 69, 92, 0.24);
    color: rgba(255,255,255,0.76);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.payment-min-note strong {
    color: #ffffff;
    font-weight: 900;
}

.payment-method-commission {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: var(--wm-radius);
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.26);
    color: #86efac;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.payment-method-commission strong {
    color: #ffffff;
    font-weight: 900;
}

.payment-method-commission--variable {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.26);
    color: #93c5fd;
}

.payment-method-item.active .payment-method-commission {
    background: rgba(76, 175, 80, 0.17);
    border-color: rgba(76, 175, 80, 0.36);
}

.payment-method-item.active .payment-method-commission--variable {
    background: rgba(96, 165, 250, 0.17);
    border-color: rgba(96, 165, 250, 0.36);
}

.payment-method-warning {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: var(--wm-radius);
    background: rgba(246, 178, 60, 0.13);
    border: 1px solid rgba(246, 178, 60, 0.28);
    color: #fbbf24;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.payment-method-warning strong {
    color: #ffffff;
    font-weight: 900;
}

.payment-method-item--crocopay.active .payment-method-warning {
    background: rgba(246, 178, 60, 0.18);
    border-color: rgba(246, 178, 60, 0.38);
}

.payment-summary {
    margin: 18px 0;
    padding: 14px 16px;
    background: rgba(196,69,92,0.12);
    border: 1px solid rgba(196,69,92,0.24);
    border-radius: var(--wm-radius);
    text-align: center;
}

#payment-summary-text {
    color: white;
    font-size: 18px;
    font-weight: 900;
}

#payment-amount-display {
    color: var(--wm-accent-hover);
}

.payment-submit-btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    color: white;
    font-size: 15px;
}

.payment-submit-btn:not(:disabled):hover {
    background: linear-gradient(135deg, var(--wm-accent-hover), var(--wm-accent));
}

.payment-submit-btn:disabled {
    background: rgba(255,255,255,0.12);
}

.payment-error {
    min-height: 20px;
    margin-top: 12px;
    color: var(--wm-red);
    font-size: 13px;
    text-align: center;
}

/* ============================================================
   МОИ АНКЕТЫ
============================================================ */

.ankety-wrapper_index {
    max-width: 1350px;
    margin: 42px auto 70px;
    padding: 0 20px;
}

.ankety-section {
    margin-bottom: 56px;
}

.ankety-title {
    margin: 0 0 22px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--wm-border);
    color: white;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.anketa-card {
    position: relative;
    min-height: 460px;
    height: auto;
    overflow: hidden;
    border-radius: var(--wm-radius);
    background: var(--wm-card);
    border: 1px solid var(--wm-border);
    transition: 0.22s ease;
}

.anketa-card:hover {
    border-color: rgba(196,69,92,0.38);
}

.anketa-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(18,17,16,0.78) 0%,
            rgba(18,17,16,0.24) 36%,
            rgba(18,17,16,0.68) 68%,
            rgba(18,17,16,0.94) 100%
        );
    z-index: 1;
}

.anketa-photo {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #232220, #3a2b2f);
}

.anketa-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.45s ease;
}

.anketa-card.no-photo .anketa-photo::before {
    content: 'Нет фото';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.58);
    font-size: 14px;
    font-weight: 700;
}

.anketa-card-content {
    position: relative;
    z-index: 2;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    color: white;
}

.anketa-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.anketa-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.32);
    background: var(--wm-card-3);
}

.anketa-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anketa-author-info {
    min-width: 0;
}

.anketa-author-nick {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    margin-bottom: 2px;
}

.anketa-author-name {
    color: white;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anketa-badges {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.anketa-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.anketa-badge img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.anketa-main-content {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.18);
}

.anketa-card-title {
    display: block;
    margin-bottom: 12px;
    color: white;
    text-decoration: none;
    font-size: 21px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.anketa-card-title:hover {
    color: var(--wm-accent-hover);
}

.anketa-meta-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.anketa-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: rgba(255,255,255,0.84);
    font-size: 13px;
}

.anketa-meta-label {
    color: rgba(255,255,255,0.54);
    font-weight: 700;
}

.anketa-meta-value {
    color: white;
    font-weight: 800;
}

.anketa-meta-sep {
    color: rgba(255,255,255,0.35);
}

.anketa-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.anketa-edit-button,
.anketa-top-button,
.anketa-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    color: white !important;
    font-size: 13px;
    text-align: center;
}

.anketa-edit-button {
    background: rgba(196,69,92,0.92);
}

.anketa-edit-button:hover {
    background: var(--wm-accent-hover);
    color: white !important;
}

.anketa-delete-button {
    width: 100%;
    background: rgba(251, 113, 133, 0.10);
    border: 1px solid rgba(251, 113, 133, 0.34);
    color: #fb7185 !important;
}

.anketa-delete-button:hover {
    background: rgba(251, 113, 133, 0.18);
    border-color: rgba(251, 113, 133, 0.58);
    color: #fecdd3 !important;
}

.anketa-top-button {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
}

.anketa-top-button:hover {
    background: rgba(196,69,92,0.2);
    border-color: rgba(196,69,92,0.45);
}

.anketa-top-button.is-disabled {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.58) !important;
}

/* ============================================================
   ПОПАП УДАЛЕНИЯ АНКЕТЫ
============================================================ */

.wm-delete-anketa-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.wm-delete-anketa-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.wm-delete-anketa-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10041;
    width: min(92%, 460px);
    padding: 28px;
    background: #232220;
    border: 1px solid rgba(251, 113, 133, 0.34);
    border-radius: var(--wm-radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wm-delete-anketa-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.wm-delete-anketa-modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-size: 28px;
    line-height: 1;
}

.wm-delete-anketa-modal__close:hover {
    color: #ffffff;
}

.wm-delete-anketa-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(251, 113, 133, 0.13);
    border: 1px solid rgba(251, 113, 133, 0.34);
    color: #fb7185;
    font-size: 24px;
    font-weight: 900;
}

.wm-delete-anketa-modal__title {
    margin: 0 42px 10px 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.25;
}

.wm-delete-anketa-modal__text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.55;
}

.wm-delete-anketa-modal__text strong {
    color: #ffffff;
}

.wm-delete-anketa-modal__warning {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.20);
    border-radius: var(--wm-radius);
    color: #fecdd3;
    font-size: 13px;
    line-height: 1.5;
}

.wm-delete-anketa-modal__status {
    display: none;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--wm-radius);
    font-size: 13px;
    line-height: 1.45;
}

.wm-delete-anketa-modal__status.is-error {
    display: block;
    background: rgba(251, 113, 133, 0.10);
    border: 1px solid rgba(251, 113, 133, 0.22);
    color: #fecdd3;
}

.wm-delete-anketa-modal__status.is-success {
    display: block;
    background: rgba(76, 175, 80, 0.10);
    border: 1px solid rgba(76, 175, 80, 0.24);
    color: #86efac;
}

.wm-delete-anketa-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.wm-delete-anketa-cancel,
.wm-delete-anketa-confirm {
    min-height: 44px;
    padding: 11px 14px;
    border-radius: var(--wm-radius);
    font-size: 13px;
    font-weight: 800;
}

.wm-delete-anketa-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.wm-delete-anketa-cancel:hover {
    background: rgba(255, 255, 255, 0.13);
}

.wm-delete-anketa-confirm {
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    border: 1px solid linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    color: #ffffff;
}

.wm-delete-anketa-confirm:hover {
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    border-color: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
}

.wm-delete-anketa-confirm:disabled,
.wm-delete-anketa-cancel:disabled,
.wm-delete-anketa-modal__close:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .wm-delete-anketa-modal {
        padding: 24px 18px 18px;
    }

    .wm-delete-anketa-modal__title {
        font-size: 21px;
    }

    .wm-delete-anketa-modal__actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   СТАТУСЫ АНКЕТ
============================================================ */

.account-anketa-status-mini {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 6px 0 12px;
    z-index: 20;
}

.account-anketa-status-mini__btn {
    border: 0;
    outline: none;
    padding: 7px 11px;
    border-radius: var(--wm-radius);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    cursor: default;
    color: white;
    background: rgba(255,255,255,0.14);
}

.account-anketa-status-mini--approved .account-anketa-status-mini__btn {
    background: rgba(76,175,80,0.18);
    color: #86efac;
}

.account-anketa-status-mini--pending .account-anketa-status-mini__btn {
    background: rgba(246,178,60,0.18);
    color: #fbbf24;
}

.account-anketa-status-mini--rejected .account-anketa-status-mini__btn {
    background: rgba(251,113,133,0.18);
    color: #fb7185;
    cursor: pointer;
}

.account-anketa-status-mini--draft .account-anketa-status-mini__btn {
    background: rgba(148,163,184,0.17);
    color: #cbd5e1;
}

.account-anketa-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: 292px;
    padding: 14px;
    border-radius: var(--wm-radius);
    background: #171615;
    border: 1px solid rgba(251,113,133,0.34);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: 0.18s ease;
    pointer-events: none;
    z-index: 999;
}

.account-anketa-tooltip::before {
    display: none;
}

.account-anketa-status-mini--rejected:hover .account-anketa-tooltip,
.account-anketa-status-mini.is-open .account-anketa-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.account-anketa-tooltip__title {
    margin-bottom: 6px;
    color: #fb7185;
    font-size: 14px;
    font-weight: 900;
}

.account-anketa-tooltip__text {
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    line-height: 1.5;
}

.account-anketa-tooltip__reason {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--wm-radius);
    background: rgba(251,113,133,0.09);
    border: 1px solid rgba(251,113,133,0.18);
    font-size: 12px;
    line-height: 1.45;
}

.account-anketa-tooltip__reason strong {
    display: block;
    color: white;
    margin-bottom: 4px;
}

.account-anketa-tooltip__reason span {
    color: rgba(255,255,255,0.8);
}

.account-anketa-tooltip__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.account-anketa-tooltip__btn {
    flex: 1;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: var(--wm-accent);
    color: white !important;
    font-size: 11px;
    text-decoration: none;
}

.account-anketa-tooltip__btn:hover {
    background: var(--wm-accent-hover);
}

.account-anketa-tooltip__btn--dark {
    background: rgba(255,255,255,0.09);
}

.account-anketa-tooltip__btn--dark:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ АНКЕТЫ
============================================================ */

.anketa-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    padding-top: 10px;
}

.anketa-toggle-label {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.anketa-toggle-switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.anketa-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.22);
    border-radius: var(--wm-radius);
    transition: 0.22s ease;
}

.anketa-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: var(--wm-radius);
    transition: 0.22s ease;
}

.anketa-toggle-switch:checked + .anketa-toggle-slider {
    background: var(--wm-accent);
}

.anketa-toggle-switch:checked + .anketa-toggle-slider::before {
    left: 27px;
}

.anketa-toggle-switch:disabled + .anketa-toggle-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.anketa-status-text {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 700;
}

.anketa-toggle-message {
    position: absolute;
    left: 50%;
    bottom: 12px;
    margin-left: -80px;
    width: 160px;
    padding: 9px 12px;
    border-radius: var(--wm-radius);
    background: rgba(76,175,80,0.95);
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    z-index: 10;
}

/* ============================================================
   ТОП АНКЕТ
============================================================ */

.wm-top-head {
    padding: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    margin-bottom: 16px;
}

.wm-top-head__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wm-top-head__item {
    padding: 8px 10px;
    border-radius: var(--wm-radius);
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 700;
}

.wm-top-full {
    margin-top: 12px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.wm-top-loading,
.wm-top-empty {
    padding: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    color: rgba(255,255,255,0.78);
}

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

.wm-top-card {
    overflow: hidden;
    background: var(--wm-card);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
}

.wm-top-thumb img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.wm-top-thumb--empty {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--wm-muted);
}

.wm-top-info {
    padding: 14px;
}

.wm-top-title {
    display: block;
    margin-bottom: 8px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
}

.wm-top-title:hover {
    color: var(--wm-accent-hover);
}

.wm-top-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--wm-muted);
    font-size: 12px;
}

.wm-top-timer-wrap {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(196,69,92,0.16);
    border: 1px solid rgba(196,69,92,0.26);
    border-radius: var(--wm-radius);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.wm-top-extend-btn {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    background: rgba(196,69,92,0.9);
    color: white;
}

.wm-top-extend-btn:hover {
    background: var(--wm-accent-hover);
}

/* ============================================================
   МОДАЛКА ТОП
============================================================ */

.wm-top-modal__body {
    padding: 18px 20px;
    color: rgba(255,255,255,0.82);
    line-height: 1.55;
}

.wm-top-modal__status {
    min-height: 18px;
    margin-top: 12px;
    font-weight: 800;
}

.wm-top-modal__status.success {
    color: var(--wm-green);
}

.wm-top-modal__status.error {
    color: var(--wm-red);
}

.wm-top-modal__footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: #1d1c1a;
    border-top: 1px solid var(--wm-border);
}

.wm-top-modal__btn {
    min-height: 42px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 14px;
}

.wm-top-modal__btn:hover {
    background: rgba(255,255,255,0.14);
}

.wm-top-confirm {
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
}

.wm-top-confirm:hover {
    background: linear-gradient(135deg, var(--wm-accent-hover), var(--wm-accent));
}

/* ============================================================
   ГОСТЬ
============================================================ */

.account-panel--guest {
    max-width: 460px;
    display: block;
    text-align: center;
    margin: 70px auto;
    padding: 42px 24px;
    background:
        radial-gradient(circle at top, rgba(196,69,92,0.16), transparent 260px),
        var(--wm-card);
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
}

.account-guest-title {
    margin-bottom: 12px;
    color: white;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.account-guest-text {
    max-width: 340px;
    margin: 0 auto 24px;
    color: var(--wm-muted);
    font-size: 15px;
    line-height: 1.55;
}

/* ============================================================
   ОБЩИЙ КОНТЕНТ
============================================================ */

.main-content {
    max-width: 1220px;
    margin: 20px auto;
    padding: 0 20px;
    color: white;
}

.main-content h1,
.main-content h2,
.main-content h3 {
    color: white;
}

.main-content a {
    color: var(--wm-accent);
}

hr {
    border: 0;
    border-top: 1px solid var(--wm-border);
    margin: 30px 0;
}


/* ============================================================
   КРАСИВЫЙ БЛОК ТАРИФОВ ТОПА
============================================================ */

.wm-top-tariff-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    margin: 0 0 18px;
    padding: 16px;
    border-radius: var(--wm-radius);
    background:
        radial-gradient(circle at top left, rgba(196,69,92,0.22), transparent 230px),
        rgba(255,255,255,0.045);
    border: 1px solid var(--wm-border);
}

.wm-top-tariff-box__main {
    min-width: 0;
}

.wm-top-tariff-box__label {
    margin-bottom: 8px;
    color: var(--wm-muted);
    font-size: 13px;
    font-weight: 800;
}

.wm-top-tariff-box__price {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.wm-top-tariff-box__price span {
    margin-bottom: 4px;
    color: var(--wm-muted);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.wm-top-tariff-box__status {
    margin-top: 10px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.wm-top-tariff-box__schedule {
    display: grid;
    gap: 8px;
}

.wm-top-tariff-box__schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--wm-radius);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
}

.wm-top-tariff-box__schedule-item span {
    color: var(--wm-muted);
    font-size: 13px;
    font-weight: 800;
}

.wm-top-tariff-box__schedule-item strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
}

.wm-top-tariff-box__schedule-item.is-active {
    background: rgba(196,69,92,0.17);
    border-color: rgba(196,69,92,0.5);
}

.wm-top-tariff-box__schedule-item.is-active span,
.wm-top-tariff-box__schedule-item.is-active strong {
    color: #ffffff;
}

.wm-top-price-info {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: var(--wm-radius);
    background: rgba(196,69,92,0.11);
    border: 1px solid rgba(196,69,92,0.24);
}

.wm-top-price-info__current {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.wm-top-price-info__schedule {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    line-height: 1.45;
}

.wm-top-price-info__schedule strong {
    color: #ffffff;
}


/* ============================================================
   ПОПАП БОНУСА НОВОМУ ПОЛЬЗОВАТЕЛЮ
============================================================ */

.wm-welcome-bonus-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s ease;
    z-index: 10000;
}

.wm-welcome-bonus-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.wm-welcome-bonus-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 430px;
    padding: 34px 28px 28px;
    background:
        radial-gradient(circle at top left, rgba(196, 69, 92, 0.32), transparent 240px),
        #232220;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    opacity: 0;
    visibility: hidden;
    z-index: 10001;
    text-align: center;
    margin-left: -215px;
    margin-top: -190px;
}

.wm-welcome-bonus-popup.is-active {
    opacity: 1;
    visibility: visible;
}

.wm-welcome-bonus-popup__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.wm-welcome-bonus-popup__title {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.wm-welcome-bonus-popup__text {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.wm-welcome-bonus-popup__amount {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.wm-welcome-bonus-popup__btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--wm-accent), var(--wm-accent-dark));
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

.wm-welcome-bonus-popup__btn:hover {
    background: linear-gradient(135deg, var(--wm-accent-hover), var(--wm-accent));
}

@media (max-width: 520px) {
    .wm-welcome-bonus-popup {
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        margin-left: 0;
        padding: 30px 22px 24px;
    }

    .wm-welcome-bonus-popup__amount {
        font-size: 38px;
    }
}


/* ============================================================
   АДАПТИВ
============================================================ */

@media (max-width: 1100px) {
    .account-panel {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .ankety-list,
    .wm-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .account-panel {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 20px;
    }

    .account-left {
        position: relative;
        top: auto;
    }

    .account-right {
        padding: 20px;
    }

    .account-title {
        font-size: 24px;
    }

    .account-header-buttons {
        align-items: stretch;
    }

    .account-guest-button,
    .account-instruction-dropdown,
    .account-instruction-button {
        width: 100%;
    }

    .account-instruction-button {
        justify-content: center;
    }

    .instruction-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .account-instruction-dropdown:hover .instruction-dropdown-menu {
        display: block;
    }

    .account-section-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .account-input {
        max-width: 100%;
    }

    .payment-methods-list {
        grid-template-columns: 1fr;
    }

    .ankety-list,
    .wm-top-grid {
        grid-template-columns: 1fr;
    }

    .wm-top-modal__footer,
    .account-settings-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .instruction-popup,
    .wm-top-modal {
        left: 4%;
        top: 8%;
        width: 92%;
        max-width: none;
        max-height: 84vh;
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 860px) {
    .account-balance-top {
        grid-template-columns: 1fr;
    }

    .account-balance-amount {
        width: 100%;
    }

    .account-balance-support__btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .wm-top-tariff-box {
        grid-template-columns: 1fr;
    }

    .wm-top-tariff-box__price {
        font-size: 34px;
    }
}

@media (max-width: 520px) {
    .account-panel,
    .ankety-wrapper_index {
        padding: 0 14px;
    }

    .account-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .account-tab {
        min-width: 0;
        font-size: 13px;
        padding: 10px 8px;
    }

    .account-section {
        padding: 16px;
    }

    .account-balance-amount {
        width: 100%;
        justify-content: center;
        font-size: 34px;
    }

    .anketa-card,
    .anketa-card-content {
        min-height: 440px;
    }

    .anketa-badges {
        top: 14px;
        right: 14px;
        gap: 7px;
    }

    .anketa-badge img {
        width: 40px;
        height: 40px;
    }

    .account-anketa-tooltip {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 18px;
        width: auto;
        z-index: 10000;
    }

    .account-anketa-tooltip__actions {
        flex-direction: column;
    }

    .instruction-step {
        grid-template-columns: 1fr;
    }

    .instruction-step-number {
        width: 30px;
        height: 30px;
    }
}
