
/* =================================
   HARUKA TOOLS
   Blue Archive Inspired Design
================================= */

:root {
    --bg: #171326;
    --bg-light: #211b35;
    --card: #241e39;
    --card-light: #2d2545;
    --purple: #aa8bff;
    --purple-light: #c6b4ff;
    --pink: #edb6e9;
    --white: #ffffff;
    --text: #f5f1ff;
    --muted: #a49bb9;
    --border: rgba(194, 170, 255, 0.15);
    --font: 'Nunito', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    min-height: 100vh;
}

/* BACKGROUND */

.background-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.13;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    background: #9566ff;
    top: 100px;
    left: -180px;
}

.glow-two {
    background: #e3a5ed;
    right: -180px;
    top: 600px;
}

/* NAVBAR */

.navbar {
    width: 100%;
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(23, 19, 38, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1150px;
    height: 100%;
    padding: 0 25px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b9a0ff, #8464d9);
    color: white;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 5px 20px rgba(170, 139, 255, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 16px;
}

.brand-text small {
    color: var(--purple);
    font-size: 10px;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple-light);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b9e9ce;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7be3a4;
    box-shadow: 0 0 10px #7be3a4;
}

/* HERO */

.hero {
    max-width: 1150px;
    min-height: 570px;
    padding: 80px 25px 70px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.hero-content {
    flex: 1;
    max-width: 540px;
    animation: fadeUp 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    background: rgba(170, 139, 255, 0.08);
    border-radius: 30px;
    color: var(--purple-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.badge-star {
    color: var(--pink);
}

.hero h1 {
    font-size: clamp(43px, 6vw, 72px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--purple);
    background: linear-gradient(90deg, #c9b6ff, #e9b7eb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--muted);
    max-width: 420px;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 20px;
}

.hero-buttons {
    display: flex;
    gap: 13px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    min-height: 47px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    transition: 0.3s;
}

.primary-button {
    background: linear-gradient(135deg, #b59aff, #9170e9);
    color: #211633;
    box-shadow: 0 7px 25px rgba(170, 139, 255, 0.2);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(170, 139, 255, 0.35);
}

.secondary-button {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255,255,255,0.025);
}

.secondary-button:hover {
    border-color: var(--purple);
    color: var(--purple-light);
}

.hero-info {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 55px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(170, 139, 255, 0.1);
    color: var(--purple-light);
    font-size: 17px;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 12px;
}

.info-item small {
    color: var(--muted);
    font-size: 10px;
}

.info-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* CHARACTER */

.hero-character {
    width: 390px;
    height: 430px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 1s ease both;
}

.character-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(176, 146, 255, 0.19),
        rgba(229, 171, 227, 0.07)
    );
    border: 1px solid rgba(194, 170, 255, 0.16);
}

.haruka-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
    animation: floating 4s ease-in-out infinite;
}

.character-label {
    position: absolute;
    bottom: 10px;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    background: rgba(35, 28, 55, 0.95);
    border: 1px solid var(--border);
    border-radius: 13px;
    backdrop-filter: blur(15px);
}

.label-dot {
    width: 9px;
    height: 9px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--purple);
}

.character-label div {
    display: flex;
    flex-direction: column;
}

.character-label strong {
    font-size: 11px;
    letter-spacing: 1px;
}

.character-label small {
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 1px;
}

.character-decoration {
    position: absolute;
    z-index: 3;
    color: var(--pink);
    font-size: 25px;
}

.decoration-one {
    top: 45px;
    left: 35px;
}

.decoration-two {
    top: 120px;
    right: 15px;
    font-size: 35px;
}

.decoration-three {
    bottom: 70px;
    left: 15px;
    color: var(--purple-light);
}

/* SECTION HEADING */

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-tag {
    color: var(--purple);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 34px;
    font-weight: 900;
    margin-top: 10px;
}

.section-heading p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 9px;
}

/* DOWNLOADER */

.downloader-section {
    max-width: 850px;
    margin: 20px auto 100px;
    padding: 55px 25px;
}

