@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #09090f;
    --panel: rgba(22, 22, 34, 0.78);
    --panel-strong: #181824;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f8f7ff;
    --muted: #a4a3b8;
    --purple: #8b5cf6;
    --purple-bright: #b56cff;
    --pink: #e85aad;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 8%, rgba(139, 92, 246, 0.18), transparent 30rem),
        radial-gradient(circle at 86% 75%, rgba(232, 90, 173, 0.11), transparent 28rem),
        var(--bg);
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: 0.32;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
}

.wrapper {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 64px;
}

.header {
    position: relative;
    margin-bottom: 38px;
    text-align: center;
}

.header h1 {
    position: relative;
    display: inline-block;
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 1;
    color: transparent;
    background:
        linear-gradient(
            110deg,
            #ffffff 10%,
            #d9c5ff 30%,
            #ffffff 45%,
            #bb9dff 60%,
            #ffffff 82%
        );
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 220% auto;
    filter: drop-shadow(0 0 22px rgba(157, 108, 255, 0.26));
    animation: titleShine 6s linear infinite;
}

.header p {
    margin-top: 16px;
    color: var(--muted);
    font-size: clamp(.95rem, 2vw, 1.08rem);
    letter-spacing: .01em;
}

.main {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
    gap: 25px;
    align-items: stretch;
}

.left-panel,
.right-panel {
    min-width: 0;
}

.card,
.result-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(
        150deg,
        rgba(32, 32, 49, 0.86),
        rgba(15, 15, 24, 0.9)
    );
    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(18px);
}

.card {
    padding: 27px;
}

.result-card {
    min-height: 720px;
    padding: 18px;
}

label {
    display: block;
    margin: 20px 0 9px;
    color: #efeeff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

label:first-child {
    margin-top: 0;
}

textarea,
select,
input[type="file"] {
    width: 100%;
    color: var(--text);
    font: inherit;
}

textarea,
select {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(7, 7, 13, 0.6);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea {
    min-height: 106px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.55;
}

textarea#negative {
    min-height: 84px;
}

textarea::placeholder {
    color: #737286;
}

textarea:focus,
select:focus {
    border-color: rgba(164, 111, 255, 0.85);
    background: rgba(12, 10, 22, 0.92);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

select {
    height: 48px;
    padding: 0 42px 0 14px;
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #aca9c8 50%),
        linear-gradient(135deg, #aca9c8 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 20px,
        calc(100% - 15px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

select option {
    color: var(--text);
    background: #181724;
}
input[type="file"] {
    padding: 12px;
    border: 1px dashed rgba(180, 133, 255, 0.5);
    border-radius: 13px;
    color: var(--muted);
    cursor: pointer;
    background: rgba(7, 7, 13, 0.42);
    transition: border-color .2s ease, background .2s ease;
}

input[type="file"]:hover {
    border-color: var(--purple-bright);
    background: rgba(139, 92, 246, 0.08);
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 11px;
    border: 0;
    border-radius: 8px;
    color: #f8f7ff;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(139, 92, 246, 0.3);
    transition: background .2s ease;
}

input[type="file"]:hover::file-selector-button {
    background: rgba(139, 92, 246, 0.52);
}

#previewBox {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 155px;
    margin-top: 11px;
    overflow: hidden;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    color: #85849a;
    font-size: .84rem;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.07), transparent),
        rgba(5, 5, 10, 0.38);
}

#previewBox img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}

button#generateBtn {
    position: relative;
    width: 100%;
    margin-top: 24px;
    padding: 15px 20px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    color: white;
    font: inherit;
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    background: linear-gradient(105deg, #6d52e8, #9c5cfa 52%, #d358cb);
    box-shadow: 0 13px 28px rgba(123, 80, 238, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button#generateBtn::before {
    position: absolute;
    top: 0;
    left: -130%;
    width: 65%;
    height: 100%;
    content: "";
    transform: skewX(-20deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );
    transition: left .65s ease;
}

button#generateBtn:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(148, 91, 249, 0.37);
}

button#generateBtn:hover:not(:disabled)::before {
    left: 150%;
}

button#generateBtn:active:not(:disabled) {
    transform: translateY(0);
}

button#generateBtn:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    color: #aaa9bc;
    font-size: .78rem;
    background: rgba(4, 4, 8, 0.3);
}

