/* =========================================
   HS GROUP
   WITHDRAW GENERATOR FLOP
   DARK BLUE / ELECTRIC BLUE THEME
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================================
   ROOT VARIABLES
========================================= */

:root {

    color-scheme: dark;

    --bg: #030914;

    --sidebar-bg: #020a15;

    --panel: rgba(7, 23, 42, 0.88);

    --panel-dark: rgba(4, 16, 31, 0.92);

    --inner: rgba(6, 24, 42, 0.85);

    --input: #081a2d;

    --border: rgba(40, 139, 255, 0.34);

    --blue: #087bff;

    --blue-light: #168eff;

    --cyan: #20c9ff;

    --text: #edf5ff;

    --muted: #91a7c1;

    --green: #20dfa0;

    --red: #ff5e73;

    --yellow: #ffd477;

}


/* =========================================
   GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    min-height: 100vh;

    padding: 55px 25px 30px;

    background:
        radial-gradient(
            ellipse at 75% 8%,
            #062958 0,
            transparent 32%
        ),
        radial-gradient(
            ellipse at 4% 85%,
            #031c3a 0,
            transparent 34%
        ),
        var(--bg);

    color: var(--text);

    font-family: 'Inter', Arial, sans-serif;

    font-size: 13px;

    overflow-x: hidden;

}

button,
textarea,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================
   ANIMATED BACKGROUND
========================================= */

#sky {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

    pointer-events: none;

    opacity: 1;

}


/* =========================================
   MAIN CONTAINER
========================================= */

.shell {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

}


/* =========================================
   TOPBAR
========================================= */

.topbar {

    position: relative;

    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 90px;

    padding: 20px 24px;

    margin-bottom: 20px;

    background: linear-gradient(
        135deg,
        rgba(11, 34, 58, 0.94),
        rgba(4, 16, 31, 0.96)
    );

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

}


/* =========================================
   BRAND ICON RF
========================================= */

.brand-mark {

    width: 52px;

    height: 52px;

    flex: 0 0 52px;

    display: grid;

    place-items: center;

    background: linear-gradient(
        145deg,
        #0b8bff,
        #0345b8
    );

    border: 1px solid #168eff;

    border-radius: 13px;

    color: #ffffff;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: 1px;

    box-shadow: 0 0 22px rgba(0, 123, 255, 0.5);

}


/* =========================================
   BRAND INFORMATION
========================================= */

.brand-info {

    flex: 1;

    min-width: 0;

}

.brand-info h1 {

    color: #ffffff;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: -0.5px;

    margin: 5px 0 7px;

}

.brand-info p:last-child {

    margin: 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;

}


/* =========================================
   EYEBROW & STEP
========================================= */

.eyebrow,
.step {

    display: inline-block;

    color: #49b7ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


/* =========================================
   TOPBAR ACTIONS
========================================= */

.topbar-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-left: auto;

    flex-shrink: 0;

}


/* =========================================
   READY BADGE
========================================= */

.live-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    background: rgba(32, 223, 160, 0.08);

    border: 1px solid rgba(32, 223, 160, 0.35);

    border-radius: 8px;

    color: #20dfa0;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}

.live-badge i {

    display: inline-block;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #20dfa0;

    box-shadow: 0 0 10px rgba(32, 223, 160, 0.7);

}


/* =========================================
   COMET BUTTON
========================================= */

#cometToggle,
.comet-toggle {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 45px;

    padding: 7px;

    background: #092342;

    border: 1px solid #168eff;

    border-radius: 11px;

    color: #ffffff;

    cursor: pointer;

    transition: 0.25s ease;

}

#cometToggle:hover {

    background: #0b3768;

    border-color: #20c9ff;

    box-shadow: 0 0 18px rgba(0, 123, 255, 0.45);

}

.comet-icon {

    display: block;

    width: 31px;

    height: 31px;

    object-fit: contain;

    transition: 0.25s ease;

}

#cometToggle.off {

    background: #111e2c;

    border-color: #34455b;

}

#cometToggle.off .comet-icon {

    opacity: 0.35;

    filter: grayscale(1);

}


