/* Toast / notification for memo actions */
.feed-memo-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.96);
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.45);
    padding: 10px 18px;
    color: var(--gold);
    font-size: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.8);
    z-index: 12000;
    max-width: 360px;
    width: auto;
    text-align: center;
    backdrop-filter: blur(8px);
    animation: memoToastIn 0.28s ease-out;
}
.feed-memo-toast.error {
    border-color: rgba(255,100,100,0.7);
    color: #ffb3b3;
}
.feed-memo-toast.success {
    border-color: rgba(144,238,144,0.8);
    color: #c8ffc8;
}
@keyframes memoToastIn {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
/* =========================================
     ARKANA PREMIUM THEME
   ========================================= */

:root {
    --gold: #d4af37;
    --gold-soft: rgba(212,175,55,0.35);
    --gold-glow: rgba(212,175,55,0.18);

    --dark-bg: #0b0b0b;
    --dark-card: #141414;
    --dark-border: #222;

    --radius: 14px;
    --transition: 0.25s ease;
}

/* GLOBAL */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--dark-bg);
    color: #ccc;
    margin: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(212,175,55,0.3);
    color: #fff;
}

/* Custom scrollbar (Webkit + Firefox) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
* { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,0.3) var(--dark-bg); }

/* Focus-visible for accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e8c547;
}

/* MAIN */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 25px;
}

/* CARD STYLE */
.card {
    background: var(--dark-card);
    border-radius: var(--radius);
    border: 1px solid var(--dark-border);
    padding: 25px;
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 40px var(--gold-glow);
}

/* GLOW BOX — subtle gold glow border for premium cards */
.glow-box {
    box-shadow: 0 0 20px rgba(212,175,55,0.08), 0 0 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(212,175,55,0.18);
}
.glow-box:hover {
    box-shadow: 0 0 30px rgba(212,175,55,0.15), 0 0 50px rgba(0,0,0,0.35);
    border-color: rgba(212,175,55,0.4);
}

/* Animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .fade-up.visible {
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
        ARKANA HOME — PREMIUM GRID
========================================= */

.arkana-title {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: var(--gold);
    text-shadow: 0 0 12px var(--gold-soft);
    margin-bottom: 10px;
}

.arkana-subtitle {
    font-size: 18px;
    color: #aaa;
    margin-top: -10px;
    margin-bottom: 35px;
}

.arkana-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* BUTTON */
.tile-btn {
    display: inline-block;
    background: var(--gold);
    color: black;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s ease;
}

.tile-btn:hover {
    background: #ffe08c;
    box-shadow: 0 0 15px var(--gold-soft);
}

/* ================================
   ARKANA 3D LOGO
================================ */

#arkana3d-logo {
    width: 200px;
    height: 200px;
    margin: 40px auto 10px auto;
    position: relative;
    pointer-events: none;
}

#arkana3d-logo canvas {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

#arkana3d-logo .letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    font-family: 'Cinzel', serif;
    font-size: 90px;
    font-weight: 700;
    color: var(--gold);
    text-shadow:
        0 0 15px rgba(212,175,55,0.35),
        0 0 25px rgba(212,175,55,0.18),
        0 0 40px rgba(212,175,55,0.25);
    pointer-events: none;
    z-index: 10;
}

/* Единственный заголовок ARKANA */
.arkana-hero-title {
    font-family: 'Cinzel', serif;
    font-size: 64px;
    text-align: center;
    color: var(--gold);
    letter-spacing: 6px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.25);
    animation: arkanaglow 4s ease-in-out infinite alternate;
}

@keyframes arkanaglow {
    0% { opacity: 0.85; text-shadow: 0 0 20px var(--gold-soft); }
    100% { opacity: 1; text-shadow: 0 0 45px var(--gold-glow), 0 0 70px var(--gold-soft); }
}

/* Подзаголовок */
.arkana-hero-subtitle {
    text-align: center;
    color: #bdbdbd;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.arkana-runes-title {
    font-family: 'Cinzel', serif;
    font-size: 72px;
    font-weight: 700;
    text-align: center;
    margin: 40px 0 10px 0;
    position: relative;

    background: linear-gradient(90deg, #d4af37, #9c7d22, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation: glowGold 6s linear infinite;
}

@keyframes glowGold {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* =========================================
          ARKANA — GOLDEN RING LOGO
========================================= */

.arkana-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 40px auto 20px auto;
    pointer-events: none;
}

.arkana-logo .letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-family: 'Cinzel', serif;
    font-size: 80px;
    color: var(--gold);
    text-shadow: 0 0 12px var(--gold-soft), 0 0 20px var(--gold-glow);
    z-index: 2;
}

.arkana-logo .ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow:
        0 0 20px var(--gold-soft),
        inset 0 0 25px rgba(212,175,55,0.15);
    animation: spinRing 9s linear infinite;
    z-index: 1;
}

/* Медленное мягкое вращение золотого кольца */
@keyframes spinRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===========================
   ARKANA — ICON TILES
   =========================== */

.tile {
    position: relative;
    overflow: hidden;
}

/* круг с иконкой */
.tile-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255,240,190,0.35), rgba(0,0,0,0.0));
    border: 1px solid rgba(212,175,55,0.4);
    box-shadow: 0 0 22px rgba(0,0,0,0.9), 0 0 24px var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tile-svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tile-svg .soft-stroke {
    stroke-opacity: 0.45;
}

.tile:hover .tile-icon {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 32px rgba(0,0,0,1), 0 0 32px var(--gold-glow);
    border-color: var(--gold);
}

.tile:hover .tile-svg {
    stroke-width: 2;
}

.tile-header {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.04em;
    font-size: 20px;
    margin-bottom: 10px;
}

.tile-body p {
    font-size: 14px;
    line-height: 1.5;
    color: #b4b4b4;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 42px;
    justify-content: center;
}

@media (min-width: 1100px) {
    .tiles-grid {
        grid-template-columns: repeat(3, 320px);
        justify-content: center;
    }
}

.tile {
    background: linear-gradient(180deg, #111, #0a0a0a);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.15);
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
    transition: .35s ease;
}

.tile:hover {
    border-color: var(--gold);
    box-shadow:
        0 0 25px rgba(212,175,55,0.15),
        0 0 40px rgba(212,175,55,0.35);
    transform: translateY(-6px);
}

.tile-icon {
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.55));
}

