/* =========================
   БАЗА
   ========================= */

   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 system-ui, sans-serif;
    background-color: #1c202a;
    color: #ffffff;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 18px 24px;
    flex: 1; /* пристыковует футер к низу экрана */
}

/* =========================
   ШАПКА
   ========================= */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
}

.menu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    position: relative;
    z-index: 30;
}

.nav-toggle {
    position: relative;
    z-index: 32;
    width: 40px;
    height: 40px;
    margin: -6px -8px -6px 0;
    padding: 11px 8px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(8, 10, 16, 0.45);
}

.nav-popup {
    position: absolute;
    top: calc(100% + 6px);
    right: -8px;
    z-index: 31;
    min-width: 198px;
    padding: 8px;
    border-radius: 16px;
    background: #252a38;
    border: 1px solid #3a4054;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-popup-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.nav-popup-link:hover,
.nav-popup-link.is-current {
    background: rgba(255, 255, 255, 0.08);
}

.nav-popup-link.is-separate {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid #3a4054;
    border-radius: 0 0 12px 12px;
    color: #c4c7d4;
}

/* RU / EN */

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch a {
    font-size: 12px;
    font-weight: 500;
    color: #b0b3c0;
    text-decoration: none;
    line-height: 1;
}

.lang-switch a + span {
    margin: 0 1px;
}

.lang-switch a.active {
    color: #ffffff;
}

/* =========================
   ЗАГОЛОВКИ / ТЕКСТ
   ========================= */

.hero-title,
.page-title {
    text-align: center;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 10px;
}

.page-subtitle,
.hero-subtitle {
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
    color: #c4c7d4;
    margin: 0 auto 26px;
    max-width: 320px;
}

.page-title-lg {
    text-align: center;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.3;
    margin-top: 60px;
    margin-bottom: 12px;
}

.loading-subtitle {
    text-align: center;
    font-size: 16px;
    color: #c4c7d4;
    line-height: 1.4;
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.text-muted {
    font-size: 11px;
    color: #7c8297;
    line-height: 1.4;
}

.text-center { text-align: center; }

.text-link {
    color: #c4c7d4;
    text-decoration: underline;
}

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

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

.btn {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 14px;
    text-decoration: none;
}

.btn-gradient {
    background: linear-gradient(90deg, #5a3bff, #ff3db7);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.btn-green {
    background-color: #27b94a;
    color: #ffffff;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

/* Соцкнопки */

.btn-social {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.btn-social .icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-social .icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.btn-social .label {
    flex: 1;
    text-align: center;
}

.btn-social span.icon {
    font-size: 20px;
}

/* цвета соцсетей */

.btn-vk { background-color: #0077ff; color: #ffffff; }
.btn-tg { background-color: #27a7e6; color: #ffffff; }
.btn-tt { background-color: #000000; color: #ffffff; }
.btn-ok { background-color: #ff8800; color: #ffffff; }

/* специальная кнопка для step2 */

.btn-templates {
    margin: 22px 0 18px;
}

/* =========================
   INPUTS / FORM
   ========================= */

.input {
    width: 100%;
    background-color: #111522;
    border-radius: 18px;
    border: 1px solid #5a5f73;
    padding: 14px 18px;
    font-size: 16px;
    color: #ffffff;
    outline: none;
    margin-bottom: 12px;
}

.input::placeholder {
    color: #9ca0b4;
    font-size: 16px;
}

.input-card {
    border-radius: 18px;
}

.input-error {
    border-color: #ff5d7a;
}

.form-alert {
    background: rgba(255, 61, 93, 0.12);
    border: 1px solid rgba(255, 93, 122, 0.55);
    color: #ffb3c0;
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
}

.form-alert.success {
    background: rgba(39, 185, 74, 0.12);
    border-color: rgba(39, 185, 74, 0.55);
    color: #b6f0c4;
}

/* разделитель "или" */

.divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    font-size: 13px;
    color: #7c8297;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #3b3f4e;
}

.divider-text {
    margin: 0 10px;
}

/* =========================
   ГАЛЕРЕЯ НА ПЕРВОЙ СТРАНИЦЕ
   ========================= */

.gallery {
    overflow: hidden;
    margin: 0 -18px 30px;
    width: calc(100% + 36px);
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: gallery-scroll 20s linear infinite;
}

.gallery-group {
    display: flex;
    gap: 8px;
    padding-right: 8px;
    flex-shrink: 0;
}

.gallery-item {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #222637;
}

.gallery:hover .gallery-track {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track {
        animation: none;
    }
}

/* =========================
   WHY SAFE
   ========================= */

.why-safe {
    margin-bottom: 26px;
}

.why-safe ul {
    list-style: none;
    margin-top: 10px;
}

.why-safe li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    color: #d0d3e2;
    margin-bottom: 6px;
}

.why-safe li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #9ea3ff;
}

/* =========================
   STEP 1 – ВЫБОР ФОТО
   (вариант з квадратом)
   ========================= */

.upload-box {
    margin: 32px auto 24px;
    max-width: 275px;
    width: 100%;
}

.upload-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111522;
}

.upload-square.placeholder {
    border: 2px dashed #d0d3e2;
}

.upload-square.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* старые классы — если где-то еще используются */
.upload-placeholder {
    border-radius: 24px;
    border: 2px dashed #d0d3e2;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-photo {
    border-radius: 24px;
    overflow: hidden;
}

.upload-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================
   STEP 2 – ШАБЛОНЫ
   ========================= */

.templates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.template-item {
    flex: 0 0 calc((100% - 20px) / 3);
    border-radius: 16px;
    overflow: hidden;
    background-color: #222637;
    position: relative;
    aspect-ratio: 3 / 4;
    display: block;
    text-decoration: none;
    color: #ffffff;
}

.template-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-item.active {
    box-shadow: 0 0 0 2px #2f89ff;
}

.template-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 8px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.template-kind {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(90, 59, 255, 0.9);
}

.create-grid {
    margin-top: 8px;
    margin-bottom: 12px;
}

.create-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
    padding: 0;
}

.create-cat {
    flex: 0 0 auto;
    border: 1px solid #5a5f73;
    background: transparent;
    color: #c4c7d4;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.create-cat.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, #5a3bff, #ff3db7);
}

.create-latest {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
}

.create-more {
    height: 24px;
}

.create-empty {
    text-align: center;
    color: #9aa0b5;
    font-size: 14px;
    padding: 24px 8px 12px;
}

.create-picked {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 18px;
    padding: 10px;
    border-radius: 18px;
    background: #111522;
    border: 1px solid #3b3f4e;
    text-decoration: none;
    color: #ffffff;
}

.create-picked img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.create-picked strong {
    display: block;
    font-size: 15px;
}

.create-picked em {
    font-style: normal;
    font-size: 12px;
    color: #9aa0b5;
}

.create-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 16px;
}

.create-slot {
    position: relative;
    width: 100px;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 2px dashed #d0d3e2;
    background: #111522;
    cursor: pointer;
}

.create-slot.is-main {
    width: min(220px, 100%);
}

.create-slot.is-hidden {
    display: none;
}

.create-slot input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.create-slot-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #c4c7d4;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    pointer-events: none;
}

.create-slot-empty img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.create-slot-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-slot.has-photo {
    border-style: solid;
    border-color: #2f89ff;
}

.create-slot.has-photo .create-slot-empty {
    display: none;
}

.create-slot.has-photo .create-slot-preview {
    display: block;
}

.create-add-photo {
    margin-bottom: 8px;
}

.create-orient-label {
    margin: 10px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.create-orients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.create-orient {
    flex: 1 1 calc(33.33% - 8px);
    cursor: pointer;
}

.create-orient input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.create-orient span {
    display: block;
    text-align: center;
    border: 1px solid #5a5f73;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #c4c7d4;
}

.create-orient:has(:checked) span {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, #5a3bff, #ff3db7);
}

/* старый вариант хедера с back-стрелкой */
.page-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.back-arrow {
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* =========================
   ТАРИФЫ / ОПЛАТА
   ========================= */

.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 18px;
}

.back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

.page-title-left {
    margin: 0;
    text-align: left;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.3;
    white-space: nowrap;
}

/* Тарифы */

.tariff-subtitle {
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
    color: #c4c7d4;
    max-width: 320px;
    margin: 0 auto 22px;
}

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

.tariff-card {
    border-radius: 20px;
    border: 1px solid #5a5f73;
    padding: 14px 20px;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.tariff-card .price {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.tariff-card.active {
    border-color: #2f89ff;
    box-shadow: 0 0 0 2px #2f89ff;
}

/* Оплата */

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    margin: 10px 0 18px;
}

.payment-header span {
    white-space: nowrap;
}

.payment-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.payment-row .input {
    margin-bottom: 0;
}

/* =========================
   LOADING BAR
   ========================= */

.progress-bar {
    width: 100%;
    max-width: 320px;
    height: 16px;
    margin: 0 auto;
    border-radius: 999px;
    background: #202431;
    overflow: hidden;
}

.progress-fill {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #a2e62b, #00c853);
}

.loading-text {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-top: 80px;
    margin-bottom: 16px;
}

.loading-subtext {
    text-align: center;
    font-size: 16px;
    color: #c4c7d4;
    line-height: 1.4;
    min-height: 40px;
    transition: opacity 0.4s;
}

.loading-error {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    max-width: 320px;
    height: 16px;
    margin: 50px auto 0;
    border-radius: 999px;
    background: #202431;
    overflow: hidden;
        }

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a2e62b, #00c853);
    transition: width 0.3s linear;
        }
/* =========================
   RESULT / AVATAR PREVIEW
   ========================= */

.result-photo {
    width: min(275px, 100%);
    border-radius: 24px;
    overflow: hidden;
    margin: 24px auto 26px;
    background-color: #111522;
}

.result-photo.is-portrait {
    aspect-ratio: 2 / 3;
}

.result-photo.is-square {
    aspect-ratio: 1 / 1;
}

.result-photo.is-landscape {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 2;
}

.result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   ACCOUNT PAGE
   ========================= */

.account-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 24px auto 16px;
    background-color: #111522;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-name {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.account-username {
    text-align: center;
    font-size: 14px;
    color: #c4c7d4;
    margin-bottom: 10px;
}

.account-info {
    text-align: center;
    font-size: 13px;
    color: #c4c7d4;
    line-height: 1.4;
    margin-bottom: 26px;
}

.account-page .page-title {
    margin-bottom: 18px;
}

.account-title-row {
    position: relative;
    justify-content: center;
    margin-bottom: 22px;
}

.account-title-row .back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
}

.account-title-row .page-title-left {
    text-align: center;
    width: 100%;
    font-size: 26px;
    font-weight: 800;
}

.account-kicker,
.account-block h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa0b5;
    margin-bottom: 10px;
}

