:root {
    --purple: #9b5cff;
    --purple-strong: #7c3cff;
    --purple-soft: #c084fc;
    --black: #050509;
    --dark: #0d0d14;
    --text: #ffffff;
    --muted: #b8b8c7;
    --border: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.06);
    --shadow: 0 25px 80px rgba(124, 60, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--black);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(155, 92, 255, 0.18), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(124, 60, 255, 0.16), transparent 30%),
        linear-gradient(135deg, #040407, #090912 52%, #050509);
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, black 14%, black 82%, transparent);
    animation: gridMove 18s linear infinite;
}

.aurora {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.38;
    mix-blend-mode: screen;
    animation: auroraMove 14s ease-in-out infinite alternate;
}

.aurora-1 {
    top: 8%;
    left: 5%;
    background: rgba(155, 92, 255, 0.55);
}

.aurora-2 {
    right: 4%;
    top: 18%;
    background: rgba(88, 28, 135, 0.7);
    animation-delay: 3s;
}

.aurora-3 {
    bottom: 0;
    left: 35%;
    background: rgba(124, 60, 255, 0.42);
    animation-delay: 6s;
}

.light-line {
    position: absolute;
    width: 2px;
    height: 520px;
    background: linear-gradient(to bottom, transparent, rgba(192, 132, 252, 0.9), transparent);
    filter: blur(0.5px);
    opacity: 0.55;
    transform: rotate(38deg);
    animation: lineMove 9s ease-in-out infinite;
}

.line-1 {
    top: -120px;
    left: 18%;
}

.line-2 {
    right: 16%;
    bottom: -160px;
    animation-delay: 4s;
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

@keyframes gridMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(72px);
    }
}

@keyframes auroraMove {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(55px, -35px, 0) scale(1.08);
    }

    100% {
        transform: translate3d(-35px, 45px, 0) scale(0.96);
    }
}

@keyframes lineMove {

    0%,
    100% {
        opacity: 0.18;
        transform: translateY(0) rotate(38deg);
    }

    50% {
        opacity: 0.7;
        transform: translateY(80px) rotate(38deg);
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 9, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), #3b0764);
    box-shadow: 0 0 30px rgba(155, 92, 255, 0.35);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: var(--muted);
    font-weight: 600;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s ease;
}

.nav-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(155, 92, 255, 0.14),
            rgba(192, 132, 252, 0.06));
    opacity: 0;
    transform: scale(0.92);
    border-radius: inherit;
    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            var(--purple),
            var(--purple-soft),
            var(--purple-strong));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s ease;
    box-shadow: 0 0 14px rgba(155, 92, 255, 0.85);
}

.nav-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: white;
    border-radius: 999px;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0;
}

.hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
}