.download-card {
    background: linear-gradient(
        145deg,
        rgba(42, 34, 65, 0.96),
        rgba(31, 26, 48, 0.98)
    );
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.input-label,
.setting-group > label {
    display: flex;
    justify-content: space-between;
    color: #d8caff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.input-required {
    color: var(--muted);
    font-size: 9px;
}

.url-input-wrapper {
    display: flex;
    align-items: center;
    height: 57px;
    padding: 0 13px;
    gap: 12px;
    background: #191528;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s;
}

.url-input-wrapper:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(170,139,255,0.08);
}

.youtube-icon {
    color: #f1a4bc;
    font-size: 18px;
}

.url-input-wrapper input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-family: var(--font);
    font-size: 12px;
}

.url-input-wrapper input::placeholder {
    color: #716981;
}

.paste-button {
    border: none;
    border-radius: 8px;
    padding: 8px 13px;
    background: rgba(170,139,255,0.13);
    color: var(--purple-light);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.search-button,
.download-button {
    width: 100%;
    height: 49px;
    border: none;
    border-radius: 11px;
    margin-top: 14px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.search-button {
    background: rgba(170,139,255,0.12);
    border: 1px solid rgba(170,139,255,0.2);
    color: var(--purple-light);
}

.search-button span {
    margin-right: 8px;
    font-size: 17px;
}

.search-button:hover {
    background: rgba(170,139,255,0.2);
}

/* PREVIEW */

.preview-area {
    margin-top: 25px;
    min-height: 190px;
    border: 1px dashed rgba(194,170,255,0.22);
    background: rgba(18,15,30,0.4);
    border-radius: 14px;
    overflow: hidden;
}

.preview-placeholder {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(170,139,255,0.12);
    color: var(--purple-light);
    font-size: 24px;
    margin-bottom: 12px;
}

.preview-placeholder strong {
    font-size: 13px;
}

.preview-placeholder p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

/* SETTINGS */

.settings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 22px;
}

.settings-heading h3 {
    font-size: 19px;
    margin-top: 5px;
}

.settings-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(170,139,255,0.1);
    color: var(--purple);
    font-size: 19px;
}

.setting-group {
    margin-bottom: 23px;
}

/* FORMAT */

.format-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.format-option {
    min-height: 75px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(20,17,33,0.55);
    cursor: pointer;
    transition: 0.25s;
}

.format-option input {
    position: absolute;
    opacity: 0;
}

.format-option:has(input:checked) {
    border-color: var(--purple);
    background: rgba(170,139,255,0.1);
}

.format-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 19px;
}

.audio-icon {
    background: rgba(176,139,255,0.14);
    color: var(--purple-light);
}

.video-icon {
    background: rgba(237,182,233,0.12);
    color: var(--pink);
}

.format-details {
    display: flex;
    flex-direction: column;
}

.format-details strong {
    font-size: 13px;
}

.format-details small {
    color: var(--muted);
    font-size: 10px;
}

.format-check {
    margin-left: auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: transparent;
    display: grid;
    place-items: center;
    font-size: 11px;
}

.format-option:has(input:checked) .format-check {
    color: #251b3c;
    background: var(--purple);
    border-color: var(--purple);
}

/* QUALITY */

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    height: 49px;
    padding: 0 40px 0 14px;
    appearance: none;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #191528;
    color: var(--text);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
}

.select-wrapper select:focus {
    border-color: var(--purple);
}

.select-wrapper select option {
    background: #241e39;
    color: white;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-light);
    pointer-events: none;
}

.quality-hint {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 8px;
}

/* DOWNLOAD BUTTON */

.download-button {
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    color: #211633;
    background: linear-gradient(110deg, #c4afff, #e6b9ed);
    box-shadow: 0 8px 25px rgba(170,139,255,0.18);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(170,139,255,0.3);
}

.download-button span {
    font-size: 18px;
}

.button-sparkle {
    position: absolute;
    right: 20px;
}

.download-note {
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    margin-top: 16px;
}

/* FEATURES */

.features-section {
    max-width: 1050px;
    margin: 0 auto 100px;
    padding: 30px 25px;
}

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

.feature-card {
    padding: 27px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(42,34,65,0.55);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(194,170,255,0.4);
    background: rgba(48,39,73,0.8);
}

.feature-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 19px;
}