.account-block {
    margin-top: 28px;
}

.account-card {
    background: rgba(17, 21, 34, 0.88);
    border: 1px solid #3b3f4e;
    border-radius: 22px;
    padding: 20px 18px 16px;
}

.account-sub .btn,
.account-manage .btn {
    margin-bottom: 0;
    margin-top: 8px;
}

.account-premium-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.account-premium-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #8b6bff, #ff6ad5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.account-premium-status,
.account-renew-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4c7d4;
    font-size: 14px;
    font-weight: 600;
}

.account-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27b94a;
    box-shadow: 0 0 0 4px rgba(39, 185, 74, 0.16);
}

.account-quota-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.account-quota {
    height: 8px;
    border-radius: 999px;
    background: #2a3144;
    overflow: hidden;
}

.account-quota-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5a3bff, #ff3db7);
}

.account-quota-num {
    margin-top: 8px;
    font-size: 13px;
    color: #9aa0b5;
}

.account-next {
    margin: 14px 0 16px;
    font-size: 14px;
    color: #c4c7d4;
    line-height: 1.4;
}

.account-next-sep {
    margin: 0 6px;
    color: #6b7186;
}

.account-upsell {
    text-align: center;
    padding-top: 6px;
}

.account-stack {
    position: relative;
    width: 230px;
    height: 168px;
    margin: 4px auto 22px;
}