.badge {
    width: fit-content;
    padding: 10px 16px;
    margin-bottom: 24px;
    color: var(--purple-soft);
    border: 1px solid rgba(192, 132, 252, 0.22);
    border-radius: 999px;
    background: rgba(155, 92, 255, 0.08);
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(46px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.hero h1 span {
    background: linear-gradient(135deg, #ffffff, var(--purple-soft), var(--purple-strong));
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 650px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-actions.center {
    justify-content: center;
}

.btn {
    padding: 15px 22px;
    border-radius: 16px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-strong));
    box-shadow: 0 16px 45px rgba(124, 60, 255, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(124, 60, 255, 0.42);
}

.btn.secondary {
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
}

.btn.secondary:hover {
    color: white;
    border-color: rgba(155, 92, 255, 0.45);
    background: rgba(155, 92, 255, 0.12);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.hero-stats div {
    min-width: 130px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.hero-stats strong {
    display: block;
    font-size: 22px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 14px;
}

.glass {
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
    padding: 28px;
    border-radius: 34px;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at top, rgba(155, 92, 255, 0.28), transparent 48%);
    pointer-events: none;
}

.bot-preview h3 {
    font-size: 28px;
}

.bot-preview p {
    margin: 4px 0 0;
    color: var(--muted);
}

.preview-line.short {
    width: 52%;
    margin-top: 14px;
}

.bot-profile {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.bot-logo {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--purple), #3b0764);
    box-shadow:
        0 0 35px rgba(155, 92, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 34px;
    font-weight: 900;
}

.bot-info {
    flex: 1;
}

.bot-info h3 {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.bot-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
}

.bot-tag {
    padding: 7px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(155, 92, 255, 0.18);
    border: 1px solid rgba(192, 132, 252, 0.28);
}

.bot-panel {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-header span {
    font-weight: 800;
    font-size: 17px;
}

.panel-header small {
    color: var(--purple-soft);
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    transition: 0.25s ease;
}

.info-item:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.38);
    background: rgba(155, 92, 255, 0.1);
}

.info-item i,
.info-item svg {
    width: 22px;
    height: 22px;
    color: var(--purple-soft);
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 14px;
}

.info-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(155, 92, 255, 0.16), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(192, 132, 252, 0.18);
}

.system-row strong {
    display: block;
    font-size: 14px;
}

.system-row span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.system-pill {
    padding: 9px 13px;
    border-radius: 999px;
    color: white;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--purple-strong));
    box-shadow: 0 10px 30px rgba(124, 60, 255, 0.28);
}

.mini-command {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 18px;
    border-radius: 18px;
    background: rgba(155, 92, 255, 0.11);
    border: 1px solid rgba(155, 92, 255, 0.2);
    transition: 0.25s ease;
}

.mini-command:hover {
    transform: translateY(-3px);
    background: rgba(155, 92, 255, 0.16);
    border-color: rgba(192, 132, 252, 0.35);
}

.mini-command span {
    font-weight: 900;
}

.mini-command small {
    color: var(--muted);
}

.hero-card:hover .preview-grid div {
    transform: translateY(-4px);
    border-color: rgba(155, 92, 255, 0.32);
}

.section-title {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 46px;
}

.section-title span,
.commands-text span {
    color: var(--purple-soft);
    font-weight: 800;
}

.section-title h2,
.commands-text h2,
.cta-box h2 {
    margin-top: 10px;
    font-size: clamp(34px, 4vw, 56px);
    letter-spacing: -0.06em;
}

.section-title p,
.commands-text p,
.cta-box p {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 28px;
    border-radius: 28px;
    transition: 0.28s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155, 92, 255, 0.42);
    background: rgba(155, 92, 255, 0.08);
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(135deg, rgba(155, 92, 255, 0.95), rgba(59, 7, 100, 0.85));
    border: 1px solid rgba(192, 132, 252, 0.32);
    box-shadow:
        0 14px 35px rgba(124, 60, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
}

.feature-card h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px) scale(1.06) rotate(-3deg);
    box-shadow:
        0 20px 55px rgba(155, 92, 255, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.commands-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    padding: 34px;
    border-radius: 34px;
}

.commands-list {
    display: grid;
    gap: 12px;
}

.commands-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.commands-list div:hover {
    transform: translateX(6px);
    border-color: rgba(155, 92, 255, 0.42);
    background: rgba(155, 92, 255, 0.08);
}

.commands-list strong {
    color: var(--purple-soft);
}

.commands-list span {
    color: var(--muted);
    text-align: right;
}

.cta-box {
    text-align: center;
    padding: 52px 28px;
    border-radius: 34px;
}

.cta-box p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.footer-brand p {
    max-width: 380px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-links h4 {
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 4px 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 920px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(10, 10, 18, 0.94);
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
    }

    .hero,
    .commands-card,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 60px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .section {
        width: min(100% - 28px, 1180px);
        padding: 70px 0;
    }

    .features-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .commands-list div {
        flex-direction: column;
        gap: 6px;
    }

    .commands-list span {
        text-align: left;
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-stats div {
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .mini-command {
        flex-direction: column;
    }
}

.feature-card,
.hero-card,
.commands-card,
.cta-box {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.hero-card::before,
.commands-card::before,
.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.09),
            transparent);
    transform: translateX(-120%);
    transition: 0.7s ease;
    pointer-events: none;
}