.feature-icon.purple {
    background: rgba(170,139,255,0.15);
    color: var(--purple-light);
}

.feature-icon.pink {
    background: rgba(237,182,233,0.13);
    color: var(--pink);
}

.feature-icon.blue {
    background: rgba(132,175,255,0.13);
    color: #a6c6ff;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* FOOTER */

.footer {
    padding: 35px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: rgba(15,12,25,0.4);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.footer-brand .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 17px;
    border-radius: 9px;
}

.footer p {
    color: var(--muted);
    font-size: 11px;
    margin: 15px 0 9px;
}

.footer > small {
    color: #716981;
    font-size: 10px;
}

/* ANIMATIONS */

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

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

/* RESPONSIVE TABLET */

@media (max-width: 850px) {
    .hero {
        gap: 10px;
        min-height: 500px;
    }

    .hero-character {
        width: 320px;
        height: 380px;
    }

    .character-circle {
        width: 240px;
        height: 240px;
    }

    .hero h1 {
        font-size: 55px;
    }

    .hero-info {
        gap: 13px;
    }

    .nav-links {
        gap: 18px;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 600px) {
    .navbar {
        height: 65px;
    }

    .nav-container {
        padding: 0 17px;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .brand-text {
        font-size: 14px;
    }

    .nav-links {
        display: none;
    }

    .nav-status {
        font-size: 9px;
    }

    .hero {
        min-height: auto;
        padding: 55px 22px 40px;
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-badge {
        font-size: 9px;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 12px;
        margin: 15px auto 0;
        max-width: 330px;
    }

    .hero-buttons {
        justify-content: center;
        margin-top: 24px;
    }

    .primary-button,
    .secondary-button {
        min-height: 44px;
        padding: 0 17px;
        font-size: 11px;
    }

    .hero-info {
        justify-content: center;
        margin-top: 32px;
        gap: 16px;
    }

    .info-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .info-item strong {
        font-size: 10px;
    }

    .info-item small {
        font-size: 9px;
    }

    .hero-character {
        width: 290px;
        height: 330px;
    }

    .character-circle {
        width: 230px;
        height: 230px;
    }

    .character-label {
        right: 0;
        bottom: 0;
        padding: 9px 12px;
    }

    .character-label strong {
        font-size: 9px;
    }

    .character-label small {
        font-size: 7px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        font-size: 11px;
        padding: 0 10px;
    }

    .downloader-section {
        padding: 35px 17px;
        margin-bottom: 60px;
    }

    .download-card {
        padding: 19px 15px;
        border-radius: 17px;
    }

    .url-input-wrapper {
        height: 51px;
        gap: 8px;
        padding: 0 10px;
    }

    .url-input-wrapper input {
        font-size: 10px;
    }

    .paste-button {
        padding: 7px 10px;
        font-size: 10px;
    }

    .preview-area,
    .preview-placeholder {
        min-height: 165px;
    }

    .settings-heading h3 {
        font-size: 17px;
    }

    .format-options {
        gap: 8px;
    }

    .format-option {
        padding: 9px;
        min-height: 68px;
        gap: 7px;
    }

    .format-icon {
        width: 33px;
        height: 33px;
        font-size: 15px;
    }

    .format-details strong {
        font-size: 11px;
    }

    .format-details small {
        font-size: 9px;
    }

    .format-check {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .select-wrapper select {
        font-size: 10px;
    }

    .features-section {
        padding: 20px 17px;
        margin-bottom: 55px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 19px;
    }

    .feature-icon {
        width: 39px;
        height: 39px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 13px;
    }

    .feature-card p {
        font-size: 10px;
    }

    .footer {
        padding: 28px 15px;
    }
}

/* SMALL MOBILE */

@media (max-width: 360px) {
    .hero h1 {
        font-size: 41px;
    }

    .hero-character {
        width: 255px;
        height: 300px;
    }

    .hero-info {
        gap: 10px;
    }

    .info-divider {
        height: 25px;
    }

    .download-card {
        padding: 16px 11px;
        
    }
}

/* =================================
   NOTIFIKASI (dulu ikut terkunci di dalam @media 360px)
================================= */

.haruka-notification {
    position: fixed;
    z-index: 999;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 13px 20px;
    border: 1px solid rgba(194,170,255,0.3);
    border-radius: 12px;
    background: #302648;
    color: #e9ddff;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.3s;
    text-align: center;
    max-width: 90%;
}

.haruka-notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =================================
   MENU GARIS TIGA + DRAWER
================================= */

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-button {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(170, 139, 255, 0.08);
    cursor: pointer;
    transition: 0.25s;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--purple-light);
    transition: 0.25s;
}

.menu-button:hover {
    border-color: var(--purple);
    background: rgba(170, 139, 255, 0.16);
}

.menu-button:focus-visible,
.drawer-close:focus-visible,
.drawer-links a:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 7, 20, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 201;
    width: min(300px, 82vw);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #271f3f, #1b1630);
    border-right: 1px solid var(--border);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
}

.drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
}

.drawer-close:hover {
    color: var(--purple-light);
    border-color: var(--purple);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-links a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.25s;
}

.drawer-links a:hover {
    background: rgba(170, 139, 255, 0.1);
    border-color: var(--border);
}

.drawer-links a.active {
    background: rgba(170, 139, 255, 0.16);
    border-color: rgba(194, 170, 255, 0.35);
    color: var(--purple-light);
}

.drawer-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(170, 139, 255, 0.12);
    color: var(--purple-light);
    font-size: 17px;
}

.drawer-links a.whatsapp .drawer-icon {
    background: rgba(123, 227, 164, 0.13);
    color: #8be9b0;
}

.drawer-external {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.drawer-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #716981;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
}

body.no-scroll {
    overflow: hidden;
}

/* =================================
   HALAMAN DOWNLOADER (gaya yang dulu disisipkan lewat JS)
================================= */

.page-downloader .downloader-section {
    margin-top: 10px;
}

.video-card,
.result-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-align: left;
}