.status > span:last-child,
#gpu {
    color: #c8ffd9;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
}

#hasil {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 682px;
    overflow: hidden;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: #858499;
    text-align: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.08), transparent 45%),
        rgba(4, 4, 9, 0.42);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 30px;
}

.modern-spinner {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #c487ff;
    border-right-color: #8b5cf6;
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(172, 103, 255, 0.2);
    animation: spinner .85s cubic-bezier(.55, .2, .35, .8) infinite;
}

.loading-container h3 {
    margin: 0;
    color: #f7f5ff;
    font-size: 1.1rem;
    font-weight: 650;
}

.loading-container p {
    margin: 8px 0 0;
    color: #9391a8;
    font-size: .87rem;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes titleShine {
    from {
        background-position: 210% center;
    }

    to {
        background-position: -40% center;
    }
}
#hasil > div {
    width: 100%;
}

#hasil img {
    display: block;
    width: 100%;
    max-height: 650px;
    margin: auto;
    border-radius: 14px;
    object-fit: contain;
    background: #07070c;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
    animation: imageReveal .45s ease both;
}

#hasil a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px !important;
    padding: 11px 17px !important;
    border: 1px solid rgba(184, 133, 255, 0.35);
    border-radius: 10px !important;
    color: #f5efff !important;
    font-size: .84rem;
    font-weight: 700 !important;
    text-decoration: none;
    background: rgba(139, 92, 246, 0.18) !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

#hasil a:hover {
    border-color: rgba(209, 163, 255, 0.8);
    background: rgba(139, 92, 246, 0.37) !important;
    transform: translateY(-2px);
}

#hasil h3 {
    color: #ffb4bc;
    font-size: 1rem;
}

#hasil pre {
    max-width: 100%;
    margin-top: 14px;
    padding: 13px;
    overflow: auto;
    border-radius: 12px;
    color: #ffccd2;
    font-size: .75rem;
    text-align: left;
    background: rgba(139, 26, 46, 0.18);
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .wrapper {
        width: min(100% - 30px, 680px);
        padding-top: 34px;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .result-card {
        min-height: 500px;
    }

    #hasil {
        min-height: 465px;
    }

    .right-panel {
        order: -1;
    }
}

@media (max-width: 520px) {
    .wrapper {
        width: min(100% - 22px, 680px);
        padding: 25px 0 36px;
    }

    .header {
        margin-bottom: 26px;
    }

    .header h1 {
        font-size: 2.45rem;
    }

    .header p {
        margin-top: 12px;
        font-size: .9rem;
    }

    .card {
        padding: 18px;
        border-radius: 19px;
    }

    .result-card {
        min-height: 380px;
        padding: 10px;
        border-radius: 19px;
    }

    #hasil {
        min-height: 360px;
        border-radius: 13px;
        font-size: .85rem;
    }

    .loading-container {
        min-height: 350px;
    }

    textarea {
        min-height: 95px;
    }

    #previewBox,
    #previewBox img {
        height: 130px;
    }

    button#generateBtn {
        padding: 14px;
    }
}

/* =============================
   LoRA Thumbnail Gallery
============================= */

.lora-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 310px;
    margin-top: 12px;
    padding-right: 4px;
    overflow-y: auto;
}

.lora-gallery:empty {
    display: none;
}

.lora-card {
    position: relative;
    min-height: 125px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    color: #f8f7ff;
    text-align: left;
    cursor: pointer;
    background: #11111a;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.lora-card:hover {
    border-color: rgba(183, 126, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(122, 72, 234, 0.22);
}

.lora-card.is-selected {
    border-color: #b475ff;
    box-shadow:
        0 0 0 2px rgba(171, 102, 255, 0.3),
        0 10px 26px rgba(123, 73, 235, 0.28);
}

.lora-card img {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
    transition: transform .3s ease;
}

.lora-card:hover img {
    transform: scale(1.06);
}

.lora-card__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px 9px 9px;
    overflow: hidden;
    color: white;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(transparent, rgba(4, 4, 9, .94));
}

.lora-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: white;
    font-size: .78rem;
    font-weight: 800;
    line-height: 23px;
    text-align: center;
    background: #8b5cf6;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.lora-card.is-selected .lora-card__check {
    display: block;
}

