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

:root {
    --neon-blue: #00f0ff;
    --neon-purple: #a855f7;
    --neon-pink: #ff0080;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 30, 0.8);
    --border-color: rgba(0, 240, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 50% 18%, rgba(16, 36, 52, 0.9), transparent 34%),
        linear-gradient(180deg, #061616 0%, #08121e 46%, #061616 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

.query-screen {
    display: block;
    padding: 18px 20px 42px;
}

.query-screen .container {
    margin: 0 auto;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.72;
}

body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.15) 0%, rgba(0, 240, 255, 0.1) 25%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.72;
}

.container {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.page-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.26);
    background: rgba(14, 18, 28, 0.78);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.lang-option {
    min-width: 44px;
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.24s ease;
}

.lang-option.active {
    color: #041922;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(88, 181, 255, 0.92));
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.28);
}

.lang-option:not(.active):hover {
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    letter-spacing: 2px;
}

.header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: min(620px, 100%);
    margin: 0 auto 28px;
    animation: fadeIn 1s ease 0.2s backwards;
    flex-wrap: wrap;
}

.nav-link {
    flex: 1 1 132px;
    min-width: 124px;
    max-width: 150px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.stock-island-shell {
    width: min(560px, 100%);
    margin: -20px auto 34px;
    position: sticky;
    top: 12px;
    z-index: 20;
    animation: fadeIn 1s ease 0.34s backwards;
}

.stock-island {
    position: relative;
    min-height: 50px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "dot main action";
    align-items: center;
    gap: 14px;
    padding: 8px 12px 8px 18px;
    border: 1px solid rgba(0, 240, 255, 0.44);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(6, 18, 28, 0.95), rgba(18, 22, 39, 0.86)),
        rgba(10, 10, 10, 0.78);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(0, 240, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.stock-island::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.14), transparent 38%, rgba(168, 85, 247, 0.12));
    opacity: 0.75;
    pointer-events: none;
}

.stock-island > * {
    position: relative;
    z-index: 1;
}

.stock-island-dot {
    grid-area: dot;
    width: 12px;
    height: 12px;
    align-self: center;
    border-radius: 999px;
    background: var(--neon-blue);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.82), 0 0 0 6px rgba(0, 240, 255, 0.1);
}

.stock-island-main,
.stock-island-meta {
    min-width: 0;
}

