/* ======= GLOBAL VARIABLES ======= */
:root {
    --bg: #050816;
    --card-bg: #0d1220;
    --front-bg: #0f172a;
    --back-bg: #151f37;
    --accent: #06b6d4;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --radius: 18px;

    /* цвет текущего статуса — по умолчанию голубой, потом JS его переписывает */
    --status-color-main: #06b6d4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ======= BODY / BACKGROUND ======= */
body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(circle at 0% 0%, #1e293b 0%, #020617 55%, #000 100%);
    background-attachment: fixed;
    background-size: 130% 130%;
    animation: bgShift 24s ease-in-out infinite alternate;
}


.lang-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;

    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15,23,42,0.9);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;

    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition:
        background 0.2s ease-out,
        color 0.2s ease-out,
        border-color 0.2s ease-out,
        transform 0.12s ease-out;
}

.lang-btn:hover {
    background: var(--status-color-main);
    color: #020617;
    border-color: var(--status-color-main);
    transform: translateY(-1px);
}

.lang-btn:active {
    transform: translateY(0);
}




@keyframes bgShift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 40% 60%; }
    100% { background-position: 100% 0%; }
}

/* ======= WRAPPER ======= */
.flip-container {
    width: 520px;
    height: 720px;
    perspective: 2000px;
    position: relative;
    z-index: 1;
}

/* ==== ПАРЯЩИЕ ОРБЫ В ЦВЕТЕ СТАТУСА ==== */
.flip-container::before,
.flip-container::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* верхний орб = чистый цвет статуса */
.flip-container::before {
    width: 220px;
    height: 220px;
    top: -60px;
    left: -40px;
    background: radial-gradient(circle, var(--status-color-main) 0%, transparent 70%);
    animation: orbMove1 18s ease-in-out infinite alternate;
}

/* нижний орб = статус + фиолетовый акцент */
.flip-container::after {
    width: 260px;
    height: 260px;
    bottom: -80px;
    right: -60px;
    background:
        radial-gradient(circle at 0% 0%, var(--status-color-main) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(76,30,255,0.7), transparent 70%);
    animation: orbMove2 22s ease-in-out infinite alternate;
}

@keyframes orbMove1 {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(30px, 20px); }
    100% { transform: translate(-10px, 40px); }
}

@keyframes orbMove2 {
    0%   { transform: translate(0, 0); }
    40%  { transform: translate(-20px, -10px); }
    100% { transform: translate(25px, -30px); }
}

/* ======= CARD 3D (FLIP + TILT) ======= */
.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;

    /* переменные для JS: флип + наклон */
    --flip: 0deg;
    --tiltX: 0deg;
    --tiltY: 0deg;

    transform: rotateX(var(--tiltX)) rotateY(calc(var(--flip) + var(--tiltY)));

    transition:
        transform 0.8s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.4s ease,
        filter 0.3s ease;
    box-shadow: 0 22px 60px rgba(0,0,0,0.85);
    z-index: 2; /* выше, чем фоновые штуки */
}

/* поворот при логине */
.flip-card.flipped {
    --flip: 180deg; /* только меняем угол флипа, наклон остаётся */
}


/* неоновое свечение вокруг карточки в цвете статуса */
.flip-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: var(--radius);
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, var(--status-color-main) 0%, transparent 60%),
        radial-gradient(circle at 90% 100%, rgba(129,140,248,0.35), transparent 65%);
    opacity: 0.9;
    z-index: -1;
}

/* ======= SIDES ======= */
.card-side {
    position: absolute;
    inset: 0;                     /* топ/право/низ/лево = 0, чтобы сторона заполняла карточку */
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    backface-visibility: hidden;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding: 50px;

    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    background: linear-gradient(145deg, rgba(13,18,32,0.96), rgba(13,18,32,0.88));
    box-shadow: inset 0 0 0 1px rgba(148,163,184,0.16);
}

/* лёгкая подсветка верхнего края */
.card-side::before,
.card-side::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0.55;
    mix-blend-mode: screen;
}

