.header {
    width: 100%;
    margin-top: 36px;
    margin-bottom: 14px;
}
body, html {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Segoe UI', 'Arial', 'PingFang SC', sans-serif;
    color: #eaf6ff;
    background: #151a27;
    box-sizing: border-box;
}
.bg {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle at 80% 10%, #00cfff33 0%, #112046 60%, #16192a 100%);
}
.container {
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    align-items: center;
}
.logo-title {
    margin: auto;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #00cfff 10%, #00b9d6 60%, #6f86d6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.slogan {
    color: #93f3fa;
    font-size: 1.02em;
    letter-spacing: 0.04em;
    text-align: center;
    margin: 0 0 20px 0;
}
.card {
    background: rgba(22,32,58,0.98);
    border-radius: 20px;
    box-shadow: 0 4px 24px #008cbe22;
    padding: 30px 18px 22px 18px;
    width: 100%;
    max-width: 430px;
    min-width: 0;
    margin: 0 auto 24px auto;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    box-sizing: border-box;
}
.algos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.algos label {
    color: #27e2f6;
    font-weight: 700;
}
#algo, .param-row input {
    border-radius: 7px;
    padding: 4px 10px;
    background: #192c45;
    color: #8eeeff;
    border: 1.3px solid #38ebff77;
    font-size: 1em;
    min-width: 150px;
    margin-right: 10px;
}
.main-textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 220px;
    max-height: 220px;
    background: #0d1428;
    color: #cafffd;
    border-radius: 10px;
    border: 1.5px solid #1ad6ed88;
    font-size: 1.1em;
    resize: vertical;
    margin-bottom: 12px;
    margin-top: 6px;
    padding: 8px 13px;
}
.btn-row {
    z-index: 99;
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 14px;
}

.btn-row .action-btn,
.action-btn {
    background: linear-gradient(90deg, #72ffe8 0%, #97e6ff 100%);
    color: #232849;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 32px;
    cursor: pointer;
    box-shadow: 0 4px 18px #83eaff77;
    transition: background .13s, opacity .13s;
    text-shadow: 0 2px 12px #fff9, 0 0 2px #fff4;
    outline: none;
}

/* .action-btn:disabled,
.action-btn[disabled] {
    background: linear-gradient(90deg, #d0f8ff 0%, #b8eaff 100%) !important;
    color: #bbbbbb !important;
    opacity: 1 !important;
    box-shadow: 0 1px 7px #e1faff !important;
    border: 1.5px solid #eafcff !important;
    filter: none !important;
    cursor: not-allowed;
    font-weight: bold;
    text-shadow: 0 2px 7px #ffffffcc;
} */

/* .action-btn.not-allowed {
    background: linear-gradient(90deg, #d0f8ff 0%, #b8eaff 100%) !important;
    color: #bbbbbb !important;
    pointer-events: none !important;
    opacity: 1 !important;
    box-shadow: 0 1px 7px #e1faff !important;
    border: 1.5px solid #eafcff !important;
    filter: none !important;
    cursor: not-allowed;
    font-weight: bold;
    text-shadow: 0 2px 7px #ffffffcc;
} */

.result-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.copy-btn {
    background: linear-gradient(90deg, #26efca, #7fa6f6 90%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: .99em;
    font-weight: 700;
    padding: 4px 18px;
    cursor: pointer;
    box-shadow: 0 1px 4px #287be722;
    transition: background .15s;
    position: static;
    margin-top: 10px;
    align-self: flex-end;
}
.copy-btn:hover {
    background: linear-gradient(90deg, #7fa6f6 10%, #26efca 100%);
}
footer {
    margin-top: auto;
    padding-bottom: 16px;
    text-align: center;
    color: #7fcfff;
    font-size: 0.99em;
    letter-spacing: 0.03em;
}
@media (max-width: 600px) {
    .container { max-width: 100vw; padding: 0; min-height: unset; }
    .card { max-width: 99vw; padding: 12px 2vw; }
    .logo-title { font-size: 1.3em;}
}