.stock-island-main {
    grid-area: main;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.stock-island-title {
    display: none;
}

.stock-island-count {
    display: block;
    min-width: 0;
    width: 100%;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.stock-island-meta {
    display: none;
}

.stock-island-meta span,
.stock-island-meta small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stock-island-meta span {
    flex: 0 1 auto;
    max-width: 48%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.stock-island-meta small {
    flex: 1 1 auto;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
    line-height: 1.35;
}

.stock-island-action {
    grid-area: action;
    min-width: 74px;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(0, 240, 255, 0.48);
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.stock-island-action:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.9);
    background: rgba(0, 240, 255, 0.16);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.24);
}

.stock-island-action:disabled {
    cursor: wait;
    opacity: 0.7;
}

.stock-island.is-ok {
    border-color: rgba(52, 211, 153, 0.48);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(52, 211, 153, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stock-island.is-ok .stock-island-dot {
    background: #34d399;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.8), 0 0 0 6px rgba(52, 211, 153, 0.1);
}

.stock-island.is-warning {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(251, 191, 36, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stock-island.is-warning .stock-island-dot {
    background: #fbbf24;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.82), 0 0 0 6px rgba(251, 191, 36, 0.12);
}

.stock-island.is-danger,
.stock-island.is-error {
    border-color: rgba(248, 113, 113, 0.52);
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(248, 113, 113, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stock-island.is-danger .stock-island-dot,
.stock-island.is-error .stock-island-dot {
    background: #fb7185;
    box-shadow: 0 0 18px rgba(251, 113, 133, 0.82), 0 0 0 6px rgba(251, 113, 133, 0.12);
}

.stock-island.is-loading .stock-island-dot {
    animation: stockIslandPulse 1.4s ease-in-out infinite;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
    animation: fadeIn 1s ease 0.4s backwards;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px var(--neon-blue);
    position: relative;
}

.progress-fill::after,
.progress-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    animation: fadeIn 1s ease 0.6s backwards;
}

.step-indicator {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.step-indicator.active .step-number {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
}

.step-indicator.completed .step-number {
    border-color: var(--neon-purple);
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 20px var(--neon-purple);
}

.step-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.step-indicator.active .step-label {
    color: var(--neon-blue);
    font-weight: 600;
}

.card-wrapper {
    perspective: 1500px;
    min-height: 450px;
    position: relative;
}

.card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100px) rotateY(20deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.card.active {
    opacity: 1;
    transform: translateX(0) rotateY(0);
    position: relative;
    pointer-events: all;
    animation: cardGlow 2s ease-in-out infinite alternate;
}

.card.exit-left {
    opacity: 0;
    transform: translateX(-100px) rotateY(-20deg);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: "Courier New", monospace;
}

.hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    line-height: 1.6;
}

.hint a {
    color: var(--neon-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.hint a:hover {
    border-bottom-color: var(--neon-blue);
}

.cdk-type-hint {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(0, 240, 255, 0.26);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(3, 7, 18, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cdk-type-hint.is-account {
    border-color: rgba(52, 211, 153, 0.34);
    background:
        linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(255, 255, 255, 0.03)),
        rgba(3, 7, 18, 0.48);
}

.cdk-type-hint.is-manual {
    border-color: rgba(251, 191, 36, 0.34);
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(255, 255, 255, 0.03)),
        rgba(3, 7, 18, 0.48);
}

.cdk-type-hint-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cdk-type-hint-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.cdk-type-hint-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    line-height: 1.5;
}

.cdk-type-hint-badge {
    flex: none;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.cdk-type-hint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.cdk-type-item {
    position: relative;
    min-height: 76px;
    padding: 12px 12px 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cdk-type-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: rgba(255, 255, 255, 0.22);
}

.cdk-type-account::before {
    background: #34d399;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.45);
}

.cdk-type-manual::before {
    background: #fbbf24;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

.cdk-type-item strong {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.35;
}

.cdk-type-item span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.5;
}

.cdk-type-hint.is-account .cdk-type-hint-badge {
    color: #34d399;
}

.cdk-type-hint.is-manual .cdk-type-hint-badge {
    color: #fbbf24;
}

.cdk-type-item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.cdk-type-account.is-active {
    border-color: rgba(52, 211, 153, 0.62);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.12);
}

.cdk-type-manual.is-active {
    border-color: rgba(251, 191, 36, 0.62);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.12);
}

.cdk-type-hint.is-account .cdk-type-manual,
.cdk-type-hint.is-manual .cdk-type-account {
    opacity: 0.48;
}

@media (max-width: 640px) {
    .cdk-type-hint-head {
        display: block;
    }

    .cdk-type-hint-badge {
        margin-top: 8px;
        white-space: normal;
    }

    .cdk-type-hint-grid {
        grid-template-columns: 1fr;
    }
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.buttons-inline {
    margin-top: 30px;
}

.btn {
    flex: 1;
    min-height: 56px;
    padding: 18px 32px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    position: relative;
    z-index: 1;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

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

.account-claim-panel {
    margin-top: 0;
    padding: 18px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(11, 18, 31, 0.92), rgba(12, 14, 24, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 22px rgba(0, 240, 255, 0.08);
}

.account-claim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.account-claim-head div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.account-claim-head strong {
    color: var(--neon-blue);
    font-size: 16px;
}

.account-claim-head span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.account-claim-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(0, 240, 255, 0.38);
    border-radius: 999px;
    color: var(--neon-blue) !important;
    background: rgba(0, 240, 255, 0.08);
    font-weight: 700;
}

.account-claim-field {
    margin-bottom: 0;
}

.account-claim-field input {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.batch-account-panel {
    padding: 24px;
    border: 1px solid rgba(0, 240, 255, 0.32);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(14, 20, 34, 0.96), rgba(6, 11, 20, 0.98));
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 28px rgba(0, 240, 255, 0.1);
}

.batch-account-alert {
    margin-bottom: 18px;
}

.batch-account-view {
    width: min(820px, 100%);
    margin: 0 auto;
}

.batch-account-standalone {
    padding: 30px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% -20%, rgba(0, 240, 255, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(5, 10, 18, 0.98));
}

.batch-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.batch-account-head div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.batch-account-head strong {
    color: var(--neon-blue);
    font-size: 18px;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

.batch-account-head span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.batch-account-textarea {
    width: 100%;
    min-height: 240px !important;
    max-height: 360px;
    padding: 18px 20px;
    border: 2px solid rgba(0, 240, 255, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(2, 8, 15, 0.98), rgba(5, 10, 18, 0.96));
    color: rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 0 22px rgba(0, 240, 255, 0.04);
    font-family: "Courier New", Consolas, monospace !important;
    font-size: 15px;
    line-height: 1.65;
    resize: vertical;
}

.batch-account-textarea::placeholder {
    color: rgba(255, 255, 255, 0.36);
}

.batch-account-textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow:
        0 0 22px rgba(0, 240, 255, 0.2),
        inset 0 0 0 1px rgba(0, 240, 255, 0.08);
}

.batch-account-panel .hint {
    margin-top: 12px;
    margin-bottom: 0;
}

.batch-account-panel .buttons {
    margin-top: 22px;
}

.batch-account-panel .btn-secondary {
    flex: 0 0 180px;
}

.batch-account-panel .btn-primary {
    flex: 1 1 auto;
}

.query-page {
    max-width: 1280px;
    padding-top: 8px;
}

.query-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.query-hero-title {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #39d7ff 0%, #56b7ff 55%, #6aa6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 24px rgba(57, 215, 255, 0.18);
}

.query-hero-icon {
    display: inline-block;
    font-size: 54px;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(57, 215, 255, 0.35));
}

.query-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    letter-spacing: 1px;
}

.query-card-wrapper {
    min-height: auto;
}

.query-has-single-result .query-card-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.query-panel {
    padding: 24px 24px 22px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 120%, rgba(0, 240, 255, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(20, 23, 35, 0.98), rgba(18, 19, 31, 0.96));
    box-shadow:
        0 12px 38px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 24px rgba(0, 240, 255, 0.08);
}

.query-has-single-result .query-panel {
    padding: 14px 16px;
    border-radius: 14px;
}

.query-panel::before,
.query-results::before,
.query-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.55), transparent);
}

.query-panel::after,
.query-results::after,
.query-stat-card::after {
    content: "";
    position: absolute;
    inset: -20% auto auto 50%;
    width: 40%;
    height: 35%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.09), transparent 70%);
    pointer-events: none;
    opacity: 0.8;
}

.query-section-title {
    color: var(--neon-blue);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
}

.query-has-single-result .query-section-title {
    margin-bottom: 8px;
    font-size: 14px;
}

.query-has-single-result .query-panel .form-group {
    margin-bottom: 0;
}

.query-has-single-result .query-panel .form-group label,
.query-has-single-result .query-panel .hint {
    display: none;
}

.query-textarea {
    min-height: 96px;
    overflow-y: hidden;
    resize: none;
    scrollbar-width: none;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.98), rgba(9, 10, 18, 0.95));
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.05);
}

.query-has-single-result .query-textarea {
    min-height: 42px;
    height: 42px !important;
    padding: 11px 14px;
}

.query-textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.query-buttons {
    justify-content: flex-start;
    margin-top: 18px;
    gap: 12px;
}