.card-side::before {
    inset: 0;
    border-radius: inherit;
    border-top: 1px solid rgba(148,163,184,0.45);
    background: linear-gradient(
        90deg,
        rgba(56,189,248,0.3),
        transparent 40%,
        rgba(129,140,248,0.3)
    );
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
}

/* блик уголка справа сверху */
.card-side::after {
    width: 120px;
    height: 120px;
    top: -10px;
    right: -10px;
    background: radial-gradient(circle at 100% 0%, rgba(148,163,184,0.55), transparent 70%);
    filter: blur(12px);
}

/* ======= FRONT ======= */
.card-front {
    background: linear-gradient(150deg, var(--front-bg), #0b1120 40%);
    display: flex;
    flex-direction: column;
    justify-content: center; /* логин по центру по вертикали */
}

/* ======= BACK ======= */
.card-back {
    background: linear-gradient(150deg, var(--back-bg), #0b1120 45%);
    transform: rotateY(180deg);
}

/* ======= TITLES / LABELS ======= */
h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
}

.label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

/* ======= INPUTS ======= */
input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-size: 14px;
    margin-bottom: 16px;
    transition:
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out;
}

input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 1px rgba(6,182,212,0.6), 0 0 20px rgba(6,182,212,0.45);
    background: rgba(15,23,42,0.9);
}

#loginForm input,
#setPasswordForm input {
    width: 100%;
}

#loginForm,
#setPasswordForm {
    margin-top: 10px;
}

/* ======= BUTTONS ======= */
.btn {
    padding: 12px;
    width: 100%;
    background: linear-gradient(135deg, var(--status-color-main), #22c55e);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #041015;
    font-weight: 600;
    margin-top: 5px;

    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,23,42,0.85);
    transition:
        box-shadow 0.2s ease-out,
        filter 0.2s ease-out,
        background 0.3s ease-out;
}

/* shine-эффект */
.btn::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 40%;
    height: 180%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 45%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.btn:hover {
    box-shadow: 0 16px 40px rgba(15,23,42,0.95);
    filter: brightness(1.04);
}

.btn:hover::after {
    opacity: 0.65;
}

.btn:hover::before {
    opacity: 1;
    animation: btnShine 0.9s ease-out;
}

.btn:active {
    box-shadow: 0 6px 18px rgba(15,23,42,0.9);
    filter: brightness(0.97);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--status-color-main);
    color: var(--status-color-main);
    box-shadow: none;
}

@keyframes btnShine {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

/* ======= STATUS TEXT ======= */
.status {
    margin-top: 10px;
    font-size: 12px;
}

.error {
    color: #f87171;
}

.success {
    color: #4ade80;
}

/* ======= PROFILE BLOCK ======= */
.profile-block {
    margin-top: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.profile-item {
    margin-bottom: 8px;
    color: var(--muted);
}

.profile-item span {
    color: var(--text);
    font-weight: 600;
}

/* ======= VISITS ======= */
.visits-title {
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 6px;
    color: var(--muted);
}

.visits-box {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px;
    background: radial-gradient(circle at 0% 0%, rgba(15,23,42,0.96), rgba(15,23,42,0.9));

    /* скрыть скроллбар, но оставить прокрутку */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* старый Edge/IE */
}

/* WebKit-браузеры (Chrome, Edge, Opera, Safari) */
.visits-box::-webkit-scrollbar {
    width: 0;
    height: 0;
}


.visit-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(148,163,184,0.16);
    font-size: 13px;
    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.visit-row:last-child {
    border-bottom: none;
}

/* hover визита с подсветкой цветом статуса */
.visit-row:hover {
    background: rgba(15,23,42,0.9);
    border-left: 2px solid var(--status-color-main);
    box-shadow: inset 0 0 0 1px rgba(148,163,184,0.2);
}

/* ======= PROFILE HEADER + STATUS ======= */
.profile-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-id-line {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ======= СТАТУС-БЕЙДЖ ======= */
.status-pill {
    position: relative;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    cursor: default;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.7);
    color: var(--text);
    box-shadow: 0 0 14px rgba(15,23,42,0.8);
}

/* пульс в цвете статуса */
.status-pill::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid var(--status-color-main);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: statusPulse 2.8s ease-out infinite;
}

@keyframes statusPulse {
    0%   { opacity: 0;   transform: scale(0.8); box-shadow: 0 0 0 rgba(255,255,255,0); }
    40%  { opacity: 0.4; transform: scale(1.06); box-shadow: 0 0 12px rgba(255,255,255,0.35); }
    100% { opacity: 0;   transform: scale(1.1);  box-shadow: 0 0 0 rgba(255,255,255,0); }
}

.status-tooltip {
    position: absolute;
    top: 130%;
    left: 0;
    width: 260px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    font-size: 12px;
    color: var(--muted);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .18s ease-out, transform .18s ease-out;
    z-index: 20;
}

.status-pill:hover .status-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.status-row {
    margin-bottom: 4px;
}

.status-row:last-child {
    margin-bottom: 0;
}

.status-label {
    color: var(--muted);
}

.status-value {
    color: var(--text);
    font-weight: 500;
}

/* ======= УРОВЕНЬ / ПРОГРЕСС ======= */
.level-wrap {
    margin-top: 4px;
}

.level-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.level-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    overflow: hidden;
}