@keyframes iconPulse {
    0% {
        box-shadow:
            0 0 8px rgba(212,175,55,0.25),
            0 0 16px rgba(212,175,55,0.1);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 14px rgba(212,175,55,0.45),
            0 0 26px rgba(212,175,55,0.25);
        transform: scale(1.04);
    }
    100% {
        box-shadow:
            0 0 8px rgba(212,175,55,0.25),
            0 0 16px rgba(212,175,55,0.1);
        transform: scale(1);
    }
}

.tile-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

.tile:hover .tile-icon {
    animation: iconPulse 1.4s ease-in-out infinite;
    box-shadow:
        0 0 20px rgba(212,175,55,0.55),
        0 0 40px rgba(212,175,55,0.35);
    transform: scale(1.07);
}

.arkana-footer {
    text-align: center;
    padding: 35px 20px 45px;
    color: #999;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(212,175,55,0.1);
    margin-top: 40px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(212,175,55,0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-copy {
    margin: 0;
    font-size: 13px;
    color: #8a8a8a;
}

/* ===== ARKANA — HEADER & NAV ===== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
.arkana-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 20px;
    margin-bottom: 20px;

    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(212,175,55,0.15);
    backdrop-filter: blur(6px);

    position: sticky;
    top: 0;
    z-index: 9998;
    overflow: visible;
}
.arkana-nav .nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    min-width: 0;
}
.arkana-nav .nav-right {
    flex-shrink: 0;
}

.nav-btn {
    color: var(--gold);
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;

    padding: 6px 14px;
    border-radius: 8px;

    background: linear-gradient(180deg, rgba(40,40,40,1), rgba(15,15,15,1));
    border: 1px solid rgba(212,175,55,0.35);

    box-shadow:
        0 2px 6px rgba(0,0,0,0.6),
        inset 0 0 10px rgba(212,175,55,0.05),
        0 0 8px rgba(212,175,55,0.25);

    transition: 0.25s ease;
}

/* Наведение */
.nav-btn:hover {
    color: #f5e6a3;
    background: linear-gradient(180deg, rgba(60,55,40,1), rgba(35,30,20,1));
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 10px rgba(255,215,0,0.3), inset 0 0 8px rgba(255,215,0,0.08);
    transform: translateY(-1px);
}

/* Кнопка "выход" — тёмно-красная стилистика */
.nav-btn.danger {
    border-color: rgba(255,50,50,0.4);
    color: #ff8b8b;
}

.nav-btn.danger:hover {
    background: radial-gradient(circle, #ff4444, #880000);
    border-color: #ff4444;
    color: #000;
    box-shadow:
        0 0 12px rgba(255,80,80,0.95),
        0 0 25px rgba(255,80,80,0.5),
        inset 0 0 10px rgba(255,120,120,0.7);
}

/* Mobile menu toggle button — hidden on desktop */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 8px;
    cursor: pointer;
    color: var(--gold);
    flex-shrink: 0;
    margin-right: 8px;
    padding: 0;
}
.nav-menu-btn span {
    display: block;
    width: 16px; height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-menu-btn:hover { background: rgba(212,175,55,0.1); border-color: var(--gold); }
.nav-menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Backdrop for mobile nav (hidden by default) */
.nav-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (до 768px)
   ПК без изменений
========================================= */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .main-container,
    .arkana-container {
        margin-left: auto;
        margin-right: auto;
        padding: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .card {
        padding: 16px;
        margin-bottom: 16px;
    }

    /* ════════════════════════════════════════
       MOBILE NAVBAR — fixed bar always on top
       ════════════════════════════════════════ */

    /* Hide 3D logo so it doesn't push content down */
    #arkana3d-logo { display: none !important; }

    /* Body offset so content isn't hidden under the fixed bar */
    body { padding-top: 56px !important; }

    /* Fixed navbar bar — z-index 10001, ABOVE the drawer (10000) */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        z-index: 10001 !important;
        background: #0f0f0d !important;
        border-bottom: 0.5px solid rgba(201,162,39,0.2) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Nav row fills the 56px bar exactly */
    .arkana-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 12px !important;
        margin-bottom: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
        position: static !important;
    }

    /* Hamburger — always visible in the bar */
    .nav-menu-btn {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        margin-right: 8px !important;
    }

    /* Right icons (RU/EN, avatar, mail) — pushed to far right */
    .arkana-nav .nav-right {
        margin-left: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* ════════════════════════════════════════
       MOBILE DRAWER — slides in BELOW the bar
       ════════════════════════════════════════ */

    /* Drawer is always in the DOM as a flex column,
       hidden via transform+opacity so CSS transition works */
    .arkana-nav .nav-center {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 56px !important;          /* starts right below the navbar bar */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 56px) !important;
        background: #0d0d0b !important;
        border-bottom: 1px solid rgba(201,162,39,0.15) !important;
        z-index: 10000 !important;     /* below navbar (10001), above page */
        padding: 16px 20px 24px !important;
        gap: 8px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        /* Closed state — slid up out of view */
        transform: translateY(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.25s !important;
    }

    /* Open state — slides down into view */
    .arkana-nav.nav-open .nav-center {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* Each nav link in the drawer */
    .arkana-nav .nav-center .nav-btn {
        display: block !important;
        width: 100% !important;
        font-size: 18px !important;
        padding: 14px 16px !important;
        color: #c9a227 !important;
        background: transparent !important;
        border: 0.5px solid rgba(201,162,39,0.3) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        transform: none !important;
        text-align: left !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .arkana-nav .nav-center .nav-btn:active {
        background: rgba(201,162,39,0.12) !important;
        border-color: rgba(201,162,39,0.6) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Backdrop — covers page below drawer, not the navbar */
    .nav-mobile-backdrop {
        display: none;
        position: fixed;
        top: 56px;
        left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    .nav-mobile-backdrop.is-open { display: block; }

    #arkana3d-logo {
        width: 140px;
        height: 140px;
        margin: 20px auto 8px;
    }

    #arkana3d-logo .letter {
        font-size: 60px;
    }

    .arkana-hero-title {
        font-size: 38px;
        letter-spacing: 2px;
        margin-top: 12px;
    }

    .arkana-runes-title {
        font-size: 42px;
        margin: 24px 8px 8px;
    }

    .arkana-hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .arkana-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .arkana-title {
        font-size: 28px;
    }

    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .tile {
        padding: 18px;
    }

    .tile-header {
        font-size: 18px;
    }

    .tile-body p {
        font-size: 14px;
    }

    .arkana-footer {
        padding: 24px 12px;
        font-size: 13px;
    }

    .profile-page-wrap {
        flex-direction: column;
        padding: 0 12px;
    }

    .profile-main { min-width: 100%; }

    .admin-users-sidebar {
        width: 100%;
        position: static;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 16px;
    }

    .stat-num { font-size: 22px; }

    .feed-wrapper {
        padding: 0 12px;
        margin: 20px auto;
    }

    .arkana-header h1 { font-size: 26px; }
    .arkana-header p { font-size: 14px; }

    .arkana-panel {
        padding: 16px;
        margin-top: 20px;
    }

    .arkana-panel-head {
        flex-wrap: wrap;
    }

    .arkana-panel-head h2 { font-size: 18px; }

    .arkana-row {
        flex-wrap: wrap;
        padding: 12px;
    }

    .arkana-row-main {
        max-width: 100%;
    }

    .search-page {
        padding: 12px;
        margin: 12px auto;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    input, select, textarea, button {
        max-width: 100%;
        box-sizing: border-box;
    }

    .gold-title, .arkana-row-title, .post-username {
        word-break: break-word;
    }

    .circles-grid {
        gap: 12px;
    }

    .timezone-form {
        flex-wrap: wrap;
    }

    .chat-wrapper,
    .messages-page {
        padding: 0 12px;
        margin: 12px auto;
    }

    .page-title { font-size: 22px; }
}

/* =========================================
     ARKANA — Уникальная анимированная реакция «сердечко»
========================================= */
.arkana-reaction-heart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: var(--gold);
    font-size: 15px;
    transition: transform 0.2s;
}
.arkana-reaction-heart:hover {
    transform: scale(1.08);
}
.arkana-reaction-heart .heart-svg {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(180,60,60,0.5));
    animation: arkana-heart-beat 1.2s ease-in-out infinite;
}
.arkana-reaction-heart:active .heart-svg {
    animation: arkana-heart-pop 0.3s ease;
}
.arkana-reaction-heart .heart-count {
    font-weight: 500;
    opacity: 0.95;
}
@keyframes arkana-heart-beat {
    0%, 100% { transform: scale(1); opacity: 1; }
    15% { transform: scale(1.12); opacity: 0.95; }
    30% { transform: scale(1); opacity: 1; }
    45% { transform: scale(1.08); opacity: 0.98; }
    60% { transform: scale(1); opacity: 1; }
}
@keyframes arkana-heart-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}

/* Кибер-иконка комментариев без рамки */
.arkana-reaction-comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: var(--gold);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s;
}
.arkana-reaction-comments:hover {
    transform: scale(1.08);
}
/* Хештеги в постах */
.hashtag-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}
.hashtag-link:hover {
    text-decoration: underline;
}
.post-link {
    color: rgba(212,175,55,0.85);
    text-decoration: none;
    border-bottom: 1px dashed rgba(212,175,55,0.3);
    transition: color 0.2s, border-color 0.2s;
    word-break: break-all;
}
.post-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.arkana-reaction-comments .comments-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px var(--gold-soft));
}