.lora-gallery::-webkit-scrollbar {
    width: 6px;
}

.lora-gallery::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(178, 123, 255, 0.4);
}

@media (max-width: 520px) {
    .lora-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 270px;
    }

    .lora-card,
    .lora-card img {
        min-height: 105px;
        height: 105px;
    }
}

/* =============================
   Model Thumbnail Gallery
============================= */

.model-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

.model-gallery:empty {
    display: none;
}

.model-card {
    position: relative;
    min-height: 106px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f8f7ff;
    text-align: left;
    cursor: pointer;
    background: #11111a;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.model-card:hover {
    border-color: rgba(183, 126, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(122, 72, 234, 0.22);
}

.model-card.is-selected {
    border-color: #b475ff;
    box-shadow:
        0 0 0 2px rgba(171, 102, 255, 0.3),
        0 10px 26px rgba(123, 73, 235, 0.28);
}

.model-card img {
    display: block;
    width: 100%;
    height: 106px;
    object-fit: cover;
    transition: transform .3s ease;
}

.model-card:hover img {
    transform: scale(1.06);
}

.model-card__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px 8px 8px;
    overflow: hidden;
    color: white;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(transparent, rgba(4, 4, 9, .94));
}

.model-card__check {
    position: absolute;
    top: 7px;
    right: 7px;
    display: none;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: white;
    font-size: .72rem;
    font-weight: 800;
    line-height: 21px;
    text-align: center;
    background: #8b5cf6;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.model-card.is-selected .model-card__check {
    display: block;
}

@media (max-width: 520px) {
    .model-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .model-card,
    .model-card img {
        min-height: 90px;
        height: 90px;
    }

    .model-card__name {
        font-size: .58rem;
    }
}

/* =====================================================
   PREMIUM HAMBURGER MENU
===================================================== */

.menu-btn{

    position:absolute;

    left:0;

    top:12px;

    width:52px;

    height:52px;

    border:none;

    border-radius:14px;

    background:rgba(255,255,255,.05);

    color:white;

    font-size:28px;

    cursor:pointer;

    transition:.25s;

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.08);

}

.menu-btn:hover{

    background:rgba(139,92,246,.25);

    transform:scale(1.05);

}

.header{

    display:flex;

    align-items:center;

    justify-content:center;

    position:relative;

}

.header-content{

    text-align:center;

}

.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(6px);

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:900;

}

.overlay.show{

    opacity:1;

    visibility:visible;

}

.sidebar{

    position:fixed;

    left:-320px;

    top:0;

    width:290px;

    height:100vh;

    background:linear-gradient(
        180deg,
        #171725,
        #101018
    );

    border-right:1px solid rgba(255,255,255,.08);

    transition:.35s;

    z-index:999;

    display:flex;

    flex-direction:column;

    box-shadow:
    20px 0 60px rgba(0,0,0,.45);

}

.sidebar.show{

    left:0;

}

.sidebar-logo{

    padding:35px 28px;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.sidebar-logo h2{

    color:white;

    font-size:28px;

    margin-bottom:8px;

}

.sidebar-logo span{

    color:#a7a7bc;

    font-size:14px;

}

.sidebar-nav{

    display:flex;

    flex-direction:column;

    padding:20px;

    gap:8px;

    flex:1;

}

.sidebar-nav a{

    display:flex;

    align-items:center;

    gap:15px;

    padding:15px 18px;

    border-radius:14px;

    color:white;

    text-decoration:none;

    transition:.25s;

    font-size:15px;

    font-weight:600;

}

.sidebar-nav a:hover{

    background:rgba(139,92,246,.18);

}

.sidebar-nav a.active{

    background:linear-gradient(
    90deg,
    rgba(139,92,246,.35),
    rgba(232,90,173,.18)
    );

}

.sidebar-nav a small{

    margin-left:auto;

    background:#8b5cf6;

    padding:4px 8px;

    border-radius:30px;

    font-size:10px;

    color:white;

}

.sidebar-divider{

    height:1px;

    background:rgba(255,255,255,.08);

    margin:10px 0;

}
/* =====================================================
   PREMIUM SIDEBAR ANIMATION
===================================================== */

.sidebar-nav a{

    position:relative;

    overflow:hidden;

}

.sidebar-nav a::before{

    content:"";

    position:absolute;

    left:-120%;

    top:0;

    width:70%;

    height:100%;

    transform:skewX(-25deg);

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.15),

        transparent

    );

    transition:.7s;

}