.level-bar-fill {
    height: 100%;
    width: 0;              /* ширина задаётся из JS */
    border-radius: 999px;
    background: #7d7d7d;   /* базовый фон, до логина */
    transition: width .35s ease-out, background 0.25s ease-out;
}

.level-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

/* ======= HELPERS ======= */
.muted {
    color: var(--muted);
}


/* === АНИМАЦИЯ ЖИДКОГО СВЕЧЕНИЯ ПО ЦВЕТУ СТАТУСА === */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: radial-gradient(circle at 20% -20%, var(--status-color-main) 0%, transparent 60%),
                radial-gradient(circle at 80% 120%, var(--status-color-main) 0%, transparent 60%);
    animation: btnFluid 6s ease-in-out infinite alternate;
    filter: blur(14px);
    opacity: 0.55;
}

@keyframes btnFluid {
    0%   { transform: translate(-5%, -5%) scale(1); }
    50%  { transform: translate(5%, 5%) scale(1.15); }
    100% { transform: translate(-3%, 3%) scale(1.05); }
}

/* Ховер делает свечение ярче */
.btn:hover::before {
    opacity: 0.9;
    filter: blur(18px);
}


h2, .profile-id-line, .status-pill {
    text-shadow: 0 0 4px var(--status-color-main),
                 0 0 10px rgba(0,0,0,0.4);
    transition: text-shadow 0.3s ease-out;
}

.profile-item span,
.level-label,
.level-meta,
.visits-title {
    text-shadow: 0 0 3px var(--status-color-main);
}


.visit-row:hover {
    background: rgba(15,23,42,0.9);
    border-left: 2px solid var(--status-color-main);
    box-shadow:
        inset 0 0 12px rgba(0,0,0,0.2),
        0 0 12px var(--status-color-main);
    transform: translateX(2px);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}


.breath {
    animation: breathGlow 4s ease-in-out infinite;
}

@keyframes breathGlow {
    0%   { text-shadow: 0 0 3px var(--status-color-main); }
    50%  { text-shadow: 0 0 8px var(--status-color-main); }
    100% { text-shadow: 0 0 3px var(--status-color-main); }
}


.btn:active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--status-color-main) 0%, transparent 60%);
    opacity: 0.4;
    animation: btnPop 0.25s ease-out;
}