.query-has-single-result .query-buttons {
    margin-top: 10px;
}

.query-btn-small {
    flex: 0 0 auto;
    min-width: 88px;
    height: 38px;
    padding: 0 22px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1;
}

#queryCardsBtn {
    background: rgba(0, 240, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.04);
}

#queryCardsBtn:hover:not(:disabled) {
    transform: none;
    box-shadow:
        inset 0 0 0 1px rgba(0, 240, 255, 0.08),
        0 0 16px rgba(0, 240, 255, 0.18);
}

#queryCardsBtn.is-loading {
    background: rgba(10, 54, 66, 0.72);
    border-color: rgba(0, 240, 255, 0.28);
    color: rgba(0, 240, 255, 0.56);
    box-shadow:
        inset 0 0 0 1px rgba(0, 240, 255, 0.04),
        0 0 0 1px rgba(0, 240, 255, 0.02);
}

#queryCardsBtn.is-loading .spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    border-color: rgba(0, 240, 255, 0.18);
    border-top-color: rgba(0, 240, 255, 0.75);
}

#queryCardsBtn.is-loading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#queryCardsBtn.is-loading:disabled {
    opacity: 1;
    cursor: wait;
}

#queryClearBtn,
#clearCardsBtn {
    min-width: 68px;
    border-color: rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.76);
}

.query-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.query-stat-card {
    --stat-accent-rgb: 0, 240, 255;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 20, 31, 0.98), rgba(18, 19, 31, 0.94));
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 18px;
    padding: 22px 18px 18px;
    min-height: 142px;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(0, 240, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translateY(0);
    transition:
        transform 0.24s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
}

.query-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.query-stat-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.query-stat-icon {
    color: rgba(255, 255, 255, 0.55);
    font-size: 24px;
    line-height: 1;
    transition: color 0.28s ease, filter 0.28s ease;
}

.query-stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
}

.query-stat-bar {
    position: relative;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.query-stat-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 0;
    border-radius: inherit;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.query-stat-total .query-stat-value {
    color: #1de9ff;
}

.query-stat-total {
    --stat-accent-rgb: 29, 233, 255;
}

.query-stat-total .query-stat-bar span {
    background: linear-gradient(90deg, #1de9ff, #40c4ff);
}

.query-stat-valid .query-stat-value {
    color: #22d3a6;
}

.query-stat-valid {
    --stat-accent-rgb: 34, 211, 166;
}

.query-stat-valid .query-stat-bar span {
    background: linear-gradient(90deg, #22d3a6, #34d399);
}

.query-stat-used .query-stat-value {
    color: #c06bff;
}

.query-stat-used {
    --stat-accent-rgb: 192, 107, 255;
}

.query-stat-used .query-stat-bar span {
    background: linear-gradient(90deg, #a855f7, #d946ef);
}

.query-stat-processing .query-stat-value {
    color: #38bdf8;
}

.query-stat-processing {
    --stat-accent-rgb: 56, 189, 248;
}

.query-stat-processing .query-stat-bar span {
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
}

.query-stat-invalid .query-stat-value {
    color: #ffb020;
}

.query-stat-invalid {
    --stat-accent-rgb: 255, 176, 32;
}

.query-stat-invalid .query-stat-bar span {
    background: linear-gradient(90deg, #ffb020, #f59e0b);
}

.query-stat-error .query-stat-value {
    color: #ff6b81;
}

.query-stat-error {
    --stat-accent-rgb: 255, 107, 129;
}

.query-stat-error .query-stat-bar span {
    background: linear-gradient(90deg, #ff6b81, #ef4444);
}

.query-stat-card::before {
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(var(--stat-accent-rgb), 0) 0%,
        rgba(var(--stat-accent-rgb), 0.18) 18%,
        rgba(var(--stat-accent-rgb), 0.9) 50%,
        rgba(var(--stat-accent-rgb), 0.18) 82%,
        rgba(var(--stat-accent-rgb), 0) 100%
    );
    border-radius: 18px 18px 999px 999px;
    opacity: 0;
    transition:
        opacity 0.28s ease,
        box-shadow 0.28s ease;
}

.query-stat-card::after {
    inset: -8% auto auto 78%;
    width: 34%;
    height: 30%;
    transform: translateX(-50%) scale(0.9);
    background: radial-gradient(circle, rgba(var(--stat-accent-rgb), 0.24), rgba(var(--stat-accent-rgb), 0.06) 38%, transparent 74%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.query-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.22);
    background:
        radial-gradient(circle at 82% -6%, rgba(var(--stat-accent-rgb), 0.12), transparent 24%),
        linear-gradient(180deg, rgba(21, 24, 37, 0.99), rgba(19, 21, 33, 0.96));
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(0, 240, 255, 0.04),
        0 0 18px rgba(var(--stat-accent-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.query-stat-card:hover::before {
    opacity: 1;
    box-shadow:
        0 0 10px rgba(var(--stat-accent-rgb), 0.26),
        0 0 14px rgba(var(--stat-accent-rgb), 0.1);
}

.query-stat-card:hover::after {
    opacity: 0.52;
    transform: translateX(-50%) scale(0.96);
    filter: blur(12px);
}

.query-stat-card:hover .query-stat-icon {
    color: rgba(255, 255, 255, 0.64);
    filter: drop-shadow(0 0 6px rgba(var(--stat-accent-rgb), 0.14));
}

.query-stat-card:hover .query-stat-bar span {
    box-shadow:
        0 0 12px rgba(var(--stat-accent-rgb), 0.22),
        0 0 20px rgba(var(--stat-accent-rgb), 0.08);
}

.query-results-dashboard {
    margin-top: 20px;
}

.query-results {
    position: relative;
    overflow: hidden;
    background: rgba(16, 19, 31, 0.86);
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 20px;
    padding: 28px 24px 24px;
    backdrop-filter: blur(20px);
    background:
        radial-gradient(circle at 50% -10%, rgba(0, 240, 255, 0.05), transparent 36%),
        linear-gradient(180deg, rgba(20, 23, 35, 0.98), rgba(18, 19, 31, 0.96));
    box-shadow:
        0 12px 38px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.query-results::after {
    display: none;
}

.query-results > * {
    position: relative;
    z-index: 1;
}

.query-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.query-results.is-single-result {
    max-width: 760px;
    margin: 20px auto 0;
    padding: 0;
    border: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(11, 18, 29, 0.96), rgba(8, 11, 20, 0.94));
    box-shadow: none;
    overflow: visible;
}

.query-results.is-single-result .query-results-header,
.query-results.is-single-result .query-filter-tabs,
.query-results.is-single-result .query-table-wrapper {
    display: none;
}

.query-results-header h2 {
    color: var(--neon-blue);
    font-size: 18px;
    font-weight: 700;
}

.query-results-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.query-search-box {
    width: 270px;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.45);
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.92), rgba(10, 13, 21, 0.88));
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.04);
}

.query-search-box:focus-within {
    box-shadow:
        inset 0 0 0 1px rgba(0, 240, 255, 0.12),
        0 0 18px rgba(0, 240, 255, 0.16);
}

.query-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 13px;
}

.query-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.query-search-icon {
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
}

.query-export-btn {
    flex: 0 0 auto;
    min-width: 74px;
    padding: 9px 18px;
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.86);
}

.download-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.download-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    min-width: 138px;
    padding: 6px;
    border: 1px solid rgba(0, 240, 255, 0.36);
    border-radius: 10px;
    background: rgba(5, 11, 20, 0.98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 18px rgba(0, 240, 255, 0.12);
}

.download-menu button {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.download-menu button:hover {
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.12);
}

.floating-download-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    z-index: 1000;
    width: 154px;
    max-width: calc(100vw - 16px);
}

.query-row-download-wrap .download-menu {
    left: auto;
    right: 0;
}

.delivery-download-wrap .download-menu {
    left: 0;
    right: auto;
}

.query-filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.query-filter-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    background: rgba(11, 15, 24, 0.72);
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.query-filter-tab.active[data-filter="all"] {
    color: #07212d;
    background: linear-gradient(135deg, #15f2ff, #4ad0ff);
    box-shadow: 0 0 20px rgba(21, 242, 255, 0.4);
}

.query-filter-tab.active[data-filter="valid"] {
    color: #061f17;
    background: linear-gradient(135deg, #22d3a6, #34d399);
    border-color: rgba(34, 211, 166, 0.45);
    box-shadow: 0 0 20px rgba(34, 211, 166, 0.32);
}

.query-filter-tab.active[data-filter="processing"] {
    color: #041b28;
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.query-filter-tab.active[data-filter="used"] {
    color: #1f1232;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    border-color: rgba(168, 85, 247, 0.52);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.query-filter-tab.active[data-filter="invalid"] {
    color: #2a1700;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.28);
}

.query-filter-tab.active[data-filter="error"] {
    color: #2f0b13;
    background: linear-gradient(135deg, #ff8aa0, #ef4444);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.24);
}

.query-result-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.query-results.is-single-result .query-result-cards {
    display: block;
    margin-bottom: 0;
}

.query-result-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.05)),
        rgba(5, 12, 22, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 28px rgba(0, 0, 0, 0.24);
}

.query-result-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 240, 255, 0.16), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(0, 240, 255, 0.16), transparent 24%);
    opacity: 0.48;
}