/* =========================================
   BACK TO DASHBOARD
========================================= */

.back-dashboard {

    position: absolute;

    top: -43px;

    right: 0;

    z-index: 10;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    background: #092342;

    border: 1px solid #168eff;

    border-radius: 8px;

    color: #dff4ff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.7px;

    transition: 0.25s ease;

}

.back-dashboard:hover {

    background: linear-gradient(
        90deg,
        #0757c9,
        #047cff
    );

    border-color: #24aaff;

    color: white;

    box-shadow: 0 0 18px rgba(0, 123, 255, 0.4);

}


/* =========================================
   INTRO SECTION
========================================= */

.intro {

    padding: 10px 3px 22px;

}

.intro .eyebrow {

    margin-bottom: 8px;

}

.intro p {

    margin: 6px 0 0;

    color: #91a7c1;

    font-size: 12px;

    line-height: 1.7;

}


/* =========================================
   WORKSPACE GRID
========================================= */

.workspace {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px;

    align-items: stretch;

}


/* =========================================
   PANELS
========================================= */

.panel {

    position: relative;

    min-width: 0;

    overflow: hidden;

    padding: 23px;

    background: linear-gradient(
        135deg,
        rgba(11, 34, 58, 0.88),
        rgba(4, 16, 31, 0.92)
    );

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}

.panel:hover {

    border-color: rgba(40, 139, 255, 0.55);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(0, 123, 255, 0.10);

}


/* =========================================
   PANEL HEADING
========================================= */

.panel-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 20px;

}

.panel-heading h2 {

    color: #edf5ff;

    font-size: 18px;

    font-weight: 800;

    margin: 7px 0 0;

}


/* =========================================
   ROW COUNT BADGE
========================================= */

.count {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 13px;

    background: #092342;

    border: 1px solid #2873a9;

    border-radius: 30px;

    color: #20c9ff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    white-space: nowrap;

}


/* =========================================
   TEXTAREA
========================================= */

textarea {

    display: block;

    width: 100%;

    height: 360px;

    min-height: 220px;

    resize: vertical;

    padding: 15px;

    background: #081a2d;

    border: 1px solid #31516d;

    border-radius: 10px;

    color: #edf5ff;

    font-family: Consolas, "Courier New", monospace;

    font-size: 12px;

    line-height: 1.7;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;

}

textarea:focus {

    border-color: #0b9dff;

    box-shadow: 0 0 0 3px rgba(8, 139, 255, 0.15);

}

textarea::placeholder {

    color: #7088a3;

}

textarea[readonly] {

    background: #061426;

    color: #d8eaff;

}


/* =========================================
   PANEL FOOTER
========================================= */

.panel-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 16px;

}


/* =========================================
   STATUS MESSAGE
========================================= */

.status {

    color: #91a7c1;

    font-size: 11px;

    line-height: 1.6;

}


/* =========================================
   BASE BUTTONS
========================================= */

button {

    border-radius: 8px;

    padding: 11px 16px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.3px;

    transition: 0.2s ease;

}

button:hover:not(:disabled) {

    filter: brightness(1.12);

}

button:disabled {

    opacity: 0.45;

    cursor: not-allowed;

}


/* =========================================
   PRIMARY BUTTON
========================================= */

.primary-btn {

    background: linear-gradient(
        90deg,
        #0868ed,
        #008fff
    );

    border: 1px solid #279eff;

    color: #ffffff;

    box-shadow: 0 5px 16px rgba(0, 109, 255, 0.3);

}

.primary-btn:hover:not(:disabled) {

    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);

}


/* =========================================
   SECONDARY BUTTON
========================================= */

.secondary-btn {

    background: #0a2038;

    border: 1px solid #2873a9;

    color: #dcefff;

}

.secondary-btn:hover:not(:disabled) {

    border-color: #28a9ff;

    background: #0d3154;

    color: white;

}


/* =========================================
   DANGER BUTTON
========================================= */

.danger-btn {

    background: rgba(255, 94, 115, 0.08);

    border: 1px solid rgba(255, 94, 115, 0.4);

    color: #ff8294;

}