.feature-card:hover::before,
.hero-card:hover::before,
.commands-card:hover::before,
.cta-box:hover::before {
    transform: translateX(120%);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(192, 132, 252, 0.46);
    background: rgba(155, 92, 255, 0.09);
    box-shadow:
        0 30px 85px rgba(124, 60, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.commands-list div:hover {
    transform: translateX(8px) scale(1.01);
    border-color: rgba(192, 132, 252, 0.48);
    background: rgba(155, 92, 255, 0.11);
    box-shadow: 0 14px 35px rgba(124, 60, 255, 0.14);
}

.nav-links a {
    position: relative;
}

.logo-icon {
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-80%) rotate(25deg);
    transition: 0.5s ease;
}

.logo:hover .logo-icon::after {
    transform: translateX(80%) rotate(25deg);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: translateX(-120%);
    transition: 0.55s ease;
}

.btn:hover::before {
    transform: translateX(120%);
}

.legal-page {
    min-height: 100vh;
}

.legal-hero {
    padding-bottom: 40px;
}

.legal-hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.legal-hero h1 span {
    background: linear-gradient(135deg, #ffffff, var(--purple-soft), var(--purple-strong));
    -webkit-background-clip: text;
    color: transparent;
}

.legal-hero p {
    max-width: 760px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.legal-content {
    padding: 38px;
    border-radius: 34px;
    margin-top: -30px;
}

.legal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.legal-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.05em;
}

.legal-header span {
    color: var(--purple-soft);
    font-weight: 700;
    white-space: nowrap;
}

.legal-block {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-block:last-child {
    border-bottom: none;
}

.legal-block h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ffffff;
}

.legal-block p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 16px;
}

.legal-block strong {
    color: var(--purple-soft);
}

.legal-nav {
    display: flex;
}

.footer-bottom a {
    color: var(--purple-soft);
    transition: 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

@media (max-width: 720px) {
    .legal-content {
        padding: 24px;
        border-radius: 26px;
    }

    .legal-header {
        flex-direction: column;
    }

    .legal-header span {
        white-space: normal;
    }

    .legal-block {
        padding: 20px 0;
    }
}

@media (max-width: 620px) {
    .bot-profile {
        align-items: flex-start;
    }

    .bot-logo {
        width: 62px;
        height: 62px;
        font-size: 30px;
        border-radius: 19px;
    }

    .bot-info h3 {
        font-size: 26px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .system-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.bot-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.commands-open-btn {
    width: fit-content;
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

.commands-open-btn svg {
    width: 20px;
    height: 20px;
}

.commands-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.commands-modal.active {
    display: flex;
}

.commands-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

.commands-modal-box {
    position: relative;
    width: min(1050px, 100%);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 34px;
    animation: modalOpen 0.25s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(18px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.commands-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: rgba(8, 8, 14, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.commands-modal-header span {
    color: var(--purple-soft);
    font-weight: 800;
}

.commands-modal-header h2 {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.06em;
}

.commands-modal-header p {
    max-width: 650px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-close {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: 0.25s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.05);
    background: rgba(155, 92, 255, 0.18);
    border-color: rgba(192, 132, 252, 0.4);
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

.commands-modal-content {
    max-height: calc(88vh - 150px);
    overflow-y: auto;
    padding: 28px;
}

.commands-modal-content::-webkit-scrollbar {
    width: 8px;
}

.commands-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.commands-modal-content::-webkit-scrollbar-thumb {
    background: rgba(155, 92, 255, 0.55);
    border-radius: 999px;
}

.commands-category {
    padding: 22px;
    margin-bottom: 18px;
    border-radius: 26px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
}

.commands-category:hover {
    border-color: rgba(192, 132, 252, 0.32);
    background: rgba(155, 92, 255, 0.07);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.category-title i,
.category-title svg {
    width: 25px;
    height: 25px;
    color: var(--purple-soft);
}

.category-title h3 {
    font-size: 24px;
    letter-spacing: -0.04em;
}

.modal-command-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.modal-command-grid div {
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: 0.25s ease;
}

.modal-command-grid div:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.38);
    background: rgba(155, 92, 255, 0.11);
    box-shadow: 0 16px 36px rgba(124, 60, 255, 0.16);
}

.modal-command-grid strong {
    display: block;
    color: var(--purple-soft);
    font-size: 16px;
    margin-bottom: 6px;
}

.modal-command-grid span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .commands-modal {
        padding: 12px;
    }

    .commands-modal-header {
        padding: 22px;
    }

    .commands-modal-content {
        padding: 20px;
    }

    .modal-command-grid {
        grid-template-columns: 1fr;
    }

    .commands-category {
        padding: 18px;
    }
}