.sidebar-nav a:hover::before{

    left:160%;

}

.sidebar-nav a span{

    transition:.25s;

}

.sidebar-nav a:hover span{

    transform:translateX(6px);

}

.sidebar-nav a{

    box-shadow:0 0 0 rgba(0,0,0,0);

}

.sidebar-nav a:hover{

    box-shadow:

    0 10px 25px rgba(139,92,246,.18);

}

.sidebar-nav a.active{

    box-shadow:

    0 0 25px rgba(139,92,246,.30);

}

.sidebar-logo{

    position:relative;

}

.sidebar-logo::after{

    content:"";

    position:absolute;

    bottom:0;

    left:25px;

    width:70px;

    height:3px;

    border-radius:50px;

    background:linear-gradient(

        90deg,

        #8b5cf6,

        #d358cb

    );

}

.sidebar{

    backdrop-filter:blur(30px);

}

.overlay{

    transition:

        opacity .35s,

        visibility .35s,

        backdrop-filter .35s;

}

/* ==========================
   Mobile
========================== */

@media(max-width:900px){

    .menu-btn{

        left:8px;

        top:6px;

    }

    .sidebar{

        width:270px;

    }

}

/* ==========================
   Small Phone
========================== */

@media(max-width:520px){

    .sidebar{

        width:245px;

    }

    .sidebar-logo{

        padding:26px;

    }

    .sidebar-logo h2{

        font-size:23px;

    }

    .sidebar-nav{

        padding:15px;

    }

    .sidebar-nav a{

        padding:13px 15px;

        font-size:14px;

    }

}
/* =====================================================
   PREMIUM HAMBURGER FINAL
===================================================== */

/* Animasi Sidebar */

.sidebar{

    transition:
        left .35s cubic-bezier(.22,.61,.36,1),
        box-shadow .35s;

}

/* Tombol Hamburger */

.menu-btn{

    z-index:1001;

    display:flex;

    justify-content:center;

    align-items:center;

    transition:
        transform .25s,
        background .25s,
        color .25s;

}

.menu-btn:hover{

    transform:rotate(90deg);

}

.menu-btn.active{

    background:#8b5cf6;

    color:white;

    transform:rotate(180deg);

}

/* Saat sidebar terbuka */

body.menu-open{

    overflow:hidden;

}

/* Glow */

.sidebar::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:180px;

    background:

    radial-gradient(

        circle,

        rgba(139,92,246,.18),

        transparent 70%

    );

    pointer-events:none;

}

/* Scroll */

.sidebar{

    overflow-y:auto;

}

.sidebar::-webkit-scrollbar{

    width:6px;

}

.sidebar::-webkit-scrollbar-thumb{

    background:rgba(139,92,246,.45);

    border-radius:30px;

}

/* Icon */

.sidebar-nav a{

    font-size:15px;

}

.sidebar-nav a:hover{

    color:#ffffff;

}

.sidebar-nav a span{

    flex:1;

}

/* Badge */

.sidebar-nav a small{

    min-width:48px;

    text-align:center;

}

/* Desktop */

@media(min-width:901px){

    .wrapper{

        transition:transform .35s;

    }

    body.menu-open .wrapper{

        transform:translateX(25px);

    }

}

/* Mobile */

@media(max-width:900px){

    body.menu-open .wrapper{

        filter:blur(2px);

    }

}

/* ======================================
   AUTH PAGE
====================================== */