/* =========================================
   SKELETON LOADING
========================================= */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 60%; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-image { width: 100%; height: 200px; border-radius: 12px; }

/* =========================================
   EMPTY STATE (no posts, no results)
========================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a8a8a;
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.7;
}
.empty-state-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    max-width: 400px;
    margin: 0 auto;
}

/* =========================================
   TOOLTIP
========================================= */
.tooltip {
    position: relative;
    cursor: help;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1e1e1e;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid rgba(212,175,55,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
}
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* =========================================
   IMPROVED BUTTONS
========================================= */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: linear-gradient(180deg, #c9a230, #8a6c25);
    border: none;
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(212,175,55,0.2);
}
.btn-gold:hover {
    background: linear-gradient(180deg, #e0bf5a, #a9802f);
    box-shadow: 0 0 20px rgba(212,175,55,0.4);
    transform: translateY(-1px);
    color: #000;
}
.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    background: transparent;
    border: 1px solid rgba(212,175,55,0.35);
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
}
.btn-outline-gold:hover {
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
    color: var(--gold);
}

/* =========================================
   NOTIFICATION DOT / BADGE
========================================= */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================
   SMOOTH PAGE TRANSITIONS
========================================= */
.page-enter {
    animation: pageEnter 0.4s ease-out;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   IMPROVED FORM INPUTS
========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea,
select {
    font-family: 'Inter', sans-serif;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
}

input::placeholder,
textarea::placeholder {
    color: #888;
}

/* =========================================
   DELETE POPUP (comment/post delete confirmation)
========================================= */
.delete-popup {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #0d0d0d;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    z-index: 100;
    min-width: 180px;
    animation: fadeUp 0.2s ease-out;
}
.delete-popup-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
    text-align: center;
}
.delete-popup-inner button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.delete-popup-inner button:first-of-type {
    background: rgba(200,50,50,0.8);
    color: #fff;
}
.delete-popup-inner button:first-of-type:hover {
    background: rgba(220,60,60,1);
    box-shadow: 0 0 12px rgba(255,80,80,0.4);
}
.delete-popup-inner button:last-of-type {
    background: rgba(255,255,255,0.08);
    color: #999;
}
.delete-popup-inner button:last-of-type:hover {
    background: rgba(255,255,255,0.15);
    color: #ccc;
}

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20,20,20,0.9);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(212,175,55,0.3);
    transform: translateY(-2px);
}

/* =========================================
   PAGE LOADING INDICATOR
========================================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.page-loader.active {
    opacity: 1;
}
.page-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), #e8c547, var(--gold), transparent);
    background-size: 200% 100%;
    animation: pageLoaderAnim 1.2s linear infinite;
    border-radius: 0 2px 2px 0;
}
@keyframes pageLoaderAnim {
    0% { background-position: -200% 0; width: 30%; }
    50% { width: 70%; }
    100% { background-position: 200% 0; width: 30%; }
}

/* =========================================
   TOAST NOTIFICATION
========================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
}
.toast {
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(212,175,55,0.3);
    color: #e0e0e0;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
}
.toast.success { border-color: rgba(46,204,113,0.4); }
.toast.error { border-color: rgba(231,76,60,0.4); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* =========================================
   IMPROVED MOBILE SPACING
========================================= */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    .empty-state { padding: 40px 16px; }
    .empty-state-title { font-size: 18px; }
    .toast-container { bottom: 16px; left: 16px; right: 16px; transform: none; }
    .toast { text-align: center; }
}