.query-result-card > * {
    position: relative;
}

.query-result-card.is-manual {
    border-color: rgba(255, 0, 128, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 0, 128, 0.08), rgba(168, 85, 247, 0.06)),
        rgba(8, 10, 22, 0.82);
}

.query-result-card.is-manual::before {
    background:
        linear-gradient(90deg, rgba(255, 0, 128, 0.14), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(255, 138, 199, 0.16), transparent 24%);
}

.query-results.is-single-result .query-result-card {
    padding: 24px;
    border-radius: 18px;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(0, 240, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.query-result-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.query-result-type {
    color: var(--neon-blue);
    font-size: 12px;
    font-weight: 800;
}

.query-result-card.is-manual .query-result-type {
    color: #ff8ac7;
}

.query-result-card h3 {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    line-height: 1.35;
}

.query-results.is-single-result .query-result-card h3 {
    margin-top: 6px;
    font-size: 24px;
}

.query-result-code {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.query-results.is-single-result .query-result-code {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    letter-spacing: 0;
}

.query-result-progress {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

.query-results.is-single-result .query-result-progress {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 166, 0.28);
    background: rgba(34, 211, 166, 0.08);
    color: rgba(225, 255, 246, 0.94);
}

.query-results.is-single-result .query-result-card.is-manual .query-result-progress {
    border-color: rgba(255, 138, 199, 0.26);
    background: rgba(255, 0, 128, 0.08);
    color: rgba(255, 230, 244, 0.94);
}

.query-result-meta {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.query-results.is-single-result .query-result-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.query-result-meta div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.query-results.is-single-result .query-result-meta div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.query-result-meta b {
    color: rgba(0, 240, 255, 0.72);
}

.query-result-card.is-manual .query-result-meta b {
    color: rgba(255, 138, 199, 0.8);
}

.query-result-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.query-account-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.query-account-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.16);
}

.query-account-item span,
.query-account-item small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.query-account-item span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.query-account-item small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    text-align: right;
}

.query-account-delivery-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.query-account-delivery-list.is-compact {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 3px;
}

.query-account-delivery {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.16);
    background: rgba(3, 10, 18, 0.48);
}

.query-account-delivery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 240, 255, 0.05);
}

.query-account-delivery-head span {
    color: var(--neon-blue);
    font-size: 11px;
    font-weight: 800;
}