.video-card img,
.result-item img {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: #191528;
}

.video-card strong,
.result-item strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.video-card small,
.result-item small {
    opacity: 0.7;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px;
}

.result-item {
    padding: 10px;
    border-radius: 14px;
    background: rgba(170, 139, 255, 0.08);
    border: 1px solid rgba(170, 139, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.result-item:hover {
    background: rgba(170, 139, 255, 0.18);
}

.result-item img {
    width: 96px;
}

.preview-extra {
    text-align: center;
    width: 100%;
    padding: 14px;
}

.get-file-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #aa8bff;
    color: #211633;
    font-weight: 800;
    text-decoration: none;
}

.skeleton {
    height: 78px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(170,139,255,0.06), rgba(170,139,255,0.16), rgba(170,139,255,0.06));
    background-size: 200% 100%;
    animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* =================================
   PERFORMA
================================= */

.features-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

@media (max-width: 600px) {
    /* blur besar sangat berat di HP, kecilkan */
    .background-glow {
        filter: blur(70px);
    }

    .drawer {
        padding: 18px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =================================
   PILIHAN KUALITAS (pengganti dropdown bawaan browser)
================================= */

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.quality-option {
    min-height: 66px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(20, 17, 33, 0.55);
    color: var(--text);
    font-family: var(--font);
    cursor: pointer;
    transition: 0.25s;
}

.quality-option strong {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.quality-option strong span {
    margin-left: 2px;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
}

.quality-option small {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.quality-option:hover {
    border-color: rgba(194, 170, 255, 0.4);
}

.quality-option.selected {
    border-color: var(--purple);
    background: rgba(170, 139, 255, 0.14);
    box-shadow: 0 0 0 3px rgba(170, 139, 255, 0.08);
}

.quality-option.selected strong,
.quality-option.selected strong span,
.quality-option.selected small {
    color: var(--purple-light);
}

.quality-option:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .quality-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .quality-option {
        min-height: 62px;
    }
}

/* =================================
   HARUKA TOOLS - tambahan v6
================================= */

:root {
    --crimson: #d64560;
    --gold: #e9c46a;
}

.brand .brand-icon,
.footer-brand .brand-icon {
    background: none;
    box-shadow: none;
    font-size: 0;
    border-radius: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

body::after {
    content: "";
    position: fixed;
    inset: auto -120px -160px auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--crimson);
    filter: blur(140px);
    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}

.hero-badge {
    border-color: rgba(214, 69, 96, 0.35);
    background: rgba(214, 69, 96, 0.08);
}

.hero-badge .badge-star {
    color: var(--gold);
}

.character-bubble {
    position: absolute;
    top: 6px;
    left: -6px;
    z-index: 4;
    max-width: 190px;
    padding: 11px 15px;
    border: 1px solid rgba(233, 196, 106, 0.35);
    border-radius: 16px 16px 16px 4px;
    background: rgba(35, 28, 55, 0.96);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 17px;
}

.tool-card {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.tool-card.soon {
    border-style: dashed;
    opacity: 0.8;
}

.tool-card.soon:hover {
    transform: none;
}

.tool-status {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.tool-status.live {
    border-color: rgba(123, 227, 164, 0.4);
    color: #7be3a4;
}

.tool-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 800;
}

.why-section {
    margin-top: -50px;
}

.about-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(48, 39, 73, 0.7), rgba(36, 30, 57, 0.5));
}

.about-text {
    flex: 1;
    max-width: 560px;
}

.about-text h2 {
    font-size: 28px;
    margin: 6px 0 12px;
}

.about-text p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.about-text strong {
    color: var(--purple-light);
}

.creator-card {
    flex-shrink: 0;
    width: 210px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    border: 1px solid rgba(233, 196, 106, 0.3);
    border-radius: 16px;
    background: rgba(23, 19, 38, 0.6);
}

.creator-card img {
    margin-bottom: 8px;
}

.creator-card small {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
}

.creator-card strong {
    font-size: 18px;
}

.creator-card span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.footer .footer-disclaimer {
    display: block;
    max-width: 520px;
    margin: 10px auto 0;
    color: #5f586f;
    font-size: 9px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .about-card {
        flex-direction: column;
        align-items: stretch;
        padding: 26px 20px;
    }

    .creator-card {
        width: 100%;
    }

    .character-bubble {
        left: 0;
        max-width: 160px;
        font-size: 11px;
    }

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


/* Halaman Alight Motion */
.am-step {
    margin-top: 28px;
}

.am-result {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(18, 15, 30, 0.5);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    word-break: break-word;
}

.am-result.ok {
    border-color: rgba(123, 227, 164, 0.4);
    color: #7be3a4;
}

.am-result.fail {
    border-color: rgba(214, 69, 96, 0.45);
    color: #f1a4bc;
}


/* Kotak tempel manual */
.paste-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 7, 20, 0.7);
}

.paste-modal {
    width: 100%;
    max-width: 380px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #231c37;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paste-modal p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.paste-modal textarea {
    width: 100%;
    resize: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #191528;
    color: white;
    font-family: var(--font);
    font-size: 16px;
    outline: none;
}

.paste-modal textarea:focus {
    border-color: var(--purple);
}

.paste-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.paste-modal-actions button {
    border: none;
    border-radius: 9px;
    padding: 9px 16px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.paste-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.paste-ok {
    background: linear-gradient(135deg, #b9a0ff, #8464d9);
    color: white;
}


/* TikTok Downloader */
.tt-player {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    background: #000;
}

.tt-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
}

.tt-meta strong {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.tt-meta small {
    color: var(--muted);
    font-size: 11px;
}

.tt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.tt-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #191528;
}

.tt-save {
    display: block;
    margin-top: 6px;
    padding: 7px 0;
    border-radius: 8px;
    background: rgba(170, 139, 255, 0.13);
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

#ttSettings[hidden],
#ttQualityWrap[hidden],
#ttAudioOption[hidden] {
    display: none;
}


/* Pemutar YouTube */
.yt-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.yt-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-player + .video-card {
    margin-top: 12px;
}

.yt-open-link {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.yt-open-link:hover {
    color: var(--purple-light);
}

.back-button {
    margin-bottom: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--purple-light);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}


/* Edit Foto */
.edit-step {
    margin-top: 24px;
}

.edit-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.edit-tool {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 15, 30, 0.5);
    color: var(--text);
    font-family: var(--font);
    text-align: left;
    cursor: pointer;
}

.edit-tool strong {
    font-size: 13px;
    font-weight: 900;
}

.edit-tool small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.edit-tool.active {
    border-color: var(--purple);
    background: rgba(170, 139, 255, 0.14);
}

.edit-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 16px;
    border: 2px dashed var(--border);
    border-radius: 14px;
    background: rgba(18, 15, 30, 0.35);
    text-align: center;
    cursor: pointer;
}

.drop-zone[hidden],
.edit-selected[hidden] {
    display: none;
}

.drop-zone.dragging {
    border-color: var(--purple);
    background: rgba(170, 139, 255, 0.12);
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.drop-icon {
    color: var(--purple-light);
    font-size: 26px;
}

.drop-zone strong {
    font-size: 13px;
}

.drop-zone small {
    color: var(--muted);
    font-size: 11px;
}

.edit-selected {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(18, 15, 30, 0.5);
}

.edit-selected img {
    width: 84px;
    height: 84px;
    flex: none;
    object-fit: cover;
    border-radius: 10px;
}

.edit-selected > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    align-items: flex-start;
}

.edit-selected strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-selected small {
    color: var(--muted);
    font-size: 11px;
}

.edit-selected .back-button {
    margin: 4px 0 0;
}

.edit-result {
    border-radius: 12px;
    overflow: hidden;
}

.edit-result img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

/* Kotak-kotak supaya bagian transparan terlihat */
.edit-result.checker {
    background-color: #2a2340;
    background-image:
        linear-gradient(45deg, #3a3156 25%, transparent 25%, transparent 75%, #3a3156 75%),
        linear-gradient(45deg, #3a3156 25%, transparent 25%, transparent 75%, #3a3156 75%);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}


/* =================================
   BERANDA: RINGKASAN, LANGKAH, DETAIL, FAQ
================================= */

/* Muncul halus saat di-scroll (hanya aktif kalau JavaScript jalan) */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.stats-section {
    width: min(1100px, 100% - 40px);
    margin: 10px auto 0;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(45, 37, 69, 0.8), rgba(36, 30, 57, 0.8));
    overflow: hidden;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 18px 8px;
    text-align: center;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--border);
}

.stat-item strong {
    color: var(--purple-light);
    font-size: 18px;
    font-weight: 900;
}

.stat-item small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.tool-points {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 14px;
    list-style: none;
}

.tool-points li {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(170, 139, 255, 0.1);
    color: var(--purple-light);
    font-size: 10px;
    font-weight: 800;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.step-card {
    position: relative;
    padding: 26px 22px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.step-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b9a0ff, #8464d9);
    color: white;
    font-size: 16px;
    font-weight: 900;
}

.step-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.step-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(900px, 100%);
    margin: 0 auto;
}

.detail-card {
    display: flex;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.detail-card .feature-icon {
    flex: none;
    margin-bottom: 0;
}

.detail-card h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.detail-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.detail-card strong {
    color: var(--text);
}

.detail-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
}

.notice-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 28px 24px;
    border: 1px solid rgba(237, 182, 233, 0.28);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(237, 182, 233, 0.08), rgba(170, 139, 255, 0.08));
}