/* =========================================
   ACCESSIBILITY: Reduced Motion
========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   ACCESSIBILITY: Skip to content link
========================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 99999;
    padding: 12px 24px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* =========================================
   ACCESSIBILITY: Visually hidden labels
========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   BILINGUAL NAV LABELS
========================================= */
.nav-btn .nav-en {
    display: none;
    font-size: 11px;
    opacity: 0.65;
    font-weight: 400;
}
.nav-btn .nav-ru {
    display: inline;
}
.nav-btn:hover .nav-en,
.nav-btn:focus .nav-en {
    display: inline;
    margin-left: 4px;
}
@media (min-width: 768px) {
    .nav-btn .nav-en {
        display: inline;
        margin-left: 4px;
    }
}

/* =========================================
   HEART REACTION ANIMATION
========================================= */
.arkana-reaction-heart {
    position: relative;
    transition: transform 0.15s ease;
}
.arkana-reaction-heart:active {
    transform: scale(0.85);
}
.arkana-reaction-heart.liked .heart-svg path:first-of-type {
    filter: brightness(1.3) saturate(1.4);
}
@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.arkana-reaction-heart.heart-anim {
    animation: heartPop 0.45s ease;
}

/* =========================================
   IMPROVED POST CARD HOVER
========================================= */
.post-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    border-color: rgba(212,175,55,0.35);
    box-shadow: 0 0 20px rgba(212,175,55,0.08);
}

/* =========================================
   BOOKMARK / SAVE BUTTON
========================================= */
.arkana-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: var(--gold);
    font-size: 15px;
    transition: transform 0.2s;
    opacity: 0.7;
}
.arkana-bookmark-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}
.arkana-bookmark-btn.saved {
    opacity: 1;
}
.arkana-bookmark-btn .bookmark-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px var(--gold-soft));
}
@keyframes bookmarkPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(-8deg); }
    60% { transform: scale(0.9) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.arkana-bookmark-btn.bookmark-anim {
    animation: bookmarkPop 0.4s ease;
}

/* =========================================
   SHARE BUTTON
========================================= */
.arkana-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: var(--gold);
    font-size: 15px;
    transition: transform 0.2s;
    opacity: 0.7;
}
.arkana-share-btn:hover {
    transform: scale(1.08);
    opacity: 1;
}
.arkana-share-btn .share-svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* =========================================
   POST TEXT IMPROVEMENTS
========================================= */
.post-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    font-size: 15px;
    color: #d4d4d4;
    margin: 12px 0;
}

/* =========================================
   IMPROVED NAV BADGE PULSE
========================================= */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.5); }
    50% { box-shadow: 0 0 0 4px rgba(192,57,43,0); }
}
.badge-count.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

/* =========================================
   CATEGORY TAG CHIPS
========================================= */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    text-decoration: none;
    transition: 0.2s;
}
.tag-chip:hover {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.4);
    color: var(--gold);
}

/* =========================================
   PROFILE STATS CARD
========================================= */
.profile-stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px 0;
}
.profile-stat-item {
    text-align: center;
    min-width: 70px;
}
.profile-stat-num {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}
.profile-stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* =========================================
   CIRCLE CARD IMPROVEMENTS
========================================= */
.circle-card {
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}
.circle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.circle-card:hover::before {
    opacity: 1;
}
.circle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(212,175,55,0.1);
}

/* =========================================
   ONLINE STATUS INDICATOR
========================================= */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.status-dot.online { background: #2ecc71; box-shadow: 0 0 6px rgba(46,204,113,0.5); }
.status-dot.away { background: #f39c12; }
.status-dot.busy { background: #e74c3c; }
.status-dot.offline { background: #555; }

/* =========================================
   IMPROVED CONFIRM MODAL
========================================= */
.arkana-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}
.arkana-modal-box {
    background: #141414;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 16px 64px rgba(0,0,0,0.6);
    animation: modalSlideUp 0.25s ease;
}
.arkana-modal-text {
    font-size: 15px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 24px;
}
.arkana-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================
   ARKANA FEED (moved from arkana_feed.html)
========================================= */
.feed-guest-banner {
    margin-bottom: 28px;
    border-radius: 18px;
    border: 1px solid rgba(212,175,55,0.2);
    background: linear-gradient(145deg, rgba(20,18,12,0.95), rgba(10,10,10,0.98));
    box-shadow: 0 0 40px rgba(212,175,55,0.08), 0 8px 32px rgba(0,0,0,0.5);
    overflow: hidden;
}
.feed-guest-banner-inner {
    padding: 36px 32px;
    text-align: center;
}
.feed-guest-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(90deg, #d4af37, #9c7d22, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glowGold 6s linear infinite;
    margin: 0 0 12px;
}
.feed-guest-desc {
    font-size: 15px;
    color: #b4b4b4;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 24px;
}
.feed-guest-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.feed-guest-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    cursor: pointer;
}
.feed-guest-btn-primary {
    background: linear-gradient(180deg, #b89630, #8a6c25);
    color: #000;
    border: none;
    box-shadow: 0 2px 12px rgba(212,175,55,0.3);
}
.feed-guest-btn-primary:hover {
    background: linear-gradient(180deg, #e0bf5a, #a9802f);
    box-shadow: 0 0 24px rgba(212,175,55,0.5);
    transform: translateY(-2px);
    color: #000;
}
.feed-guest-btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212,175,55,0.35);
}
.feed-guest-btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(212,175,55,0.08);
    color: var(--gold);
}
.feed-guest-desc-en {
    font-size: 13px;
    color: #8a8a8a;
    margin-top: -8px;
    font-style: italic;
}
@media (max-width: 640px) {
    .feed-guest-banner-inner { padding: 28px 20px; }
    .feed-guest-title { font-size: 28px; }
    .feed-guest-desc { font-size: 14px; }
    .feed-guest-desc-en { font-size: 12px; }
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.comment-action-btn {
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    color: var(--gold);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}
.comment-action-btn:hover {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.45);
    transform: translateY(-1px);
}
.comment-action-btn.danger {
    color: #ff4040;
    border-color: rgba(255,64,64,0.3);
}
.comment-action-btn.danger:hover {
    background: rgba(255,64,64,0.15);
    border-color: rgba(255,64,64,0.5);
}
.feed-login-error {
    background: rgba(200,60,60,0.2);
    border: 1px solid rgba(255,80,80,0.4);
    color: #ffb3b3;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
}
.feed-login-error a { color: var(--gold); }
.feed-login-error-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #ffb3b3;
    font-size: 20px;
    cursor: pointer;
}
.feed-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.feed-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.feed-main { flex: 1; min-width: 0; max-width: 800px; }
@media (max-width: 1100px) {
    .feed-row { flex-direction: column; }
    .feed-main { max-width: 100%; order: 2; }
    .feed-memo-wrap { order: 1; margin-top: 0; width: 100%; }
    .feed-memo-wrap:has(.feed-memo-scroll.collapsed) { width: 100%; }
    .feed-memo-scroll { width: 100%; }
}
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.post-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid rgba(212,175,55,0.3);
}
.post-username {
    color: var(--gold);
    font-size: 17px;
}
.post-date {
    font-size: 13px;
    opacity: 0.6;
}
.post-media {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: #000;
}
.post-media img:hover {
    transform: scale(1.01);
}
.post-media img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.post-media.feed-video-wrap {
    position: relative;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    max-height: min(80vh, 600px);
    cursor: pointer;
}
.post-media.feed-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #000;
}
.post-media.feed-video-wrap .feed-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}
.post-media.feed-video-wrap .feed-video-play svg {
    width: 64px;
    height: 64px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.post-content {
    margin: 12px 0;
    white-space: pre-wrap;
    line-height: 1.45;
}
.actions {
    margin-top: 14px;
    display: flex;
    gap: 16px;
}
.action-btn {
    background: #141414;
    border: 1px solid rgba(212,175,55,0.25);
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--gold);
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}
.action-btn:hover {
    transform: translateY(-2px);
}
.comments-block {
    margin-top: 16px;
    padding: 16px 18px;
    background: linear-gradient(145deg, rgba(18,18,22,0.98) 0%, rgba(12,12,16,0.98) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.18);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(212,175,55,0.06);
}