.query-account-delivery-head strong {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.query-account-fields {
    display: grid;
}

.query-account-field {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.query-account-field:last-child {
    border-bottom: 0;
}

.query-account-field b {
    color: rgba(0, 240, 255, 0.72);
    font-size: 12px;
}

.query-account-field span {
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Courier New", Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.query-account-field.is-secret span {
    color: rgba(255, 255, 255, 0.54);
    font-family: inherit;
}

.query-account-delivery.is-compact {
    padding: 10px 12px;
}

.query-account-compact-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.query-account-compact-main span {
    color: var(--neon-blue);
    font-size: 11px;
    font-weight: 800;
}

.query-account-compact-main strong,
.query-account-compact-main small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.query-account-compact-main strong {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.query-account-compact-main small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-family: "Courier New", Consolas, monospace;
    font-size: 11px;
}

.query-account-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.query-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.query-results.is-single-result .query-result-actions {
    gap: 10px;
    margin-top: 18px;
}

.query-result-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.query-results.is-single-result .query-result-link {
    min-height: 38px;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.24), rgba(34, 211, 166, 0.14));
}

.query-table-wrapper {
    overflow: visible;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(10, 16, 24, 0.96), rgba(9, 12, 20, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.query-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background: rgba(12, 16, 26, 0.72);
}

.query-table th:nth-child(1),
.query-table td:nth-child(1) {
    width: 17%;
}

.query-table th:nth-child(2),
.query-table td:nth-child(2) {
    width: 19%;
}

.query-table th:nth-child(3),
.query-table td:nth-child(3) {
    width: 12%;
}

.query-table th:nth-child(4),
.query-table td:nth-child(4) {
    width: 19%;
}

.query-table th:nth-child(5),
.query-table td:nth-child(5) {
    width: 15%;
}

.query-table th:nth-child(6),
.query-table td:nth-child(6) {
    width: 188px;
}

.query-table thead {
    background: linear-gradient(180deg, rgba(11, 56, 68, 0.86), rgba(10, 43, 52, 0.88));
}

.query-table th,
.query-table td {
    padding: 12px 10px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.query-table th {
    color: var(--neon-blue);
    font-size: 14px;
    font-weight: 700;
}

.query-table td {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.query-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.query-table-code {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.45;
}

.query-table-type {
    display: grid;
    gap: 3px;
}

.query-table-type span {
    color: var(--neon-blue);
    font-size: 13px;
    font-weight: 800;
}

.query-table-type.is-manual span {
    color: #ff8ac7;
}

.query-table-type small {
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
}

.query-table-empty td {
    padding: 28px 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
}

.query-empty-state {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.query-empty-icon {
    position: relative;
    width: 82px;
    height: 88px;
}

.query-empty-icon::before {
    content: "";
    position: absolute;
    left: 27px;
    bottom: 0;
    width: 6px;
    height: 34px;
    border-radius: 3px;
    background: rgba(90, 72, 52, 0.5);
}

.query-empty-icon::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 46px;
    height: 30px;
    background: linear-gradient(180deg, rgba(56, 61, 71, 0.95), rgba(34, 38, 47, 0.95));
    border-radius: 8px 8px 6px 6px;
    box-shadow:
        inset 0 -8px 0 rgba(16, 18, 24, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.query-empty-flag {
    position: absolute;
    top: 34px;
    left: 48px;
    width: 14px;
    height: 4px;
    background: rgba(116, 35, 35, 0.75);
    border-radius: 2px;
}

.query-empty-flag::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 0;
    width: 4px;
    height: 12px;
    background: rgba(90, 72, 52, 0.55);
    border-radius: 2px;
}

.query-empty-text {
    color: rgba(255, 255, 255, 0.56);
    font-size: 13px;
}

.query-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.query-status-used {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.22);
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.18);
}

.query-status-processing {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.16);
}

.query-status-unused {
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.query-status-unknown {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.query-status-error {
    color: #fecdd3;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.query-copy-btn {
    min-width: 44px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.65);
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.query-copy-btn:hover {
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.query-copy-mini {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fcd34d;
}

.alert-info {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 14px;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    flex-wrap: wrap;
}

.status-badge-plan {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.status-badge-channel {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.42);
    color: #d1fae5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.14);
}


.plan-insight {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(168, 85, 247, 0.12));
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
}

.action-panel {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.1);
}

.action-panel-label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 12px;
}

.action-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.action-toggle-btn {
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 12, 20, 0.62);
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.action-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.34);
    color: white;
}

.action-toggle-btn.active {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.18);
    color: #d1fae5;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.14);
}

.action-panel-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.6;
}

.mail-pickup {
    margin-top: 20px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(16, 185, 129, 0.08)),
        rgba(3, 7, 18, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 20px rgba(34, 211, 238, 0.1);
}

.mail-pickup-view {
    animation: fadeIn 0.35s ease;
}

.mail-pickup-standalone {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px;
}

.mail-pickup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mail-pickup-title {
    color: #e0faff;
    font-size: 16px;
    font-weight: 800;
}

.mail-pickup-desc {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.5;
}

.mail-pickup-format-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.mail-pickup-format-tabs span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.mail-pickup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: stretch;
}

.mail-pickup-form input,
.mail-pickup-form textarea {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mail-pickup-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.55;
}

.mail-pickup-form input:focus,
.mail-pickup-form textarea:focus {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
    background: rgba(0, 0, 0, 0.52);
}

.mail-pickup-form-wide {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.mail-pickup-btn {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
}

.mail-pickup-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: stretch;
}

.mail-pickup-actions.is-polling {
    grid-template-columns: minmax(0, 1fr) 132px 132px;
}

.mail-pickup-refresh-btn,
.mail-pickup-stop-btn {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
}

