/* ===============================
   SSSSave — Modern Dark UI
   =============================== */

:root {
    /* Base palette */
    --bg-0: #06060f;
    --bg-1: #0b0b1a;
    --bg-2: #10102a;
    --bg-elev: #14142e;
    --bg-elev-2: #1a1a38;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* Text */
    --text: #f4f4ff;
    --text-dim: #b6b8d0;
    --text-mute: #7a7d99;

    /* Brand gradients */
    --grad-1: linear-gradient(135deg, #7c5cff 0%, #ff5eb3 55%, #ffb057 100%);
    --grad-2: linear-gradient(135deg, #00d4ff 0%, #7c5cff 100%);
    --grad-3: linear-gradient(135deg, #ff5eb3 0%, #ff8a3d 100%);

    /* Accents */
    --primary: #7c5cff;
    --primary-2: #a78bfa;
    --success: #10d38b;
    --danger: #ff4b6e;

    /* Radius / shadow */
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-lg: 0 30px 80px -30px rgba(124, 92, 255, 0.35), 0 10px 40px -20px rgba(255, 94, 179, 0.25);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);

    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

.only-mobile {
    display: none;
}
@media (max-width: 640px) {
    .only-mobile {
        display: inline;
    }
}

.only-desk {
    display: inline;
}
@media (max-width: 640px) {
    .only-desk {
        display: none;
    }
}

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

/* ===============================
   Background aura
   =============================== */
.bg-aura {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    filter: blur(80px);
    opacity: 0.55;
    border-radius: 50%;
    will-change: transform;
    animation: float 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 30% 30%, #7c5cff, transparent 60%);
    top: -180px;
    left: -140px;
}

.orb-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle at 60% 40%, #ff5eb3, transparent 60%);
    top: 20%;
    right: -160px;
    animation-delay: -6s;
}

.orb-3 {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle at 50% 50%, #00d4ff, transparent 65%);
    bottom: -240px;
    left: 20%;
    opacity: 0.35;
    animation-delay: -12s;
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(40px, -40px, 0) scale(1.08);
    }
}

.grid-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

#app {
    position: relative;
    z-index: 1;
}

/* ===============================
   Header
   =============================== */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(6, 6, 15, 0.65);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--grad-1);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(124, 92, 255, 0.55);
}

.brand-name {
    color: var(--text);
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-accent {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.nav a {
    position: relative;
    padding: 6px 2px;
    transition: color 0.2s;
}

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

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: var(--grad-1);
    transition: width 0.25s ease;
    border-radius: 2px;
}
.nav a:hover::after {
    width: 100%;
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }
}

/* ===============================
   Hero
   =============================== */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10d38b;
    box-shadow: 0 0 0 4px rgba(16, 211, 139, 0.2);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 20px;
}

.grad-text {
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 36px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.tab:hover {
    transform: translateY(-2px);
    color: var(--text);
    border-color: var(--border-strong);
}

.tab.active {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tab-accent, #7c5cff), rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 24px -8px var(--tab-accent, #7c5cff);
}

.tab i {
    font-size: 1rem;
}

/* Downloader card */
.downloader {
    background: linear-gradient(180deg, rgba(20, 20, 46, 0.9), rgba(10, 10, 25, 0.9));
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    text-align: left;
    backdrop-filter: blur(16px);
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.downloader::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.5), transparent 40%, rgba(255, 94, 179, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.downloader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hint {
    font-size: 0.82rem;
    color: var(--text-mute);
}

.url-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.input-wrap:focus-within {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
}

.input-icon {
    padding: 0 14px;
    color: var(--text-mute);
    font-size: 0.95rem;
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1rem;
    padding: 16px 4px;
    font-family: 'JetBrains Mono', monospace;
    min-width: 0;
}

.url-input::placeholder {
    color: var(--text-mute);
    font-family: 'Sora', sans-serif;
}

.paste-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-left: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.paste-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    background: var(--grad-1);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--r);
    min-height: 54px;
    box-shadow: 0 12px 32px -12px rgba(124, 92, 255, 0.6);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px -16px rgba(255, 94, 179, 0.6);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .url-form {
        flex-direction: column;
    }
    .paste-label {
        display: none;
    }
    .downloader {
        padding: 22px;
        border-radius: var(--r-lg);
    }
}