.danger-btn:hover:not(:disabled) {

    background: rgba(255, 94, 115, 0.18);

    border-color: #ff5e73;

    box-shadow: 0 0 15px rgba(255, 94, 115, 0.15);

}


/* =========================================
   TRANSACTION ORDER CONTROL
========================================= */

.order-control {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;

    padding: 12px 14px;

    background: rgba(6, 24, 42, 0.8);

    border: 1px solid #1d4c64;

    border-radius: 9px;

    color: #b9cde1;

    font-size: 11px;

}

.order-control button {

    padding: 9px 12px;

    font-size: 11px;

}


/* =========================================
   OUTPUT PANEL
========================================= */

.output-panel textarea {

    height: 330px;

}

.output-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

}

#copyBtn {

    min-width: 125px;

}

#downloadBtn {

    min-width: 125px;

}


/* =========================================
   FOOTER
========================================= */

.footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;

    padding: 20px 2px;

    border-top: 1px solid rgba(40, 139, 255, 0.15);

    color: #58718d;

    font-size: 10px;

    letter-spacing: 1px;

}

.footer span:first-child {

    color: #49b7ff;

    font-weight: 700;

}


/* =========================================
   TOAST NOTIFICATION
========================================= */

.toast {

    position: fixed;

    left: 50%;

    bottom: 25px;

    transform: translate(-50%, 20px);

    opacity: 0;

    pointer-events: none;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 18px;

    background: #082440;

    border: 1px solid #1889da;

    border-radius: 9px;

    color: white;

    font-size: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    transition: 0.25s ease;

    z-index: 20;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}

.toast.show {

    opacity: 1;

    transform: translate(-50%, 0);

}

.toast-dot {

    display: inline-block;

    width: 8px;

    height: 8px;

    flex: 0 0 8px;

    background: #20dfa0;

    border-radius: 50%;

    box-shadow: 0 0 10px rgba(32, 223, 160, 0.6);

}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {

    width: 8px;

    height: 8px;

}

::-webkit-scrollbar-track {

    background: #061426;

}

::-webkit-scrollbar-thumb {

    background: #1c527b;

    border-radius: 10px;

}

::-webkit-scrollbar-thumb:hover {

    background: #168eff;

}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1100px) {

    .shell {

        max-width: 100%;

    }

    .panel {

        padding: 18px;

    }

    .brand-info h1 {

        font-size: 20px;

    }

}


/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 900px) {

    body {

        padding: 58px 13px 25px;

    }

    .workspace {

        grid-template-columns: 1fr;

    }

    .topbar {

        padding: 17px;

    }

    .panel {

        padding: 17px;

    }

    textarea {

        height: 280px;

    }

    .output-panel textarea {

        height: 280px;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 600px) {

    .topbar {

        flex-wrap: wrap;

        gap: 12px;

    }

    .brand-mark {

        width: 45px;

        height: 45px;

        flex-basis: 45px;

        font-size: 16px;

    }

    .brand-info {

        flex: 1;

    }

    .brand-info h1 {

        font-size: 17px;

    }

    .brand-info p:last-child {

        font-size: 10px;

    }

    .topbar-actions {

        width: 100%;

        margin-left: 0;

        justify-content: flex-end;

    }

    .live-badge {

        margin-right: auto;

    }

    .panel-heading {

        align-items: flex-start;

    }

    .panel-heading h2 {

        font-size: 16px;

    }

    .order-control {

        flex-wrap: wrap;

    }

    .back-dashboard {

        top: -44px;

        padding: 9px 13px;

        font-size: 10px;

    }

    .panel-footer {

        gap: 10px;

    }

}


/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .panel {

        padding: 14px;

    }

    .brand-info h1 {

        font-size: 15px;

    }

    .live-badge {

        font-size: 9px;

        padding: 8px;

    }

    .count {

        font-size: 10px;

    }

    .panel-heading h2 {

        font-size: 15px;

    }

    .output-actions {

        width: 100%;

        flex-wrap: wrap;

    }

    #copyBtn,
    #downloadBtn {

        flex: 1;

        min-width: 0;

    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        transition: none !important;

    }

}