.mail-pickup-refresh-btn {
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(8, 47, 73, 0.24);
    color: #cffafe;
}

.mail-pickup-refresh-btn:hover:not(:disabled) {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

.mail-pickup-stop-btn {
    border-color: rgba(248, 113, 113, 0.42);
    background: rgba(127, 29, 29, 0.24);
    color: #fecaca;
}

.mail-pickup-stop-btn:hover:not(:disabled) {
    border-color: rgba(248, 113, 113, 0.72);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.18);
}

.mail-pickup-result {
    display: block;
    margin-top: 16px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.05)),
        rgba(4, 12, 20, 0.78);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 22px rgba(0, 240, 255, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.mail-pickup-result.is-error {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.18);
}

.mail-pickup-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.14);
    background:
        radial-gradient(circle at top left, rgba(0, 240, 255, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(8, 18, 30, 0.94), rgba(10, 12, 23, 0.9));
}

.mail-pickup-result-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mail-pickup-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.42);
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-blue);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.18);
}

.mail-pickup-status {
    color: var(--neon-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mail-pickup-value,
.mail-pickup-text {
    min-width: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mail-pickup-value {
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
}

.mail-pickup-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.mail-pickup-result-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.18);
    color: rgba(225, 250, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mail-pickup-result-meta .mail-pickup-polling-chip {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #a7f3d0;
}

.mail-pickup-result-icon.is-listening {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
}

.mail-pickup-mailboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.12);
}

.mail-pickup-mailbox {
    min-width: 0;
    min-height: 300px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(5, 12, 22, 0.78);
    color: rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 34px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.mail-pickup-mailbox.is-spam {
    border-color: rgba(255, 0, 128, 0.26);
}

.mail-pickup-mailbox-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.13);
    background: rgba(0, 240, 255, 0.05);
}

.mail-pickup-mailbox.is-spam .mail-pickup-mailbox-head {
    border-bottom-color: rgba(255, 0, 128, 0.14);
    background: rgba(255, 0, 128, 0.05);
}

.mail-pickup-mailbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    font-weight: 900;
}

.mail-pickup-mailbox.is-spam .mail-pickup-mailbox-icon {
    border-color: rgba(255, 0, 128, 0.28);
    background: rgba(255, 0, 128, 0.1);
    color: #ff6bba;
}

.mail-pickup-mailbox h3 {
    margin: 0;
    color: #e0faff;
    font-size: 18px;
}

.mail-pickup-mailbox.is-spam h3 {
    color: #ffd6e9;
}

.mail-pickup-mailbox p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.mail-pickup-mail-list {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.mail-pickup-email-card {
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-top: 2px solid var(--neon-blue);
    border-radius: 8px;
    background: rgba(7, 15, 26, 0.86);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.mail-pickup-mailbox.is-spam .mail-pickup-email-card {
    border-color: rgba(255, 0, 128, 0.2);
    border-top-color: var(--neon-pink);
}

.mail-pickup-email-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 10px;
}

.mail-pickup-email-top strong {
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mail-pickup-email-top span {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #86efac;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.mail-pickup-email-meta {
    display: grid;
    gap: 7px;
    margin: 0 14px 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mail-pickup-email-meta div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.mail-pickup-email-meta b {
    color: rgba(0, 240, 255, 0.72);
    font-weight: 700;
}

.mail-pickup-email-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mail-pickup-email-frame,
.mail-pickup-email-body {
    display: block;
    width: calc(100% - 28px);
    height: 260px;
    margin: 0 14px 14px;
    border: 1px solid rgba(0, 240, 255, 0.16);
    border-radius: 8px;
    background: rgba(2, 6, 12, 0.72);
}

.mail-pickup-email-frame {
    overflow: auto;
}

.mail-pickup-email-body {
    padding: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.6;
    overflow: auto;
    white-space: pre-wrap;
}

.mail-pickup-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px dashed rgba(0, 240, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.46);
    font-size: 14px;
}

.plan-insight-label,
.confirm-plan-caption {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 10px;
}

.plan-insight-value,
.confirm-plan-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(5, 18, 26, 0.72);
    color: #8bf7ff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 28px rgba(0, 240, 255, 0.16);
}

.plan-insight-hint {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.6;
}

.confirm-plan-spotlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge-plan[data-plan-type="pro"],
.plan-insight-value[data-plan-type="pro"],
.confirm-plan-value[data-plan-type="pro"] {
    color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.52);
    background: rgba(245, 158, 11, 0.16);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.18);
}

.status-badge-plan[data-plan-type="plus"],
.plan-insight-value[data-plan-type="plus"],
.confirm-plan-value[data-plan-type="plus"] {
    color: #dbeafe;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.16);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.18);
}

.status-badge-plan[data-plan-type="go"],
.plan-insight-value[data-plan-type="go"],
.confirm-plan-value[data-plan-type="go"] {
    color: #dcfce7;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.16);
}

.status-badge-plan[data-plan-type="team"],
.plan-insight-value[data-plan-type="team"],
.confirm-plan-value[data-plan-type="team"] {
    color: #ede9fe;
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.16);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.16);
}

.status-badge-plan[data-plan-type="free"],
.plan-insight-value[data-plan-type="free"],
.confirm-plan-value[data-plan-type="free"] {
    color: #e5e7eb;
    border-color: rgba(156, 163, 175, 0.35);
    background: rgba(107, 114, 128, 0.14);
    box-shadow: none;
}

.confirm-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.confirm-box h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.confirm-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.6;
}

.confirm-box strong {
    color: white;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.result-section {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    position: relative;
}

.result-icon::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 3s linear infinite;
}

.result-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
}

.result-icon.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
}

.result-icon.processing {
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-blue);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
}

.result-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.result-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    white-space: normal;
    line-height: 1.8;
}