.account-stack img {
    position: absolute;
    width: 108px;
    height: 144px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid #1c202a;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
    background: #222637;
}

.account-stack img:nth-child(1) {
    left: 6px;
    top: 16px;
    transform: rotate(-12deg);
    z-index: 1;
}

.account-stack img:nth-child(2) {
    left: 61px;
    top: 0;
    z-index: 3;
}

.account-stack img:nth-child(3) {
    left: 116px;
    top: 16px;
    transform: rotate(12deg);
    z-index: 2;
}

.account-upsell-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.account-upsell-lead {
    font-size: 15px;
    line-height: 1.4;
    color: #c4c7d4;
    max-width: 300px;
    margin: 0 auto 16px;
}

.account-upsell-list {
    list-style: none;
    margin: 0 auto 22px;
    padding: 0;
    max-width: 240px;
    text-align: left;
}

.account-upsell-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 15px;
    color: #e8eaf2;
}

.account-upsell-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, #5a3bff, #ff3db7);
}

.account-upsell .btn {
    margin-bottom: 8px;
}

.account-rows .account-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 15px;
}

.account-row span {
    color: #9aa0b5;
}

.account-row strong {
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.account-fold {
    border: 1px solid #3b3f4e;
    border-radius: 18px;
    background: rgba(17, 21, 34, 0.88);
    padding: 0 16px 2px;
}

.account-fold summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
}

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

