:root {
    --bg-main: #020617;
    --bg-elevated: #020617;
    --bg-card: rgba(15,23,42,0.96);
    --bg-card-soft: rgba(15,23,42,0.9);
    --border-soft: rgba(148,163,184,0.35);
    --border-accent: rgba(59,130,246,0.7);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent-1: #4f46e5;
    --accent-2: #22c55e;
    --accent-soft: rgba(79,70,229,0.12);
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.85);
}

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

html, body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

/* ===== Header ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(2,6,23,0.98), rgba(2,6,23,0.9), transparent);
    border-bottom: 1px solid rgba(15,23,42,0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: radial-gradient(circle at 0 0, #22c55e, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.3), 0 18px 40px rgba(37,99,235,0.4);
}

.logo-icon {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f9fafb;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 16px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.main-nav a {
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    transition: width 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-main);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost,
.btn-primary,
.btn-sm {
    font-family: inherit;
    font-size: 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 6px 14px;
    cursor: pointer;
    background: transparent;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-ghost {
    border-color: rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.9);
}

.btn-ghost:hover {
    border-color: rgba(209,213,219,0.6);
}

.btn-primary {
    border: none;
    background-image: linear-gradient(135deg, #22c55e, #16a34a);
    color: #022c22;
    box-shadow: 0 12px 25px rgba(22,163,74,0.45);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-sm {
    font-size: 12px;
    padding: 5px 10px;
}

/* Burger (mobile) */

.burger {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    margin-left: 8px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
    margin: 3px 0;
    transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px 10px;
    background: rgba(15,23,42,0.98);
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.mobile-nav a {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Hero ===== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 30px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    filter: blur(50px);
    opacity: 0.8;
}

.hero-gradient-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(79,70,229,0.8), transparent);
    top: -80px;
    left: -80px;
}

.hero-gradient-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(34,197,94,0.7), transparent);
    bottom: -120px;
    right: -100px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,23,42,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.35) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at top, rgba(255,255,255,0.9), transparent 60%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 3px 10px 3px 4px;
    background: rgba(15,23,42,0.94);
    border: 1px solid rgba(148,163,184,0.4);
    margin-bottom: 10px;
}

.pill-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, #16a34a);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

.hero-left h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-highlight {
    background: linear-gradient(120deg, #22c55e, #4ade80, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 20px;
}

/* ===== Form ===== */

.download-form {
    margin-bottom: 14px;
}

.input-shell {
    padding: 14px;
    background: rgba(15,23,42,0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.25);
    backdrop-filter: blur(20px);
}

.input-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-mini-link {
    border: none;
    background: none;
    color: #60a5fa;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15,23,42,0.95);
    border-radius: 999px;
    padding: 4px 5px 4px 10px;
    border: 1px solid rgba(31,41,55,0.9);
}

.input-prefix {
    font-size: 12px;
    color: var(--text-muted);
    border-right: 1px solid rgba(31,41,55,0.9);
    padding-right: 6px;
}

#url-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
    padding: 6px 4px;
}

#url-input::placeholder {
    color: rgba(148,163,184,0.9);
}

.main-btn {
    white-space: nowrap;
    font-size: 13px;
    padding-inline: 16px;
}

.input-hint-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 10px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,23,42,0.9);
    color: var(--text-muted);
}

.chip-active {
    border-color: rgba(59,130,246,0.8);
    background: rgba(15,23,42,0.96);
    color: #bfdbfe;
}

.chip-muted {
    opacity: 0.7;
}

.hint-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* Result box */

.result-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59,130,246,0.75);
    background: rgba(15,23,42,0.96);
    font-size: 12px;
}

.result-box--hidden {
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.result-status {
    font-weight: 500;
}

.result-platform {
    font-size: 11px;
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(37,99,235,0.5);
}

.result-body {
    color: var(--text-muted);
}

/* Hero meta */

.hero-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.meta-item {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(31,41,55,0.9);
}

.meta-label {
    color: var(--text-muted);
    margin-right: 6px;
}

.meta-value {
    font-weight: 600;
}

.meta-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34,197,94,0.2);
    border: 1px solid rgba(34,197,94,0.7);
    color: #bbf7d0;
}