/* ════════════════════════════════════════════
   MESSENGER LAYOUT — shared for /messages & /messages/{id}
   ════════════════════════════════════════════ */
.msng-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px 32px;
}
.msng-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 160px);
    min-height: 480px;
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    background: #0f0f14;
    box-shadow: 0 4px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* ── Sidebar ── */
.msng-sidebar {
    width: 300px;
    min-width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(212,175,55,0.12);
    background: #13131a;
}
.msng-sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 13px;
    border-bottom: 1px solid rgba(212,175,55,0.12);
    flex-shrink: 0;
}
.msng-sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.05em;
}
.msng-sidebar-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212,175,55,0.08);
    color: rgba(212,175,55,0.7);
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.msng-sidebar-back:hover { background: rgba(212,175,55,0.18); color: #d4af37; }
.msng-dialogs-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.18) transparent;
}
.msng-dialogs-list::-webkit-scrollbar { width: 4px; }
.msng-dialogs-list::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.2); border-radius: 2px; }

/* ── Dialog item ── */
.msng-dialog {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    text-decoration: none;
    color: #ddd;
    border-left: 3px solid transparent;
    transition: background 0.16s, border-color 0.16s;
    cursor: pointer;
}
.msng-dialog:hover {
    background: rgba(212,175,55,0.07);
    border-left-color: rgba(212,175,55,0.35);
}
.msng-dialog--active {
    background: rgba(212,175,55,0.13) !important;
    border-left-color: #d4af37 !important;
}
.msng-dialog--unread {
    background: rgba(212,175,55,0.05);
    border-left-color: rgba(212,175,55,0.45);
}
.msng-dialog-ava-wrap { flex-shrink: 0; position: relative; }
.msng-dialog-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(212,175,55,0.22);
    display: block;
}
.msng-dialog-body { flex: 1; min-width: 0; }
.msng-dialog-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}
.msng-dialog-row--preview { margin-top: 3px; }
.msng-dialog-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #e8dfc8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.msng-dialog:hover .msng-dialog-name,
.msng-dialog--active .msng-dialog-name { color: #d4af37; }
.msng-dialog-time {
    font-size: 11px;
    color: #5a5a6a;
    flex-shrink: 0;
    white-space: nowrap;
}
.msng-dialog--unread .msng-dialog-time { color: rgba(212,175,55,0.6); }
.msng-dialog-preview {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.msng-dialog--unread .msng-dialog-preview { color: #999; font-weight: 500; }
.msng-dialog-badge {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #0b0b10;
    background: #d4af37;
    border-radius: 9px;
}
.msng-dialog-animate {
    opacity: 0;
    transform: translateX(-6px);
    animation: msngDialogIn 0.3s cubic-bezier(0.34,1.1,0.64,1) forwards;
}
@keyframes msngDialogIn { to { opacity: 1; transform: translateX(0); } }

/* ── Main panel ── */
.msng-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0f0f14;
}

/* ── Welcome screen ── */
.msng-welcome { align-items: center; justify-content: center; }
.msng-welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 24px 40px;
    text-align: center;
    max-width: 340px;
}
.msng-welcome-icon { width: 64px; height: 64px; opacity: 0.25; color: #d4af37; }
.msng-welcome-title { font-family: 'Cinzel', serif; font-size: 17px; color: rgba(212,175,55,0.55); margin: 0; }
.msng-welcome-sub { font-size: 13px; color: #555; margin: 0; line-height: 1.6; }

/* ── Empty state ── */
.msng-empty { padding: 28px 16px; color: #777; font-size: 13px; text-align: center; }

/* ── Chat page overrides ── */
.msng-layout--chat {
    height: calc(100vh - 160px);
    min-height: 500px;
}
/* msng-main растягивается через flex, chat-wrapper заполняет его полностью */
.msng-layout--chat .msng-main {
    overflow: hidden;
    min-height: 0;
}
.msng-layout--chat .chat-wrapper {
    flex: 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* ── Mobile ── */
@media (max-width: 860px) {
    .msng-wrap { padding: 0; }
    .msng-layout {
        border: none;
        border-radius: 0;
        flex-direction: column;
        min-height: auto;
        box-shadow: none;
    }
    .msng-layout--chat {
        height: auto;
        min-height: 100dvh;
        border: none;
        border-radius: 0;
        overflow: visible;
    }
    .msng-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid rgba(212,175,55,0.12); }
    .msng-sidebar--chat { display: none !important; }
    .msng-main.msng-welcome { display: none; }
    .msng-layout--chat .msng-main { overflow: visible; }
    .msng-layout--chat .chat-wrapper {
        flex: none !important;
        height: auto !important;
        min-height: calc(100dvh - 60px) !important;
    }
}


/* ARKANA LANDING ENHANCEMENTS */
.landing-shell {
    padding-top: 10px;
    padding-bottom: 36px;
}

.landing-hero,
.landing-final,
.landing-trust {
    background: linear-gradient(180deg, rgba(18,18,18,0.98), rgba(10,10,10,0.96));
    border-radius: 20px;
    padding: 34px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.landing-kicker {
    display: inline-flex;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,55,0.28);
    background: rgba(212,175,55,0.08);
    color: #e6d3a0;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.landing-title {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: left;
}

.landing-lead {
    font-size: 24px;
    line-height: 1.45;
    color: #f1eee4;
    margin: 0 0 16px;
    max-width: 760px;
}

.landing-sublead,
.landing-section-head p,
.landing-step p,
.landing-glance-card p,
.landing-final p {
    color: #bdb7aa;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.landing-primary {
    min-width: 180px;
    text-align: center;
}

.landing-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--gold);
    background: rgba(255,255,255,0.02);
    transition: 0.2s ease;
}

.landing-secondary-btn:hover {
    border-color: var(--gold);
    color: #ffe08c;
    box-shadow: 0 0 15px rgba(212,175,55,0.14);
}

.landing-note {
    margin-top: 14px;
    color: #978f7e;
    font-size: 14px;
}

.landing-glance-grid,
.landing-benefits-grid,
.landing-steps-grid {
    display: grid;
    gap: 16px;
}

.landing-glance-grid {
    grid-template-columns: 1fr;
}

.landing-glance-card,
.landing-step,
.landing-benefit-item {
    background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(10,10,10,0.92));
    border-radius: 16px;
    padding: 20px;
}

.landing-glance-card h3,
.landing-step h3,
.landing-section-head h2,
.landing-final h2 {
    color: var(--gold);
    margin-top: 0;
}

.landing-section {
    margin-top: 34px;
}

.landing-section-head {
    max-width: 860px;
    margin-bottom: 18px;
}

.landing-section-head-left {
    margin-bottom: 10px;
}

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

.landing-benefit-item {
    color: #e2ddcf;
    font-size: 15px;
    line-height: 1.65;
}

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

.landing-step-num {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--gold);
    font-weight: 700;
}