/* Alerts */
.alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--r);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 75, 110, 0.1);
    border: 1px solid rgba(255, 75, 110, 0.3);
    color: #ff8fa3;
}

/* Results */
.results {
    margin-top: 26px;
    animation: slide-up 0.4s ease;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-head h3 {
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.results-head i {
    color: #ffb057;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.reset-btn:hover {
    color: var(--text);
    border-color: var(--primary-2);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.media-card {
    background: rgba(6, 6, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-2);
}

.media-thumb {
    position: relative;
    aspect-ratio: 4 / 5;
    background: #000;
    overflow: hidden;
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-actions {
    padding: 12px;
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    flex: 1;
    background: var(--grad-2);
    color: white;
    box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(0, 212, 255, 0.55);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    color: var(--text-dim);
}

.btn-ghost:hover {
    color: var(--text);
}

/* Trust row */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
    color: var(--text-mute);
    font-size: 0.85rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--primary-2);
}

/* ===============================
   Sections
   =============================== */
.section {
    padding: 90px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, transparent, rgba(20, 20, 46, 0.35), transparent);
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-sub {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.platform-card {
    background: linear-gradient(180deg, rgba(20, 20, 46, 0.6), rgba(10, 10, 25, 0.6));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    text-align: left;
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.platform-card p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.chip {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-mute);
    font-family: 'JetBrains Mono', monospace;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.step {
    padding: 32px 26px;
    background: rgba(20, 20, 46, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
}

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* FAQ */
.faq {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq details {
    background: rgba(20, 20, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 6px 18px;
    transition: border-color 0.2s;
}

.faq details[open] {
    border-color: var(--primary-2);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--text);
}

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

.faq summary i {
    color: var(--primary-2);
    transition: transform 0.25s;
}

.faq details[open] summary i {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 0 18px;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
}

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

.footer-note {
    text-align: right;
}

.muted {
    color: var(--text-mute);
    font-size: 0.9rem;
    margin-top: 6px;
}

.small {
    font-size: 0.78rem;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }
    .hero {
        padding: 40px 0 20px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-note {
        text-align: center;
    }
}
;
}

/* FAQ */
.faq {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq details {
    background: rgba(20, 20, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 6px 18px;
    transition: border-color 0.2s;
}

.faq details[open] {
    border-color: var(--primary-2);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    color: var(--text);
}

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

.faq summary i {
    color: var(--primary-2);
    transition: transform 0.25s;
}

.faq details[open] summary i {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 0 18px;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
}

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

.footer-note {
    text-align: right;
}

.muted {
    color: var(--text-mute);
    font-size: 0.9rem;
    margin-top: 6px;
}

.small {
    font-size: 0.78rem;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .section {
        padding: 60px 0;
    }
    .hero {
        padding: 40px 0 20px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-note {
        text-align: center;
    }
}


/* ===============================
   Features grid (Neden SSSSave?)
   =============================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(180deg, rgba(20, 20, 46, 0.75), rgba(10, 10, 25, 0.7));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px -20px rgba(124, 92, 255, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--grad-2);
    color: white;
    font-size: 1.25rem;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px -10px rgba(0, 212, 255, 0.5);
}

.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.6;
}

/* ===============================
   Mobile Menu (Hamburger)
   =============================== */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
    z-index: 30;
    position: relative;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-2);
}

.menu-toggle .bars {
    width: 18px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.menu-toggle .bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}

.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }

.menu-toggle.is-open .bars span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.menu-toggle.is-open .bars span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .bars span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu-backdrop.is-open {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: linear-gradient(180deg, #0b0b1a 0%, #06060f 100%);
        border-left: 1px solid var(--border-strong);
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 28px 28px;
        gap: 6px;
        z-index: 20;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.6);
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav a {
        width: 100%;
        padding: 14px 4px;
        font-size: 1.05rem;
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }

    .nav a::after {
        display: none;
    }

    .nav a:last-child {
        border-bottom: none;
    }
}

@media (min-width: 769px) {
    .menu-toggle,
    .mobile-menu-backdrop {
        display: none !important;
    }
}

