﻿
:root {
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #e11d48 100%);
    --primary-glow: rgba(79, 70, 229, 0.4);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #fafafa;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-drawer: #ffffff;
    --bg-input: #ffffff;
    --bg-badge: #f1f5f9;
    --bg-hover: #f1f5f9;
    --bg-content: #ffffff;
    --border-light: #e2e8f0;
    --border-card: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 25px -5px rgba(79, 70, 229, 0.15), 0 8px 10px -6px rgba(79, 70, 229, 0.1);
    --shadow-modal: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
    --radius-pill: 9999px;
    --radius-card: 16px;
    --mesh-opacity: 0.5;
    --preview-font-size: 1rem;
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-gradient: linear-gradient(135deg, #818cf8 0%, #fb7185 100%);
    --primary-glow: rgba(129, 140, 248, 0.3);
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --bg-body: #09090b;
    --bg-card: #18181b;
    --bg-header: rgba(9, 9, 11, 0.85);
    --bg-drawer: #18181b;
    --bg-input: #18181b;
    --bg-badge: #27272a;
    --bg-hover: #27272a;
    --bg-content: #18181b;
    --border-light: #27272a;
    --border-card: #27272a;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-modal: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    --mesh-opacity: 0.2;
}

[data-theme="cyberpunk"] {
    --primary: #00ff9f;
    --primary-gradient: linear-gradient(135deg, #00ff9f 0%, #00b8ff 100%);
    --primary-glow: rgba(0, 255, 159, 0.4);
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --bg-body: #0a0914;
    --bg-card: #121024;
    --bg-header: rgba(10, 9, 20, 0.85);
    --bg-drawer: #121024;
    --bg-input: #121024;
    --bg-badge: #1f1b3d;
    --bg-hover: #1f1b3d;
    --bg-content: #121024;
    --border-light: #2c2559;
    --border-card: #2c2559;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 20px 25px -5px rgba(0, 255, 159, 0.2);
    --shadow-modal: 0 30px 60px -15px rgba(0, 255, 159, 0.15);
    --mesh-opacity: 0.15;
}

[data-theme="sunset"] {
    --primary: #ff5e62;
    --primary-gradient: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    --primary-glow: rgba(255, 94, 98, 0.4);
    --text-main: #2d132c;
    --text-muted: #8c5b7a;
    --bg-body: #fff5f5;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 245, 245, 0.9);
    --bg-drawer: #ffffff;
    --bg-input: #ffffff;
    --bg-badge: #ffe8e8;
    --bg-hover: #ffe8e8;
    --bg-content: #ffffff;
    --border-light: #ffd1d1;
    --border-card: #ffd1d1;
    --shadow-sm: 0 4px 6px -1px rgba(255, 94, 98, 0.08);
    --shadow-float: 0 20px 25px -5px rgba(255, 94, 98, 0.2);
    --shadow-modal: 0 30px 60px -15px rgba(255, 94, 98, 0.25);
    --mesh-opacity: 0.6;
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
    opacity: 0.5;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

.bg-m {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%), radial-gradient(circle at 85% 30%, rgba(225, 29, 72, 0.08), transparent 25%);
    filter: blur(60px);
    opacity: var(--mesh-opacity);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

[data-theme="cyberpunk"] .bg-m {
    background: radial-gradient(circle at 15% 50%, rgba(0, 255, 159, 0.1), transparent 25%), radial-gradient(circle at 85% 30%, rgba(0, 184, 255, 0.1), transparent 25%);
}

[data-theme="sunset"] .bg-m {
    background: radial-gradient(circle at 15% 50%, rgba(255, 153, 102, 0.15), transparent 25%), radial-gradient(circle at 85% 30%, rgba(255, 94, 98, 0.15), transparent 25%);
}

.cntr {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
    position: relative;
}

.m-hdr {
    position: relative;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    min-height: 60px;
}

.brnd {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.h-log {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px -2px var(--primary-glow);
}

.b-txt {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}


.h-act {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.t-drop-c,
.l-drop-c {
    position: relative;
}

.t-sel,
.l-sel,
.m-tog {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.t-sel:hover,
.l-sel:hover,
.m-tog:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.t-menu,
.l-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-modal);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    min-width: 160px;
}

.t-menu.opn,
.l-menu.opn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.t-opt,
.l-opt {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
}

.t-opt:hover,
.l-opt:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.t-opt.actv,
.l-opt.actv {
    background: var(--bg-badge);
    color: var(--primary);
}

.t-opt-l,
.l-opt-l {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.l-flag {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.t-chk {
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.t-opt.actv .t-chk,
.l-opt.actv .t-chk {
    opacity: 1;
}

.m-grid {
    width: 20px;
    height: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-dot {
    background: currentColor;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    transition: all 0.3s;
}

.m-tog:hover .m-grid {
    transform: rotate(90deg);
}


.d-over {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.d-over.opn {
    opacity: 1;
    pointer-events: auto;
}

.drwr {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    max-width: 80vw;
    background: var(--bg-drawer);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid var(--border-light);
}

.drwr.opn {
    transform: translateX(0);
}

.d-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    min-height: 60px;
}

.c-menu {
    background: var(--bg-badge);
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-main);
    transition: 0.2s;
}

.c-menu:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.n-lnks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1.5rem;
}

.n-lnk {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-badge);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.n-lnk:hover {
    background: var(--border-light);
    color: var(--text-main);
}

.n-lnk.actv {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px -2px var(--primary-glow);
}


.i-stick {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 1rem 0 0;
    background: linear-gradient(to bottom, var(--bg-body) 80%, transparent);
}

.s-inr {
    padding-bottom: 0.2rem;
}

.i-wrap {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4px 8px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.i-wrap:focus-within {
    box-shadow: 0 0 0 2px var(--bg-body), 0 0 0 4px var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.d-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    margin-left: 4px;
    flex-shrink: 0;
    margin-bottom: 7px;
}

.d-btn:hover {
    background: var(--bg-badge);
    transform: rotate(15deg) scale(1.1);
}

#t-inp {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 12px 12px;
    background: transparent;
    font-family: inherit;
    width: 100%;
    min-width: 0;
    resize: none;
    overflow-y: hidden;
    min-height: 50px;
    max-height: 150px;
    line-height: 1.4;
    word-break: break-word;
}

#t-inp::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.c-icn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    margin-right: 4px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    flex-shrink: 0;
    margin-bottom: 9px;
}

.c-icn.vsbl {
    opacity: 1;
    pointer-events: auto;
}

.c-icn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

[data-theme="dark"] .c-icn:hover,
[data-theme="cyberpunk"] .c-icn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fb7185;
}

#c-cnt {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 8px 11px 8px;
    opacity: 0.7;
    flex-shrink: 0;
    text-align: right;
    line-height: 1.2;
}


.g-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0.75rem;
    padding: 0 4px;
}

.g-limit-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.g-limit-wrap::-webkit-scrollbar {
    display: none;
}

.g-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-right: 4px;
}

.g-l-btn {
    background: var(--bg-badge);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.g-l-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.g-l-btn.actv {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

[data-theme="dark"] .g-l-btn.actv,
[data-theme="cyberpunk"] .g-l-btn.actv {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: #f87171;
}

.g-sym-wrap {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.g-sym-wrap::-webkit-scrollbar {
    display: none;
}

.g-s-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    font-family: "Segoe UI Emoji", inherit;
    color: var(--text-main);
}

.g-s-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 8px -2px var(--primary-glow);
}

.g-s-btn.special {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    white-space: nowrap;
}

.limit-err {
    color: #ef4444 !important;
}

.limit-shake {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}


.c-pills {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px 12px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.c-pills::-webkit-scrollbar {
    display: none;
}

.c-pill {
    background: var(--bg-badge);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.c-pill:hover {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--primary);
}

.c-pill.actv {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px -2px var(--primary-glow);
}

.c-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.75rem;
    padding-bottom: 4px;
}

.c-bar::-webkit-scrollbar {
    display: none;
}

.t-grp {
    display: flex;
    background: var(--bg-badge);
    padding: 4px;
    border-radius: var(--radius-pill);
    gap: 4px;
    flex-shrink: 0;
}

.t-btn-g {
    background: transparent;
    border: none;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-btn-g.actv {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.clr-bt {
    background: transparent;
    border: none;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    color: #ef4444;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.clr-bt:hover {
    background: #fee2e2;
}

.clr-bt.vsbl {
    display: flex;
}

[data-theme="dark"] .clr-bt:hover,
[data-theme="cyberpunk"] .clr-bt:hover {
    background: rgba(239, 68, 68, 0.15);
}

.fs-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.fs-b {
    background: var(--bg-badge);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.fs-b:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px -2px var(--primary-glow);
}

#fs-disp {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    min-width: 24px;
    text-align: center;
}


.f-lst {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding-bottom: 1rem;
    min-height: 50vh;
    align-content: start;
}

@media (min-width: 768px) {
    .f-lst {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.s-crd {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 1.2rem;
    position: relative;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.s-crd.entr {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.s-crd.clrn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.pro-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px -2px rgba(255, 94, 98, 0.4);
    z-index: 5;
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-theme="dark"] .pro-badge,
[data-theme="cyberpunk"] .pro-badge {
    border-color: var(--bg-card);
}

.s-crd.copied-active {
    border-color: #10b981;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.2);
}

.s-crd.copied-active .c-cntnt {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
}

.s-crd.copied-active .c-tip {
    opacity: 1;
    transform: translate(-50%, -25px);
    background: #10b981;
    color: white;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .s-crd.copied-active .c-cntnt,
[data-theme="cyberpunk"] .s-crd.copied-active .c-cntnt {
    background: rgba(16, 185, 129, 0.1);
}

@media(hover: hover) {
    .s-crd:hover {
        border-color: var(--primary);
        box-shadow: 0 12px 24px -8px var(--primary-glow);
        transform: translateY(-3px);
        z-index: 10;
    }

    .c-cntnt:hover {
        background: var(--bg-hover);
        border-radius: 12px;
    }
}

.c-cntnt {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: background 0.2s;
    position: relative;
}

.c-tip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -10px);
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px -2px var(--primary-glow);
    z-index: 10;
    white-space: nowrap;
}

.c-cntnt:hover .c-tip {
    opacity: 1;
    transform: translate(-50%, -25px);
}


.f-prv {
    font-size: var(--preview-font-size);
    color: var(--text-main);
    word-break: break-word;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    font-family: "Segoe UI Emoji", inherit;
    transition: color 0.3s ease;
    white-space: pre-wrap;
}

.a-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px dashed var(--border-light);
    padding-top: 0.75rem;
    justify-content: space-between;
    margin-top: auto;
    position: relative;
}

.c-mta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.f-bdg {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(79, 70, 229, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.c-chr {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
}


.c-act {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.c-bt {
    width: 34px;
    height: 34px;
    background: var(--bg-badge);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.c-bt:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.c-bt svg {
    width: 16px;
    height: 16px;
}

.f-bt {
    background: rgba(225, 29, 72, 0.08);
    color: #e11d48;
}

.f-bt:hover {
    background: #e11d48;
    color: white;
}

.f-bt.actv {
    color: white;
    background: #e11d48;
    box-shadow: 0 4px 10px -2px rgba(225, 29, 72, 0.4);
}

.f-bt.actv svg {
    fill: currentColor;
}

[data-theme="dark"] .f-bt,
[data-theme="cyberpunk"] .f-bt {
    background: rgba(225, 29, 72, 0.15);
    color: #fb7185;
}

[data-theme="dark"] .f-bt.actv,
[data-theme="cyberpunk"] .f-bt.actv {
    background: #e11d48;
    color: white;
}

.s-bt {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.s-bt:hover {
    background: #2563eb;
    color: white;
}

[data-theme="dark"] .s-bt {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

[data-theme="cyberpunk"] .s-bt {
    background: rgba(0, 184, 255, 0.15);
    color: #00b8ff;
}

[data-theme="sunset"] .s-bt {
    background: rgba(255, 94, 98, 0.1);
    color: #ff5e62;
}

[data-theme="sunset"] .s-bt:hover {
    background: #ff5e62;
    color: white;
}

.d-bt {
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
}

.d-bt:hover {
    background: #8b5cf6;
    color: white;
}

[data-theme="dark"] .d-bt,
[data-theme="cyberpunk"] .d-bt {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

[data-theme="sunset"] .d-bt {
    background: rgba(255, 153, 102, 0.1);
    color: #ff9966;
}

[data-theme="sunset"] .d-bt:hover {
    background: #ff9966;
    color: white;
}

.m-shuf {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.m-shuf:hover {
    box-shadow: 0 4px 10px -2px var(--primary-glow);
}

.d-pop {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-float);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    width: 280px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.d-pop::-webkit-scrollbar {
    width: 4px;
}

.d-pop::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.d-pop.opn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.d-itm {
    background: var(--bg-badge);
    border: none;
    border-radius: 8px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    color: var(--text-main);
    display: grid;
    place-items: center;
    font-family: 'Segoe UI Emoji', inherit;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.d-itm:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px -2px var(--primary-glow);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.e-stat {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.e-stat svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
    margin-bottom: 1rem;
    color: var(--primary);
}

.i-ld {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 4rem 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.i-ld.actv {
    opacity: 1;
}

.b-dot {
    display: flex;
    gap: 8px;
}

.b-dot div {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 0.5s cubic-bezier(0.19, 1, 0.22, 1) infinite alternate;
}

.b-dot div:nth-child(2) {
    animation-delay: 0.15s;
}

.b-dot div:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.6;
    }

    to {
        transform: translateY(-8px);
        opacity: 1;
        box-shadow: 0 4px 8px var(--primary-glow);
    }
}

.a-ara {
    text-align: center;
    padding: 1rem 0 3rem 0;
    display: none;
}

.a-ara.vsbl {
    display: block;
}

.lm-bt {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lm-bt:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.5);
}

.lm-bt svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 20px;
    height: 20px;
}

.lm-bt:hover svg {
    transform: rotate(180deg);
}

.a-sec {
    background: var(--bg-content);
    border-radius: 24px;
    padding: 2rem 3rem 4rem 3rem;
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
}

@media(max-width: 640px) {
    .a-sec {
        padding: 1.5rem 1rem 2.5rem 1rem;
    }
}

.a-hdr {
    text-align: center;
    margin-bottom: 3.5rem;
}

.a-ttl {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media(max-width: 640px) {
    .a-ttl {
        font-size: 25px;
    }
}

.a-sub {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin: 0 auto;
    line-height: 1.7;
}

.a-feat-img {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
}

.a-feat-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.a-feat-img:hover img {
    transform: scale(1.03);
}

.a-feat-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.c-blk {
    margin-bottom: 3.5rem;
}

.c-blk h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-blk h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.c-blk p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.c-blk strong {
    color: var(--primary);
    font-weight: 700;
}

@media(max-width: 640px) {
    .a-feat-img {
        margin-top: 2rem;
        border-radius: 16px;
    }

    .c-blk h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .c-blk h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .c-blk p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
}

.c-highlight {
    background: rgba(79, 70, 229, 0.08);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
}

[data-theme="dark"] .c-highlight,
[data-theme="cyberpunk"] .c-highlight {
    background: rgba(129, 140, 248, 0.1);
}

.c-ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.c-ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.c-ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 1.1rem;
}

.t-grd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.t-crd {
    background: var(--bg-badge);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-crd:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}


.faq-sec {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.faq-hdr {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-hdr h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.faq-hdr p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-itm {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.faq-itm.opn {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.faq-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.faq-icn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-badge);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-itm.opn .faq-icn {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.faq-ans {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-itm.opn .faq-ans {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    opacity: 1;
}

.faq-ans p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

@media(max-width: 640px) {
    .faq-hdr h2 {
        font-size: 1.8rem;
    }

    .faq-btn {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .faq-ans {
        padding: 0 1.25rem;
    }

    .faq-itm.opn .faq-ans {
        padding: 0 1.25rem 1.25rem;
    }
}

.t-cont {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.tst {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-float);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    animation: toastEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

.tst.hiding {
    animation: toastExit 0.3s ease-in forwards;
}

.t-icn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

[data-theme="dark"] .t-icn,
[data-theme="cyberpunk"] .t-icn {
    background: rgba(16, 185, 129, 0.15);
}

.tst-txt {
    font-weight: 500;
}

.tst-txt b {
    font-weight: 700;
    color: var(--primary);
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
}

.m-ftr {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    position: relative;
}

.m-ftr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.6;
}

.f-ctr {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.f-mnu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}

.f-mnu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.f-mnu a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.f-btm {
    width: 100%;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cpryt {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.cpryt a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cpryt a:hover {
    color: var(--primary);
}

.cpryt-sep {
    opacity: 0.4;
    margin: 0 0.4rem;
    font-size: 0.8rem;
}

@media(max-width: 640px) {
    .f-btm {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

.b-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-float);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.b-top.vsbl {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.b-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px var(--primary-glow);
}

.b-top svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}


.modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal-wrap.opn {
    opacity: 1;
    pointer-events: auto;
}

.m-dlg {
    background: var(--bg-card);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-modal), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border: 1px solid var(--border-light);
    transform: translateY(20px) scale(0.95);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .m-dlg {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
}

.modal-wrap.opn .m-dlg {
    transform: translateY(0) scale(1);
}

.m-dlg-hdr {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.m-dlg-hdr h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.m-cls {
    background: var(--bg-badge);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    transition: all 0.2s;
}

.m-cls:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.m-dlg-bdy {
    padding: 1.5rem;
}

.ng-ctrl {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
}

.ng-sel {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-input);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.ng-sel:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.ng-res {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
    align-content: start;
}

.ng-res::-webkit-scrollbar {
    width: 4px;
}

.ng-res::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.ng-itm {
    background: var(--bg-badge);
    border: 1px solid transparent;
    padding: 0.9rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ng-itm:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px var(--primary-glow);
}