.auth-page{

    margin:0;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:linear-gradient(180deg,#0b0b14,#1b1530);

    font-family:Inter,sans-serif;

}

.auth-container{

    width:100%;

    max-width:440px;

    padding:20px;

}

.auth-card{

    background:#1b1b2d;

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:40px;

    box-shadow:0 20px 60px rgba(0,0,0,.45);

}

.auth-card h1{

    margin:0;

    color:#ffffff;

    text-align:center;

    font-size:38px;

    font-weight:800;

}

.auth-card p{

    color:#a8a8b8;

    text-align:center;

    margin-top:10px;

    margin-bottom:35px;

}

.input-group{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-bottom:22px;

}

.input-group label{

    color:#ffffff;

    font-size:14px;

    font-weight:600;

}

.input-group input{

    height:52px;

    border:none;

    outline:none;

    border-radius:14px;

    background:#101018;

    color:#ffffff;

    padding:0 18px;

    font-size:15px;

    transition:.25s;

}

.input-group input:focus{

    box-shadow:0 0 0 2px #8b5cf6;

}

.auth-link{

    margin-top:24px;

    text-align:center;

}

.auth-link a{

    color:#9f6bff;

    text-decoration:none;

    font-weight:700;

}

.auth-link a:hover{

    text-decoration:underline;

}

/* =======================================
   LOGIN MODAL
======================================= */

.login-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    backdrop-filter:blur(8px);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.login-modal.show{

    display:flex;

}

.login-modal-box{

    width:420px;

    background:#1d1b2e;

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:40px;

    text-align:center;

    box-shadow:0 30px 80px rgba(0,0,0,.5);

}

.login-icon{

    font-size:48px;

    margin-bottom:20px;

}

.login-modal-box h2{

    color:white;

    margin-bottom:12px;

}

.login-modal-box p{

    color:#bdbdc7;

    margin-bottom:30px;

}

.login-buttons{

    display:flex;

    gap:15px;

    margin-bottom:15px;

}

.login-buttons button{

    flex:1;

}

#modalLogin{

    background:#8b5cf6;

    color:white;

}

#modalRegister{

    background:#26243b;

    color:white;

}

#modalCancel{

    width:100%;

    background:none;

    color:#9e9ea7;

    border:none;

    cursor:pointer;

    margin-top:8px;

}

.token-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    width: 100%;
    padding: 26px;
}

.token-package {
    padding: 24px;
    border: 1px solid rgba(183, 132, 255, .28);
    border-radius: 18px;
    text-align: center;
    background: rgba(15, 12, 29, .72);
}

.token-package h2 { margin: 0; color: #f7f5ff; }
.token-package__amount { color: #c487ff; font-size: 1.25rem; font-weight: 800; }
.token-package button { width: 100%; padding: 12px; border: 0; border-radius: 12px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; background: linear-gradient(105deg, #6d52e8, #d358cb); }
.payment-note { margin: 0 26px 26px; color: #aaa9bc; text-align: center; }

.settings-card { margin-bottom: 20px; }
.settings-card h2 { margin-top: 0; color: #f7f5ff; font-size: 1.15rem; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.setting-row h3 { margin: 0; color: #eeeaff; font-size: .96rem; }
.setting-row p, .setting-status { margin: 6px 0 0; color: #aaa9bc; font-size: .86rem; }
.setting-switch { position: relative; flex: 0 0 48px; height: 27px; cursor: pointer; }
.setting-switch input { width: 0; height: 0; opacity: 0; }
.setting-switch span { position: absolute; inset: 0; border-radius: 99px; background: #464458; transition: .2s; }
.setting-switch span::before { position: absolute; bottom: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; content: ""; background: #fff; transition: .2s; }
.setting-switch input:checked + span { background: #8b5cf6; }
.setting-switch input:checked + span::before { transform: translateX(21px); }
.age-modal { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(1,1,5,.76); }
.age-modal.show { display: flex; }
.age-modal__dialog { width: min(100%, 480px); padding: 30px; border: 1px solid rgba(196,135,255,.35); border-radius: 20px; color: #f6f3ff; background: #171323; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.age-modal__dialog h2 { margin-top: 0; }
.age-modal__dialog p { color: #c2bfd0; line-height: 1.55; }
.age-modal__actions { display: grid; gap: 10px; margin-top: 24px; }
.age-modal__actions button { padding: 13px; border: 0; border-radius: 12px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; background: #7c3aed; }
.age-modal__actions .age-modal__secondary { color: #e9e6f1; background: #3a3548; }

.about-copy { color: #c2bfd0; line-height: 1.65; }
.about-version { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 14px; border: 1px solid rgba(196,135,255,.25); border-radius: 12px; color: #bcb7c8; background: rgba(139,92,246,.08); }
.about-version strong { color: #d9bdff; }
.about-list { margin: 0; padding-left: 20px; color: #c2bfd0; line-height: 1.9; }