.notice-card h2 {
    margin: 8px 0 14px;
    font-size: 22px;
}

.notice-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 18px;
}

.notice-card li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.notice-card li strong {
    color: var(--text);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(800px, 100%);
    margin: 0 auto;
}

.faq-list details {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
}

.faq-list summary {
    position: relative;
    padding: 16px 44px 16px 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-light);
    font-size: 20px;
    font-weight: 900;
}

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

.faq-list details p {
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(3) {
        border-left: none;
    }

    .stat-item:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }

    .detail-card {
        flex-direction: column;
        gap: 14px;
    }
}


.edit-caption {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}


/* Tombol muat ulang di navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(170, 139, 255, 0.1);
    color: var(--purple-light);
    font-family: var(--font);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.refresh-button:hover {
    background: rgba(170, 139, 255, 0.2);
}

.refresh-button span {
    display: block;
}

.refresh-button.spinning span {
    animation: refreshSpin 0.5s linear infinite;
}

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

@media (max-width: 400px) {
    .nav-right {
        gap: 8px;
    }

    .nav-right .nav-status span:last-child {
        display: none;
    }
}


/* =================================
   NGOBROL DENGAN HARUKA
================================= */

.hk-stage {
    position: relative;
    width: 100%;
    height: min(62vh, 480px);
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(170, 139, 255, 0.28), transparent 60%),
        linear-gradient(180deg, #241c3d, #171229);
}