.landing-trust-list {
    margin: 0;
    padding-left: 20px;
    color: #ddd7ca;
    line-height: 1.8;
}

.landing-trust-list li + li {
    margin-top: 10px;
}

.landing-final {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 20px;
    align-items: center;
}

.landing-actions-final {
    justify-content: flex-end;
}

@media (max-width: 1080px) {
    .landing-hero,
    .landing-final,
    .landing-steps-grid {
        grid-template-columns: 1fr;
    }

    .landing-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-actions-final {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .landing-hero,
    .landing-final,
    .landing-trust {
        padding: 22px;
    }

    .landing-title,
    .landing-section-head h2,
    .landing-final h2 {
        text-align: left;
    }

    .landing-lead {
        font-size: 20px;
    }

    .landing-benefits-grid,
    .landing-steps-grid {
        grid-template-columns: 1fr;
    }

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

    .landing-primary,
    .landing-secondary-btn {
        width: 100%;
    }
}
/* ARKANA LANDING NARRATIVE REBUILD */
.landing-hero-description {
    margin-top: 0;
    max-width: 720px;
}

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

.landing-problem-grid .landing-benefit-item h3,
.landing-value-grid .landing-glance-card h3 {
    margin-bottom: 10px;
}

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

.landing-steps-grid-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.landing-benefit-item p,
.landing-value-grid .landing-glance-card p {
    margin: 0;
}

@media (max-width: 1080px) {
    .landing-problem-grid,
    .landing-value-grid,
    .landing-steps-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .landing-problem-grid,
    .landing-value-grid,
    .landing-steps-grid-wide {
        grid-template-columns: 1fr;
    }
}
/* ARKANA LANDING DEPTH UPGRADE */
.landing-shell {
    position: relative;
    isolation: isolate;
}

.landing-shell::before {
    content: "";
    position: absolute;
    inset: -80px 0 auto;
    height: 480px;
    background:
        radial-gradient(circle at 18% 10%, rgba(212,175,55,0.16), transparent 42%),
        radial-gradient(circle at 78% 18%, rgba(212,175,55,0.1), transparent 34%),
        radial-gradient(circle at 52% 0%, rgba(255,255,255,0.035), transparent 28%);
    pointer-events: none;
    z-index: -1;
    filter: blur(10px);
}

.landing-section {
    position: relative;
}

.landing-section::before {
    content: "";
    position: absolute;
    inset: -18px 0 auto;
    height: 120px;
    background: linear-gradient(180deg, rgba(212,175,55,0.045), rgba(212,175,55,0));
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
}

.landing-hero,
.landing-final,
.landing-trust {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,0.12), transparent 34%),
        radial-gradient(circle at right center, rgba(212,175,55,0.08), transparent 30%),
        linear-gradient(180deg, rgba(22,22,22,0.98), rgba(9,9,9,0.96));
    border: 1px solid rgba(212,175,55,0.2);
    box-shadow:
        0 28px 60px rgba(0,0,0,0.36),
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 0 40px rgba(212,175,55,0.07);
}

.landing-hero::before,
.landing-final::before,
.landing-trust::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 18%, rgba(255,255,255,0.065), transparent 18%),
        radial-gradient(circle at 82% 24%, rgba(212,175,55,0.12), transparent 24%);
    opacity: 0.8;
}