.account-password {
    padding-bottom: 12px;
}

.account-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #3b3f4e;
    background: rgba(17, 21, 34, 0.88);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.account-support-go {
    font-size: 13px;
    font-weight: 600;
    color: #9aa0b5;
}

.account-delete {
    display: block;
    width: 100%;
    margin: 28px 0 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #ff7b9a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.account-manage-plan {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.account-renew-state {
    margin: 8px 0 14px;
}

.account-text-btn {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #c4c7d4;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0 4px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-manage-note {
    font-size: 15px;
    line-height: 1.45;
    color: #c4c7d4;
    margin-bottom: 8px;
}

/* =========================
   MY AVATARS GRID
   ========================= */

.avatars-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.avatar-item {
    flex: 0 0 calc((100% - 24px) / 3);
    border-radius: 18px;
    overflow: hidden;
    background-color: #222637;
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   USER GALLERY
   ========================= */

.gallery-feed {
    margin-top: 8px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-card {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 0;
}

.gallery-card-preview {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background-color: #222637;
}

.gallery-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 2px;
}

.gallery-act {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #252a38;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.gallery-act:hover {
    background: #32384c;
}

.gallery-act.is-danger {
    color: #ff7b9a;
}

.gallery-empty {
    text-align: center;
    color: #9aa0b5;
    font-size: 14px;
    padding: 28px 8px 12px;
}

.gallery-more {
    height: 24px;
}

/* =========================
   PAYMENTS LIST
   ========================= */

.payments-list {
    margin-top: 16px;
}

.payment-card {
    border-radius: 20px;
    border: 1px solid #5a5f73;
    padding: 10px 16px 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.payment-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.payment-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 1px solid #5a5f73;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.payment-card-number {
    letter-spacing: 1px;
}

.payment-card-amount {
    font-size: 15px;
}

.payment-card-date {
    font-size: 12px;
    color: #c4c7d4;
    margin-bottom: 4px;
}

.payment-card-separator {
    height: 1px;
    border-bottom: 1px dashed #5a5f73;
}


/* =========================
   ФУТЕР
   ========================= */

.footer {
    width: 100%;
    text-align: center;
    padding: 14px 10px 18px;
    font-size: 11px;
    color: #7c8297;
}

.footer-links a {
    color: #7c8297;
    text-decoration: none;
    margin: 0 4px;
}

.footer-links a:hover {
    text-decoration: underline;
}