.hk-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.hk-canvas:active {
    cursor: grabbing;
}

.hk-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hk-status {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(18, 15, 30, 0.8);
    color: var(--purple-light);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.hk-status.failed {
    white-space: normal;
    width: calc(100% - 32px);
    color: var(--muted);
}

.hk-bubble {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    max-height: 40%;
    overflow: auto;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f1ebff;
    color: #2a1d4d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.hk-bubble.show {
    opacity: 1;
    transform: none;
}

.hk-bubble[hidden] {
    display: none;
}

.hk-flip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 15, 30, 0.75);
    color: var(--purple-light);
    font-size: 18px;
    cursor: pointer;
}

.hk-flip[hidden] {
    display: none;
}

.hk-debug {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
}

.hk-debug[hidden] {
    display: none;
}

.hk-debug select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #191528;
    color: white;
    font-family: var(--font);
}

.hk-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 230px;
    margin-top: 14px;
    padding-right: 2px;
    overflow-y: auto;
}

.hk-msg {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    word-break: break-word;
}

.hk-msg.haruka {
    align-self: flex-start;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    background: rgba(170, 139, 255, 0.12);
}

.hk-msg.user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, #b9a0ff, #8464d9);
    color: white;
}

.hk-msg.typing {
    color: var(--muted);
    letter-spacing: 3px;
}