.delivery-card {
    width: min(100%, 620px);
    margin: 0 auto 14px;
    text-align: left;
    border: 1px solid rgba(0, 240, 255, 0.28);
    border-radius: 16px;
    background: rgba(7, 14, 24, 0.72);
    overflow: hidden;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.12);
}

.delivery-account-grid {
    width: min(100%, 920px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.delivery-account-grid .delivery-card {
    width: 100%;
    margin: 0;
}

.account-delivery-card .delivery-card-head {
    padding: 14px 16px;
}

.account-delivery-card .delivery-card-head strong {
    font-size: 15px;
}

.multi-delivery-card {
    background: rgba(0, 240, 255, 0.08);
}

.delivery-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.delivery-card-head strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 18px;
}

.delivery-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.delivery-kicker {
    color: var(--neon-blue);
    font-size: 13px;
    font-weight: 700;
}

.delivery-rows {
    display: grid;
}

.delivery-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-delivery-card .delivery-row {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    padding: 10px 16px;
    gap: 10px;
}

.delivery-secret-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.delivery-secret-actions.is-compact .delivery-copy-btn {
    flex: 1 1 120px;
}

.delivery-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.delivery-download-wrap {
    flex: 0 0 auto;
}

.delivery-download-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(118px, 1fr));
    gap: 10px;
    min-width: 270px;
}

.delivery-download-btn {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(0, 240, 255, 0.42);
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.08);
    color: #e8fbff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.delivery-download-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 240, 255, 0.82);
    background: rgba(0, 240, 255, 0.14);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.18);
}

.delivery-download-btn.is-cpa {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.delivery-download-btn.is-cpa:hover {
    border-color: rgba(16, 185, 129, 0.82);
    background: rgba(16, 185, 129, 0.16);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.18);
}

.delivery-row:last-child {
    border-bottom: 0;
}

.delivery-label {
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
}

.delivery-value {
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Courier New", Consolas, monospace;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.delivery-value-hidden {
    font-family: inherit;
    color: rgba(255, 255, 255, 0.62);
}

.delivery-copy-btn {
    border: 1px solid rgba(0, 240, 255, 0.34);
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--neon-blue);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-copy-btn:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 30px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--neon-blue);
    position: relative;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-icon {
    text-align: center;
    margin-bottom: 20px;
    font-size: 60px;
    filter: drop-shadow(0 0 20px var(--neon-purple));
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(0, 240, 255, 0.05), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 10;
}

[hidden] {
    display: none !important;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes stockIslandPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.28);
        opacity: 1;
    }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 20px rgba(0, 240, 255, 0.1);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 40px rgba(168, 85, 247, 0.2);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes statEdgeSweep {
    0% { transform: translateX(0); }
    100% { transform: translateX(290%); }
}