/* Hero right */

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-preview {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(79,70,229,0.68), #020617 55%);
    border: 1px solid rgba(79,70,229,0.7);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(15,23,42,0.9);
    border-bottom: 1px solid rgba(30,64,175,0.9);
    font-size: 11px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.dot-red { background: #f97373; }
.dot-yellow { background: #facc15; }
.dot-green { background: #22c55e; }

.card-title {
    margin-left: 6px;
    color: var(--text-muted);
}

.card-preview-body {
    display: grid;
    grid-template-columns: 150px minmax(0,1fr);
    padding: 10px;
    gap: 12px;
}

.preview-thumb {
    position: relative;
    border-radius: 12px;
    background: radial-gradient(circle at 0 0, #22c55e, #1d4ed8);
    overflow: hidden;
}

.thumb-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.6);
}

.thumb-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid rgba(248,250,252,0.9);
    box-shadow: 0 0 0 6px rgba(15,23,42,0.5);
}

.thumb-play::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 9px solid #f9fafb;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateX(2px);
}

.preview-info {
    font-size: 12px;
}

.preview-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.preview-meta {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.preview-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.tag-format {
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.95);
    background: rgba(15,23,42,0.95);
    padding: 3px 8px;
    font-size: 11px;
    color: #e5e7eb;
    cursor: default;
}

.preview-note {
    font-size: 11px;
    color: var(--text-muted);
}

.card-stats {
    border-radius: var(--radius-lg);
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(55,65,81,0.9);
    padding: 10px;
    font-size: 12px;
}

.card-stats-row {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.stats-block {
    padding: 8px;
    border-radius: 10px;
    background: radial-gradient(circle at top left, rgba(79,70,229,0.35), rgba(15,23,42,0.96));
    border: 1px solid rgba(55,65,81,0.9);
}

.stats-label {
    font-size: 11px;
    color: var(--text-muted);
}

.stats-value {
    font-weight: 600;
}

.stats-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.card-stats-footer {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Sections ===== */

.section {
    padding: 26px 0;
}

.section-alt {
    background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
    border-top: 1px solid rgba(31,41,55,0.9);
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.section-header {
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Features */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.feature-card {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    font-size: 13px;
}

.feature-icon {
    font-size: 18px;
    margin-bottom: 6px;
}

.feature-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 12px;
    font-size: 13px;
}

.service-card {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card-soft);
    border: 1px solid var(--border-soft);
}

.service-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.service-logo.yt {
    background: rgba(248,113,113,0.2);
    color: #fecaca;
    border: 1px solid rgba(248,113,113,0.7);
}

.service-logo.tt {
    background: rgba(56,189,248,0.12);
    color: #bae6fd;
    border: 1px solid rgba(59,130,246,0.7);
}

.service-logo.ig {
    background: radial-gradient(circle at 0 0, rgba(249,115,22,0.3), rgba(192,38,211,0.3));
    color: #f9a8d4;
    border: 1px solid rgba(236,72,153,0.8);
}

.service-logo.fb {
    background: rgba(59,130,246,0.15);
    color: #bfdbfe;
    border: 1px solid rgba(59,130,246,0.8);
}

.service-logo.more {
    background: rgba(148,163,184,0.15);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.8);
}

.service-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.service-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* How section */

.how-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    font-size: 13px;
}

.how-card {
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
}

.how-step {
    font-size: 11px;
    color: #a5b4fc;
    margin-bottom: 3px;
    display: inline-block;
}

.how-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-list details {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    font-size: 13px;
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "▾";
    float: right;
    font-size: 11px;
    color: var(--text-muted);
}

.faq-list details[open] summary::after {
    content: "▴";
}

.faq-list p {
    margin-top: 6px;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(31,41,55,0.9);
    padding: 12px 0 18px;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-dot {
    opacity: 0.6;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-right {
        order: -1;
    }
    .card-preview-body {
        grid-template-columns: 1fr 1.4fr;
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }
    .burger {
        display: inline-flex;
        flex-direction: column;
    }
    .mobile-nav.active {
        display: flex;
    }
    .features-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .services-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .how-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 24px;
    }
    .card-preview-body {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .how-grid {
        grid-template-columns: 1fr;
    }
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .main-btn {
        width: 100%;
        justify-content: center;
    }
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.best-download-block .btn-primary {
    padding: 12px 18px;
    background: linear-gradient(90deg, #2dcc70, #22a851);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s ease;
}

.best-download-block .btn-primary:hover {
    opacity: 0.85;
}

/* Кнопка BEST QUALITY */
.btn-best-quality {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(90deg, #2dcc70, #22a851);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-best-quality:hover {
    opacity: 0.85;
}

/* Разделитель */
.divider {
    margin: 12px 0;
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

/* Hi-Tech Loader */
.loader-wrap {
    padding: 25px;
    text-align: center;
}
.loader-square {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: #2dcc70;
    animation: loaderSpin 0.8s linear infinite;
    border-radius: 6px;
}
@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loader-text {
    margin-top: 10px;
    font-size: 14px;
    color: #9ca3af;
}

/* --- YouTube Man Loader --- */
.yt-man-loader {
    margin-top: 20px;
    padding: 35px 10px;
    text-align: center;
    position: relative;
}

.yt-box {
    width: 48px;
    height: 34px;
    background: #ff0000;
    color: white;
    font-size: 22px;
    line-height: 34px;
    font-weight: bold;
    border-radius: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 18px;
    animation: ytMove 1.2s infinite ease-in-out;
}

/* Человечек */
.yt-man {
    width: 24px;
    height: 60px;
    margin: 0 auto;
    position: relative;
    margin-top: 60px;
}

/* Туловище */
.man-body {
    width: 8px;
    height: 22px;
    background: #ffffff;
    margin: 0 auto;
    border-radius: 4px;
}

/* Ноги */
.man-leg-left, .man-leg-right {
    width: 4px;
    height: 18px;
    background: #ffffff;
    position: absolute;
    bottom: 0;
    border-radius: 3px;
    transform-origin: top center;
    animation: manWalk 0.8s infinite alternate ease-in-out;
}

.man-leg-left { left: 4px; }
.man-leg-right { right: 4px; animation-delay: 0.4s; }

/* Руки */
.man-arm-left, .man-arm-right {
    width: 4px;
    height: 18px;
    background: #ffffff;
    position: absolute;
    top: 10px;
    border-radius: 3px;
    transform-origin: top center;
    animation: manArms 0.8s infinite alternate ease-in-out;
}

.man-arm-left { left: -6px; }
.man-arm-right { right: -6px; animation-delay: 0.4s; }

/* Подпись */
.loader-label {
    margin-top: 90px;
    font-size: 14px;
    color: #9ca3af;
}

/* --- Анимации --- */

@keyframes ytMove {
    0%   { transform: translate(-50%, 0); }
    50%  { transform: translate(-50%, 8px); }
    100% { transform: translate(-50%, 0); }
}

@keyframes manWalk {
    0%   { transform: rotate(18deg); }
    100% { transform: rotate(-18deg); }
}

@keyframes manArms {
    0%   { transform: rotate(-25deg); }
    100% { transform: rotate(25deg); }
}

/* ================================
   CYBERPUNK SKELETON LOADER
   ================================ */

.cyber-loader {
    margin-top: 30px;
    text-align: center;
    position: relative;
    height: 220px;
}

/* КИБЕР-БОКС КОТОРЫЙ ТЯНЕТ СКЕЛЕТ */
.cyber-box {
    position: absolute;
    top: 40px;
    left: 55%;
    width: 80px;
    height: 55px;
    border-radius: 8px;
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    line-height: 55px;
    text-align: center;
    animation: boxShake 0.4s infinite ease-in-out;
    box-shadow: 0 0 18px #ff0033aa;
}

/* СКЕЛЕТ */
.cyber-skeleton {
    position: absolute;
    left: 40%;
    top: 40px;
    width: 40px;
    height: 140px;
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #00f6ff);
}

/* Череп */
.skull {
    width: 28px;
    height: 28px;
    background: #00faff;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 0 10px #00eaff;
    animation: skullGlow 1s infinite alternate;
}

/* Туловище */
.spine {
    width: 6px;
    height: 45px;
    background: #00faff;
    margin: 6px auto;
    border-radius: 3px;
}

/* Руки */
.arm {
    position: absolute;
    top: 38px;
    width: 8px;
    height: 40px;
    background: #00faff;
    border-radius: 4px;
    transform-origin: top center;
    animation: armMove 0.6s infinite alternate;
}

.left-arm { left: -12px; }
.right-arm { right: -12px; animation-delay: 0.3s; }

/* Ноги */
.leg {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 55px;
    background: #00faff;
    border-radius: 4px;
    transform-origin: top center;
    animation: legMove 0.55s infinite alternate ease-in-out;
}

.left-leg { left: 4px; }
.right-leg { right: 4px; animation-delay: 0.25s; }

/* ТЕКСТ */
.cyber-text {
    position: absolute;
    bottom: -20px;
    width: 100%;
    font-size: 14px;
    color: #80ffff;
    text-shadow: 0 0 6px #00eaff;
    animation: textPulse 1.5s infinite;
}

/* ==== ANIMATIONS ==== */

@keyframes skullGlow {
    0% { box-shadow: 0 0 5px #00eaff; }
    100% { box-shadow: 0 0 12px #00eaff; }
}

@keyframes armMove {
    0% { transform: rotate(20deg); }
    100% { transform: rotate(-20deg); }
}

@keyframes legMove {
    0% { transform: rotate(-18deg); }
    100% { transform: rotate(18deg); }
}

@keyframes boxShake {
    0% { transform: translateX(0px); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0px); }
}

@keyframes textPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Блок-обертка */
quality-wrapper {
    margin-top: 25px;
}

.quality-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #e5e7eb;
}

/* Основная таблица */
.quality-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    background: rgba(20, 22, 30, 0.8);
    border: 1px solid rgba(60, 63, 75, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Заголовки */
.quality-table th {
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    background: linear-gradient(90deg, #1c1f27, #232731);
    border-bottom: 1px solid #323643;
    color: #aab3c5;
    position: relative;
    overflow: hidden;
}

/* Перелив (анимация shimmer) */
.quality-table th::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.07) 50%,
        transparent 100%);
    animation: shimmer 4s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Ячейки */
.quality-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #2a2d35;
    color: #d0d3db;
}

/* Центровка галочек */
.quality-table td:nth-child(2),
.quality-table td:nth-child(3) {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Красный крестик */
.quality-table td:contains("✖") {
    color: #ff4d4d;
}

/* Зелёная галочка */
.quality-table td:contains("✔") {
    color: #4dff88;
}

/* Подсветка строки */
.quality-table tr:hover {
    background: rgba(255,255,255,0.05);
    transition: 0.2s ease-in-out;
}

/* PRO колонка */
.pro-col {
    color: #8ab4ff !important;
    font-size: 13px;
    text-align: center;
}

/* ================================
   🔥 Neon Cyberpunk Table
================================ */

.neon-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.neon-table thead {
    background: rgba(0, 255, 255, 0.12);
}

.neon-table th,
.neon-table td {
    padding: 12px 14px;
    color: #dff;
    text-align: center;
    border-bottom: 1px solid rgba(0,255,255,0.08);
}

.neon-table tr:last-child td {
    border-bottom: none;
}

.neon-table tr:hover {
    background: rgba(0, 255, 255, 0.14);
    transition: 0.2s;
}

/* ================================
   ⭐ Recommended Button
================================ */

.btn-recommended {
    display: inline-block;
    background: linear-gradient(90deg, #00eaff, #0088ff);
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.6);
    transition: 0.25s;
}

.btn-recommended:hover {
    box-shadow: 0 0 26px rgba(0, 200, 255, 1);
    transform: translateY(-2px);
}

.pro-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.pro-modal.hidden {
    display: none;
}

.pro-window {
    width: 420px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 18px;
    animation: fadeIn .4s ease;
    box-shadow: 0 0 25px #ff0066;
}

.pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-title {
    font-size: 20px;
    font-weight: 600;
}

.pro-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
}

.pro-body {
    margin-top: 12px;
    text-align: center;
}

.pro-anim {
    width: 100%;
    height: 140px;
    position: relative;
    margin-bottom: 12px;
}

.cookie-man {
    width: 60px;
    height: 60px;
    background: url('/assets/img/cyberman.gif') center/contain no-repeat;
    position: absolute;
    left: 0;
    top: 20px;
    animation: manMove 3s infinite linear;
}

.cookie {
    width: 40px;
    height: 40px;
    background: url('/assets/img/cookie.png') center/contain no-repeat;
    position: absolute;
    left: 70px;
    top: 50px;
    animation: cookieMove 3s infinite ease-in-out;
}

.yt-logo {
    width: 60px;
    height: 40px;
    background: url('/assets/img/yt.png') center/contain no-repeat;
    position: absolute;
    right: 0;
    top: 40px;
    filter: drop-shadow(0 0 10px red);
}

@keyframes manMove {
    from { transform: translateX(0); }
    to { transform: translateX(240px); }
}

@keyframes cookieMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(120px); }
    100% { transform: translateX(240px); }
}

.btn-pro {
    padding: 12px 18px;
    background: linear-gradient(45deg,#ff0066,#ff33cc);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.pro-status {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

.format-item span.audio-yes {
    color: #00ff7f;
    font-size: 13px;
    margin-left: 8px;
}

.format-item span.audio-no {
    color: #ff5555;
    font-size: 13px;
    margin-left: 8px;
}

.audio-info-btn-wrapper {
    margin-top: 12px;
}

.audio-info-btn {
    background:#1b1b1b;
    border:1px solid #555;
    padding:8px 14px;
    border-radius:6px;
    color:#ddd;
    cursor:pointer;
    transition:0.2s;
}

.audio-info-btn:hover {
    background:#333;
    border-color:#888;
    color:white;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .3s ease;
}

/* ===== Preview card layout fix ===== */
.card-preview-body {
    display: flex;
    flex-direction: column;      /* превью сверху, текст ниже */
    align-items: center;
    gap: 16px;
}

.preview-thumb {
    width: 100%;
    max-width: 320px;
    margin: 12px auto 8px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at top, #1f2933, #020617);
}

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

/* чуть подсветим карточку при успешной загрузке */
.card-preview--active {
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

/* Неоновые кликабельные кнопки форматов в превью */
.tag-format--download {
    cursor: pointer;
    border: 1px solid rgba(56, 245, 173, 0.5);
    background: rgba(16, 185, 129, 0.14);
    box-shadow: 0 0 12px rgba(56, 245, 173, 0.4);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.tag-format--download:hover {
    background: rgba(16, 185, 129, 0.28);
    box-shadow: 0 0 18px rgba(56, 245, 173, 0.7);
    transform: translateY(-1px);
}


.formatBtn.neonBtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin: 8px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid #222;
    color: #e6e6e6;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 0 12px #0007;
}

.formatBtn.neonBtn:hover {
    background: linear-gradient(135deg, #222, #191919);
    border-color: #3b82f6;
    box-shadow: 0 0 15px #3b82f666;
    transform: translateY(-1px);
}

.formatBtn .q {
    font-size: 18px;
    font-weight: 700;
}

.formatBtn .s {
    opacity: 0.7;
    font-size: 14px;
}


/* =========================================================
   Chips (services) — brighter override (added)
   ========================================================= */
.chips { gap: 10px !important; }

.chips .chip{
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;

  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .2px !important;

  color: rgba(255,255,255,.92) !important;
  background: rgba(10,18,40,.78) !important;
  border: 1px solid rgba(120,190,255,.55) !important;

  box-shadow:
    0 0 0 1px rgba(120,190,255,.14) inset,
    0 12px 30px rgba(0,0,0,.25) !important;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease !important;
}

.chips .chip:hover{
  transform: translateY(-1px) !important;
  border-color: rgba(120,190,255,.85) !important;
  background: rgba(10,24,55,.86) !important;
  box-shadow:
    0 0 0 1px rgba(120,190,255,.20) inset,
    0 0 18px rgba(70,150,255,.28),
    0 16px 34px rgba(0,0,0,.35) !important;
}

.chips .chip-active{
  color: #ffffff !important;
  border-color: rgba(80,255,170,.85) !important;
  background: linear-gradient(135deg, rgba(20,70,50,.92), rgba(10,22,55,.92)) !important;
  box-shadow:
    0 0 0 1px rgba(80,255,170,.20) inset,
    0 0 22px rgba(80,255,170,.24),
    0 18px 38px rgba(0,0,0,.40) !important;
}

.chips .chip-muted{ opacity: .82 !important; }