@keyframes btnPop {
    0%   { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ===== ПОЛНОЕ ОТКЛЮЧЕНИЕ ВЫДЕЛЕНИЯ, COPY/PASTE, КОНТЕКСТНОГО МЕНЮ ===== */

* {
    -webkit-user-select: none !important;  /* Safari / Chrome / iOS */
    -moz-user-select: none !important;     /* Firefox */
    -ms-user-select: none !important;      /* old Edge */
    user-select: none !important;

    -webkit-touch-callout: none !important; /* отключает меню "копировать" на iOS */
    -webkit-tap-highlight-color: transparent !important; /* убирает синюю подсветку */
}

/* Разрешаем выделять текст только внутри инпутов */
input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;

    -webkit-touch-callout: default !important;
}

/* Отключение долгого нажатия на изображения */
img {
    -webkit-touch-callout: none !important;
    pointer-events: none;
}

/* Блокировка системного меню по удержанию */
body {
    -webkit-touch-callout: none !important;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

.status-benefits {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 0 0, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
    font-size: 11.5px;
    color: var(--muted);
    backdrop-filter: blur(10px);
}

.status-benefits-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--text);
    opacity: 0.85;
}

.status-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.status-benefits-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 3px;
    line-height: 1.3;
}

.status-benefits-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--status-color-main);
    opacity: 0.8;
    font-size: 12px;
}


h2 {
    font-size: 26px; /* было 22px */
}

input {
    font-size: 16px; /* было 14px */
    padding: 14px 16px;
}

.btn {
    font-size: 16px;
    padding: 14px;
}

.profile-header {
    gap: 20px;
}

.status-pill {
    font-size: 13px;
    padding: 6px 14px;
}

.level-label {
    font-size: 15px;
}

.level-meta {
    font-size: 13px;
}

.status-benefits {
    font-size: 13px;
}

.status-benefits-title {
    font-size: 14px;
}

.lang-toggle {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 99;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);

    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Ховер: подкрашиваем оттенком статуса */
.lang-toggle:hover {
    background: var(--status-color-main, #06b6d4);
    color: #000;
    transform: scale(1.08);
}


@media (max-width: 480px) {
    .lang-toggle {
        top: 10px;
        right: 12px;
        padding: 5px 10px;
        font-size: 13px;
    }
}


.lang-toggle {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 5;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);

    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;

    transition: all 0.25s ease;
}

.lang-toggle:hover {
    background: var(--status-color-main, #06b6d4);
    color: #000;
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .lang-toggle {
        top: 10px;
        right: 12px;
        padding: 5px 10px;
        font-size: 13px;
    }
}

.card-back {
    display: flex;
    flex-direction: column;
}

.card-back > *:last-child {
    margin-top: auto;
}

#logoutBtn {
    transform: translateZ(2px);
    position: relative;
    z-index: 10;
}


/* Центрируем текст по вертикали и убираем перекосы */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;      /* равные отступы сверху/снизу */
    line-height: 1;          /* без лишнего воздуха от шрифта */
    box-sizing: border-box;
}

/* Кнопка "Выйти" — отдельная тонкая настройка под 3D */
#logoutBtn {
    margin-top: 22px;

    /* Если визуально всё ещё кажется, что снизу воздуха меньше —
       делаем небольшую компенсацию: чуть больше паддинг снизу */
    padding-top: 20px;
    padding-bottom: 20px;

    position: relative;
    transform: translateZ(2px);  /* немного выдвигаем вперёд, чтобы 3D меньше "жевал" низ */
    z-index: 10;
}

/* ===== ОБЩИЙ ЛЕЙАУТ: КАРТОЧКА + КОЛОНКА СПРАВА ===== */
.page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    /* добавим возможность чуть “поджаться” при узком экране */
    flex-wrap: nowrap;
}