.landing-title {
    background: linear-gradient(180deg, #f8edbf 0%, #d4af37 48%, #a8831d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(212,175,55,0.16), 0 10px 30px rgba(0,0,0,0.34);
    letter-spacing: 0.08em;
}

.landing-lead {
    color: #f7f2e6;
    text-shadow: 0 10px 34px rgba(0,0,0,0.34);
}

.landing-sublead,
.landing-section-head p,
.landing-step p,
.landing-glance-card p,
.landing-final p,
.landing-benefit-item p {
    color: #c9c1b2;
    line-height: 1.78;
}

.landing-section-head h2,
.landing-final h2,
.landing-glance-card h3,
.landing-step h3,
.landing-benefit-item h3 {
    text-shadow: 0 6px 24px rgba(0,0,0,0.32);
}

.tile-btn,
.landing-secondary-btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        color 0.24s ease;
}

.tile-btn::before,
.landing-secondary-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 48%, transparent 100%);
    opacity: 0;
    transform: translateX(-120%);
    transition: transform 0.55s ease, opacity 0.3s ease;
}

.tile-btn:hover,
.landing-secondary-btn:hover {
    transform: translateY(-2px);
}

.tile-btn:hover {
    box-shadow: 0 14px 30px rgba(212,175,55,0.22), 0 0 24px rgba(212,175,55,0.16);
}

.tile-btn:hover::before,
.landing-secondary-btn:hover::before {
    opacity: 1;
    transform: translateX(120%);
}

.landing-secondary-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.24);
}

.landing-secondary-btn:hover {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 28px rgba(0,0,0,0.34), 0 0 18px rgba(212,175,55,0.12);
}

.landing-glance-card,
.landing-step,
.landing-benefit-item,
.tile {
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212,175,55,0.14);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.03);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
}

.landing-glance-card::before,
.landing-step::before,
.landing-benefit-item::before,
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 38%);
    pointer-events: none;
}

.landing-glance-card:hover,
.landing-step:hover,
.landing-benefit-item:hover,
.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.28);
    box-shadow:
        0 24px 42px rgba(0,0,0,0.34),
        0 0 28px rgba(212,175,55,0.09),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.landing-note {
    color: #a99f8a;
}

@media (max-width: 768px) {
    .landing-shell::before {
        inset: -40px 0 auto;
        height: 300px;
        filter: blur(8px);
    }

    .landing-glance-card:hover,
    .landing-step:hover,
    .landing-benefit-item:hover,
    .tile:hover,
    .tile-btn:hover,
    .landing-secondary-btn:hover {
        transform: none;
    }
}
/* ARKANA TILES + HEADERS POLISH */
.tile {
    background:
        linear-gradient(180deg, rgba(23,23,23,0.96), rgba(11,11,11,0.94)),
        linear-gradient(180deg, rgba(212,175,55,0.04), transparent 28%);
}

.tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.34), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.tile-header {
    font-size: 21px;
    letter-spacing: 0.06em;
    color: #f0e2b1;
    text-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.tile-btn {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.tile:hover {
    background:
        linear-gradient(180deg, rgba(27,27,27,0.98), rgba(12,12,12,0.96)),
        linear-gradient(180deg, rgba(212,175,55,0.065), transparent 34%);
    box-shadow:
        0 26px 44px rgba(0,0,0,0.36),
        0 0 30px rgba(212,175,55,0.11),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.tile:hover .tile-header {
    color: #f6ebc8;
}

.tile:hover .tile-icon {
    border-color: rgba(212,175,55,0.85);
    background: radial-gradient(circle at 30% 20%, rgba(255,240,190,0.42), rgba(0,0,0,0));
}

.landing-section-head {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.landing-section-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 92px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212,175,55,0.9), rgba(212,175,55,0.18), transparent);
    box-shadow: 0 0 16px rgba(212,175,55,0.12);
}

.landing-section-head h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.landing-section-head h2::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(212,175,55,0.78);
    box-shadow: 0 0 14px rgba(212,175,55,0.24);
}

.landing-section-head p {
    max-width: 760px;
    color: #cec6b7;
}

@media (max-width: 768px) {
    .landing-section-head {
        padding-bottom: 12px;
    }

    .landing-section-head h2::before {
        left: -10px;
        width: 5px;
        height: 5px;
    }
}
/* ARKANA TYPOGRAPHY + RHYTHM FINAL PASS */
.landing-shell {
    padding-bottom: 48px;
}

.landing-hero,
.landing-final,
.landing-trust {
    padding: 38px;
}

.landing-section {
    margin-top: 42px;
}

.landing-section-head {
    max-width: 780px;
    margin-bottom: 24px;
}

.landing-section-head h2,
.landing-final h2 {
    font-size: clamp(28px, 2.45vw, 34px);
    line-height: 1.14;
}

.landing-lead {
    font-size: clamp(25px, 2.4vw, 31px);
    line-height: 1.36;
    max-width: 690px;
    margin-bottom: 14px;
}

.landing-sublead,
.landing-hero-description,
.landing-section-head p,
.landing-final p {
    font-size: 16px;
    line-height: 1.82;
}

.landing-sublead,
.landing-hero-description,
.landing-final p {
    max-width: 680px;
}

.landing-note {
    line-height: 1.65;
    max-width: 620px;
}

.landing-glance-card h3,
.landing-step h3,
.landing-benefit-item h3,
.tile-header {
    line-height: 1.26;
}

.landing-glance-card,
.landing-step,
.landing-benefit-item {
    padding: 22px;
}

.landing-glance-card p,
.landing-step p,
.landing-benefit-item p {
    max-width: 58ch;
}

.landing-trust-list {
    max-width: 760px;
}

.landing-final {
    gap: 28px;
}