.hk-link {
    display: block;
    margin-top: 6px;
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.hk-link:hover {
    text-decoration: underline;
}

.hk-chips {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hk-chips::-webkit-scrollbar {
    display: none;
}

.hk-chip {
    flex: none;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(170, 139, 255, 0.1);
    color: var(--purple-light);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.hk-chip:hover {
    background: rgba(170, 139, 255, 0.2);
}

.hk-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.hk-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 15, 30, 0.6);
    color: white;
    font-family: var(--font);
    font-size: 16px;
    outline: none;
}

.hk-form input:focus {
    border-color: var(--purple);
}

.hk-send {
    flex: none;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b9a0ff, #8464d9);
    color: white;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.hk-send:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* Ikon merek (YouTube, TikTok, Alight Motion) */
.feature-icon.brand {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.feature-icon.brand img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.drawer-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


#ytSettings[hidden],
#ytQualityWrap[hidden] {
    display: none;
}

/* HD Upscale: pilihan perbesaran */
.hd-hint {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

/* Tombol terakhir yang sendirian di baris mengisi lebar penuh */
.edit-tools .edit-tool:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Sticker.ly */
.sl-thumb {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sl-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.sl-actions .sl-main {
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: var(--font);
}

.sl-actions .sl-main:disabled {
    opacity: 0.7;
    cursor: wait;
}

.sl-open {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 15, 30, 0.5);
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.sl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

@media (min-width: 560px) {
    .sl-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sl-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(18, 15, 30, 0.5);
}

.sl-frame {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background:
        repeating-conic-gradient(rgba(255, 255, 255, 0.06) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

.sl-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sl-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sl-btn {
    display: block;
    padding: 7px 4px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(170, 139, 255, 0.12);
    color: var(--text);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.sl-btn.wa {
    background: rgba(123, 227, 164, 0.14);
    color: #b9f5d2;
}

.sl-note {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