/* Чтобы всё по центру как раньше */
body {
    margin: 0;
    background: radial-gradient(circle at top, #1e293b 0%, #020617 70%);
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== КОЛОНКА СОЦСЕТЕЙ (ДЕСКТОП) ===== */
.social-column {
    display: flex;
    flex-direction: column;
    gap: 28px; /* премиальная дистанция */

    opacity: 0;
    transform: translateX(22px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.social-column.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* УВЕЛИЧЕННЫЕ СОЦСЕТИ НА ДЕСКТОПЕ */
.social-icon {
    width: 75px;
    height: 75px;
    border-radius: 22px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    box-shadow: 0 18px 38px rgba(0,0,0,0.70);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        filter 0.3s ease;
}

.icon-svg {
    width: 40px;
    height: 40px;
    fill: var(--text);
    transition: fill 0.3s ease;
}


/* Показать после авторизации */
.social-column.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}


/* Лёгкий "ореол" в цвет статуса */
.social-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 0%,
        color-mix(in srgb, var(--status-color-main, #06b6d4) 60%, transparent),
        transparent 70%
    );
    opacity: 0.0;
    transition: opacity 0.25s ease;
}

/* Ховер-эффект: подсветка в цвет статуса */
.social-icon:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--status-color-main, #06b6d4);
    box-shadow: 0 16px 32px rgba(0,0,0,0.9);
    background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.24), rgba(15,23,42,0.98));
    color: #0b1120;
}

.social-icon:hover::before {
    opacity: 0.9;
}

/* Лёгкая брендинг-подсказка по контуру (чуть разный оттенок) */
.social-inst {
    /* оставляем статус как главный цвет, инста — только контур */
}

.social-fb {
    /* можно добавить чуть синего, если захочешь брендовый оттенок */
}

.social-wa {
    /* сюда при желании можно добавить чуть зелёного градиента */
}







.social-column.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.social-column.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}


/* SVG тоже больше — 40px */
.icon-svg {
    width: 40px;
    height: 40px;
    fill: var(--text);
    transition: fill 0.3s ease;
}

/* ГЛОУ увеличен и ярче */
.social-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(
        circle at 50% 30%,
        color-mix(in srgb, var(--status-color-main, #06b6d4) 80%, transparent),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* ХОВЕР — более сильный подъем и свет */
.social-icon:hover {
    transform: translateY(-4px) scale(1.12);
    border-color: var(--status-color-main, #06b6d4);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 24px 48px rgba(0,0,0,0.85);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover .icon-svg {
    fill: #041015;
}



/* ===== МОБИЛЬНАЯ ВЕРСИЯ (ДО 600px) ===== */
@media (max-width: 600px) {
    /* Карточка + иконки ВСЕГДА РЯДОМ, как на ПК */
    .page-wrap {
        flex-direction: row;
        align-items: center;   /* можно поставить flex-start, если хочешь прижать к верху */
        justify-content: center;
        gap: 12px;
    }

    /* Карточку сужаем, чтобы влезла вместе с колонкой иконок */
    .flip-container {
        width: 100%;
        max-width: 300px;      /* ключевой момент — не больше ~300px */
        height: 580px;         /* можно регулировать по вкусу */
    }

    /* Колонка соцсетей остаётся колонкой, просто с меньшим шагом */
    .social-column {
        flex-direction: column;
        gap: 12px;
        transform: translateX(10px); /* чуть ближе к карточке */
    }

    /* Иконки меньше, чтобы точно влезли рядом с карточкой */
    .social-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.7);
    }

    .icon-svg {
        width: 24px;
        height: 24px;
    }
}

/* ==== ФИКС ДЛЯ МОБИЛЬНОЙ ВЕРСТКИ ПОСЛЕ meta viewport ==== */
@media (max-width: 600px) {

    /* Убираем жёсткое центрирование, чтобы карточка не "вылетала" вверх */
    body {
        display: block;        /* вместо flex */
        padding: 20px 0;       /* немного отступов сверху и снизу */
        min-height: auto;      /* убираем жесткую высоту */
    }

    /* Контейнер с карточкой и иконками */
    .page-wrap {
        display: flex;
        flex-direction: row;   /* держим иконки справа */
        align-items: flex-start; 
        justify-content: center;
        gap: 16px;
        padding-top: 40px;     /* возвращает визуальное центрирование */
    }

    /* Карточку делаем ниже и меньше */
    .flip-container {
        max-width: 320px;
        height: 560px;        /* ключевое уменьшение высоты */
    }

    /* Соц иконки — как ты хотел */
    .social-column {
        flex-direction: column;
        gap: 14px;
    }

    .social-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .icon-svg {
        width: 26px;
        height: 26px;
    }
}