@keyframes scan {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        display: block;
        min-height: 100svh;
        padding: 18px 16px 34px;
    }

    body::after {
        top: -35%;
        left: -35%;
        width: 170%;
        height: 170%;
    }

    .scanline {
        left: 0;
        right: auto;
        width: 100%;
    }

    .query-screen {
        padding: 18px 16px 34px;
    }

    .container,
    .query-screen .container {
        width: 100%;
        max-width: calc(100vw - 32px);
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .page-tools {
        width: 100%;
        justify-content: flex-end;
    }

    .main-flow-panel,
    .mail-pickup-view,
    .batch-account-view,
    .progress-bar,
    .steps-container,
    .card-wrapper,
    .card,
    .stock-island-shell,
    .stock-island,
    .nav-links {
        width: 100%;
        max-width: 100%;
    }

    .card-wrapper {
        overflow: hidden;
        min-height: 0;
    }

    .nav-links {
        gap: 8px;
        margin-bottom: 28px;
    }

    .nav-link {
        min-height: 44px;
        padding: 11px 14px;
        font-size: 13px;
    }

    .delivery-account-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 32px;
    }

    .stock-island-shell {
        position: static;
        top: auto;
        margin: -18px auto 28px;
    }

    .stock-island {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "dot main action";
        align-items: center;
        gap: 10px;
        padding: 12px 12px 14px;
        border-radius: 24px;
    }

    .stock-island-main {
        align-self: center;
    }

    .stock-island-count {
        font-size: 15px;
    }

    .stock-island-action {
        grid-area: action;
        min-width: 58px;
        min-height: 36px;
        height: auto;
        padding: 0 12px;
    }

    .card {
        padding: 30px 25px;
        left: 0;
        right: 0;
        transform: none;
    }

    .account-claim-panel {
        padding: 16px;
    }

    .batch-account-standalone {
        padding: 18px;
    }

    .batch-account-textarea {
        min-height: 220px !important;
        font-size: 14px;
        padding: 14px;
    }

    .batch-account-panel .btn-secondary {
        flex: 1;
    }

    .account-claim-head {
        align-items: flex-start;
    }

    .card:not(.active) {
        display: none;
    }

    .card.active {
        display: block;
        position: relative;
        transform: none;
    }

    .card.exit-left {
        transform: none;
    }

    .buttons,
    .modal-buttons {
        flex-direction: column;
    }

    .steps-container {
        gap: 10px;
    }

    .action-toggle {
        grid-template-columns: 1fr;
    }

    .mail-pickup-form,
    .mail-pickup-form-wide {
        grid-template-columns: 1fr;
    }

    .mail-pickup-actions {
        grid-template-columns: 1fr;
    }

    .mail-pickup-actions.is-polling {
        grid-template-columns: 1fr;
    }

    .mail-pickup-result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .mail-pickup-result-title {
        align-items: flex-start;
        width: 100%;
    }

    .mail-pickup-mailboxes {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .mail-pickup-email-top {
        flex-direction: column;
    }

    .mail-pickup-email-frame,
    .mail-pickup-email-body {
        height: 220px;
    }

    .mail-pickup-btn,
    .mail-pickup-refresh-btn,
    .mail-pickup-stop-btn,
    .mail-pickup-result .delivery-copy-btn {
        width: 100%;
    }

    .query-result-cards {
        grid-template-columns: 1fr;
    }

    .query-result-card-top,
    .query-result-actions,
    .query-account-item,
    .query-account-delivery-head {
        flex-direction: column;
        align-items: stretch;
    }

    .query-account-item small {
        text-align: left;
    }

    .query-account-field {
        grid-template-columns: 1fr;
    }

    .query-account-compact-main {
        grid-template-columns: 1fr;
    }

    .query-result-link,
    .query-result-actions .query-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .query-results.is-single-result {
        max-width: none;
        margin-top: 16px;
    }

    .query-results.is-single-result .query-result-card {
        padding: 22px;
    }

    .query-results.is-single-result .query-result-card h3 {
        font-size: 22px;
    }

    .query-results.is-single-result .query-result-meta {
        grid-template-columns: 1fr;
    }

    .query-has-single-result .query-card-wrapper {
        max-width: none;
    }

    .query-has-single-result .query-panel {
        padding: 16px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .step-label {
        font-size: 12px;
    }

    .query-stats {
        grid-template-columns: 1fr;
    }

    .page-tools {
        margin-bottom: 10px;
    }

    .lang-switch {
        margin-left: auto;
    }

    .query-hero-title {
        font-size: 34px;
        gap: 10px;
    }

    .query-hero-icon {
        font-size: 34px;
    }

    .query-results-header,
    .query-results-tools {
        flex-direction: column;
        align-items: flex-start;
    }

    .query-search-box {
        width: 100%;
    }

    .query-filter-tabs {
        flex-wrap: wrap;
    }

    .delivery-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .delivery-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .delivery-copy-btn {
        width: fit-content;
    }

    .delivery-download-actions {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .download-menu-wrap,
    .download-trigger,
    .query-row-download-wrap,
    .query-row-download-wrap .query-copy-btn {
        width: 100%;
    }

    .download-menu,
    .query-row-download-wrap .download-menu,
    .delivery-download-wrap .download-menu {
        left: 0;
        right: auto;
        width: min(220px, 100%);
    }

    .floating-download-menu {
        width: min(220px, calc(100vw - 16px));
    }
}


#queryResultCards,
.query-result-cards,
.query-result-card,
[data-query-result-cards],
[data-query-result-card] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}


.query-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.query-row-actions .query-copy-btn {
    min-width: 0;
    white-space: nowrap;
}

.query-row-download-wrap {
    flex: 0 0 auto;
}

.query-download-btn {
    min-width: 72px;
}

.query-detail-row[hidden] {
    display: none !important;
}

.query-detail-row td {
    padding: 0 12px 14px !important;
    background: rgba(3, 8, 16, 0.88) !important;
}

.query-detail-panel {
    border: 1px solid rgba(0, 240, 255, 0.34);
    background: linear-gradient(180deg, rgba(2, 18, 30, 0.98), rgba(3, 10, 20, 0.96));
    border-radius: 10px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(0, 0, 0, 0.24);
}

.query-detail-btn {
    border-color: rgba(255, 138, 199, 0.5);
    color: #ff8ac7;
}

.query-detail-panel .query-account-delivery-list {
    margin-top: 0;
}

.query-detail-panel .query-account-delivery {
    margin: 0;
    border-radius: 8px;
    background: rgba(3, 10, 18, 0.68);
}

.query-detail-panel .query-account-delivery-head {
    margin-bottom: 0;
    padding: 12px 14px;
}

.query-detail-panel .query-account-delivery-head span {
    font-size: 12px;
    letter-spacing: 0;
}

.query-detail-panel .query-account-delivery-head strong {
    font-size: 14px;
    line-height: 1.45;
}

.query-detail-panel .query-copy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.query-detail-panel .query-detail-head,
.query-detail-panel .query-detail-meta,
.query-detail-panel .query-detail-empty {
    display: none !important;
}

@media (max-width: 760px) {
    .query-table-wrapper {
        overflow: visible;
    }

    .query-table {
        table-layout: fixed;
    }

    .query-table th:nth-child(1),
    .query-table td:nth-child(1) {
        width: 22%;
    }

    .query-table th:nth-child(2),
    .query-table td:nth-child(2),
    .query-table th:nth-child(5),
    .query-table td:nth-child(5) {
        display: none;
    }

    .query-table th:nth-child(3),
    .query-table td:nth-child(3) {
        width: 18%;
    }

    .query-table th:nth-child(4),
    .query-table td:nth-child(4) {
        width: 30%;
    }

    .query-table th:nth-child(6),
    .query-table td:nth-child(6) {
        width: 30%;
    }

    .query-table th,
    .query-table td {
        padding: 10px 7px;
        font-size: 12px;
    }

    .query-status-pill {
        min-width: 0;
        padding: 5px 7px;
        font-size: 11px;
        white-space: normal;
    }

    .query-row-actions {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .query-row-actions .query-copy-btn {
        width: 100%;
        padding: 6px 7px;
        font-size: 11px;
    }

    .query-detail-row td {
        position: sticky;
        left: 0;
        z-index: 1;
        width: calc(100vw - 80px);
        max-width: calc(100vw - 80px);
        padding: 0 8px 12px !important;
    }

    .query-detail-panel {
        width: min(100%, calc(100vw - 98px));
        max-width: calc(100vw - 98px);
        padding: 10px;
        border-radius: 10px;
    }

    .query-detail-panel .query-account-delivery-head {
        padding: 10px 11px;
    }

    .query-detail-panel .query-account-field {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        padding: 10px 11px;
    }

    .query-detail-panel .query-account-field span {
        line-height: 1.45;
    }

    .query-detail-panel .query-copy-mini {
        width: 100%;
        min-height: 38px;
        font-size: 13px;
    }
}