@media (max-width: 1080px) {
    .landing-hero,
    .landing-final,
    .landing-trust {
        padding: 32px;
    }

    .landing-section {
        margin-top: 38px;
    }

    .landing-section-head {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .landing-shell {
        padding-bottom: 36px;
    }

    .landing-hero,
    .landing-final,
    .landing-trust {
        padding: 24px;
    }

    .landing-section {
        margin-top: 30px;
    }

    .landing-section-head {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .landing-section-head h2,
    .landing-final h2 {
        font-size: 25px;
        line-height: 1.16;
    }

    .landing-lead {
        font-size: 21px;
        line-height: 1.38;
        margin-bottom: 12px;
    }

    .landing-sublead,
    .landing-hero-description,
    .landing-section-head p,
    .landing-final p,
    .landing-glance-card p,
    .landing-step p,
    .landing-benefit-item p {
        font-size: 15px;
        line-height: 1.72;
        max-width: none;
    }

    .landing-glance-card,
    .landing-step,
    .landing-benefit-item {
        padding: 20px;
    }

    .landing-final {
        gap: 18px;
    }
}
/* ARKANA MICRO-ANIMATION PASS */
@keyframes arkanaHeroBreath {
    0%, 100% {
        box-shadow:
            0 28px 60px rgba(0,0,0,0.36),
            inset 0 1px 0 rgba(255,255,255,0.04),
            0 0 40px rgba(212,175,55,0.07);
    }
    50% {
        box-shadow:
            0 30px 64px rgba(0,0,0,0.38),
            inset 0 1px 0 rgba(255,255,255,0.05),
            0 0 48px rgba(212,175,55,0.1);
    }
}

@keyframes arkanaHeroGlowShift {
    0%, 100% {
        opacity: 0.78;
        transform: scale(1);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.015);
    }
}

@keyframes arkanaTileTrace {
    0% {
        opacity: 0;
        transform: translateX(-14%) translateY(0);
    }
    35% {
        opacity: 0.22;
    }
    100% {
        opacity: 0;
        transform: translateX(16%) translateY(0);
    }
}

.landing-hero {
    animation: arkanaHeroBreath 8.6s ease-in-out infinite;
    will-change: box-shadow;
}

.landing-hero::before {
    animation: arkanaHeroGlowShift 10s ease-in-out infinite;
    transform-origin: center;
}

.tile-btn,
.landing-secondary-btn {
    cursor: pointer;
    will-change: transform, box-shadow;
}

.tile {
    cursor: pointer;
}

.tile-btn:hover,
.landing-secondary-btn:hover {
    box-shadow:
        0 16px 30px rgba(0,0,0,0.26),
        0 0 20px rgba(212,175,55,0.14);
}

.tile-btn:active,
.landing-secondary-btn:active {
    transform: translateY(1px);
    transition-duration: 0.12s;
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.18),
        0 8px 18px rgba(0,0,0,0.2),
        0 0 12px rgba(212,175,55,0.08);
}

.tile,
.landing-glance-card,
.landing-step,
.landing-benefit-item {
    will-change: transform, box-shadow, border-color;
}

.tile::before,
.landing-glance-card::before,
.landing-step::before,
.landing-benefit-item::before {
    transition: opacity 0.28s ease, transform 0.55s ease;
}

.tile::after,
.landing-glance-card::after,
.landing-step::after,
.landing-benefit-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 0%, rgba(212,175,55,0.12) 46%, transparent 74%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10%);
}

.tile:hover::after,
.landing-glance-card:hover::after,
.landing-step:hover::after,
.landing-benefit-item:hover::after {
    animation: arkanaTileTrace 1.15s ease-out 1;
}

.fade-up {
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: none), (pointer: coarse) {
    .landing-hero,
    .landing-hero::before {
        animation: none;
    }

    .tile:hover::after,
    .landing-glance-card:hover::after,
    .landing-step:hover::after,
    .landing-benefit-item:hover::after {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero,
    .landing-hero::before,
    .tile:hover::after,
    .landing-glance-card:hover::after,
    .landing-step:hover::after,
    .landing-benefit-item:hover::after {
        animation: none !important;
    }

    .tile-btn:active,
    .landing-secondary-btn:active {
        transform: none;
    }
}
/* ARKANA MOBILE LANDING PASS */
@media (max-width: 640px) {
    .arkana-container.landing-shell {
        padding-left: 14px;
        padding-right: 14px;
        padding-top: 8px;
        padding-bottom: 34px;
    }

    .landing-shell::before {
        inset: -22px 0 auto;
        height: 220px;
        opacity: 0.82;
        filter: blur(7px);
    }

    .landing-hero,
    .landing-final,
    .landing-trust {
        padding: 20px;
        border-radius: 18px;
    }

    .landing-hero {
        gap: 18px;
    }

    .landing-kicker {
        margin-bottom: 14px;
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .landing-title {
        margin-bottom: 12px;
        letter-spacing: 0.06em;
        font-size: clamp(38px, 12vw, 54px);
    }

    .landing-lead {
        font-size: 20px;
        line-height: 1.34;
        margin-bottom: 10px;
        max-width: none;
    }

    .landing-sublead,
    .landing-hero-description,
    .landing-section-head p,
    .landing-final p,
    .landing-glance-card p,
    .landing-step p,
    .landing-benefit-item p,
    .landing-note,
    .landing-trust-list {
        font-size: 14px;
        line-height: 1.66;
    }

    .landing-actions {
        gap: 10px;
        margin-top: 18px;
    }

    .landing-primary,
    .landing-secondary-btn,
    .tile-btn {
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .landing-glance-grid,
    .landing-benefits-grid,
    .landing-steps-grid,
    .landing-value-grid,
    .landing-problem-grid,
    .landing-steps-grid-wide,
    .tiles-grid {
        gap: 12px;
    }

    .landing-section {
        margin-top: 24px;
    }

    .landing-section-head {
        margin-bottom: 16px;
        padding-bottom: 9px;
    }

    .landing-section-head h2,
    .landing-final h2 {
        font-size: 23px;
        line-height: 1.14;
        margin-bottom: 8px;
    }

    .landing-section-head h2::before {
        left: -8px;
    }

    .landing-glance-card,
    .landing-step,
    .landing-benefit-item,
    .tile {
        padding: 18px;
        border-radius: 15px;
    }

    .landing-glance-card h3,
    .landing-step h3,
    .landing-benefit-item h3,
    .tile-header {
        font-size: 17px;
        line-height: 1.22;
        letter-spacing: 0.03em;
        margin-bottom: 8px;
    }

    .tile {
        min-height: auto;
    }

    .tile-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .tile-svg {
        width: 24px;
        height: 24px;
    }

    .landing-step-num {
        width: 30px;
        height: 30px;
        margin-bottom: 12px;
        font-size: 13px;
    }

    .landing-trust-list {
        padding-left: 18px;
    }

    .landing-final {
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .arkana-container.landing-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .landing-hero,
    .landing-final,
    .landing-trust,
    .landing-glance-card,
    .landing-step,
    .landing-benefit-item,
    .tile {
        padding: 16px;
    }

    .landing-title {
        font-size: clamp(34px, 11vw, 46px);
    }

    .landing-lead {
        font-size: 19px;
    }

    .landing-section-head h2,
    .landing-final h2 {
        font-size: 21px;
    }

    .landing-actions {
        gap: 9px;
    }
}
