/* 全站激活门禁：须高于 style.css 内高层浮层；浅粉高级风 */
#activation-gate-root {
    position: fixed;
    inset: 0;
    z-index: 300000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 182, 193, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #fff5f7 0%, #fce7f3 35%, #fdf2f8 70%, #ffe4e6 100%);
    color: #4a3540;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-y: auto;
}

#activation-gate-root.activation-gate--hidden {
    display: none !important;
    pointer-events: none;
}

.activation-gate-panel {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 32px 26px;
    box-shadow:
        0 4px 24px rgba(190, 100, 120, 0.08),
        0 24px 56px rgba(190, 24, 93, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.activation-gate-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    margin: 0 0 10px;
    color: #831843;
    font-feature-settings: "kern" 1;
}

.activation-gate-sub {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(74, 53, 64, 0.62);
    text-align: center;
    margin: 0 0 24px;
}

.activation-gate-sub--tight {
    margin-top: 14px;
    margin-bottom: 0;
}

.activation-gate-row {
    margin-bottom: 18px;
}

.activation-gate-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(131, 24, 67, 0.45);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.activation-gate-machine {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 242, 248, 0.9) 100%);
    border-radius: 14px;
    border: 1px solid rgba(244, 114, 182, 0.25);
    color: #9d174d;
    box-shadow: 0 2px 12px rgba(219, 39, 119, 0.06);
    word-break: break-all;
}

.activation-gate-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(244, 114, 182, 0.35);
    background: rgba(255, 255, 255, 0.85);
    color: #9d174d;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
    margin-top: 10px;
}

.activation-gate-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(236, 72, 153, 0.45);
}

.activation-gate-btn:active {
    transform: scale(0.99);
}

.activation-gate-btn--ghost {
    margin-top: 12px;
    background: transparent;
    border-color: rgba(244, 114, 182, 0.4);
}

.activation-gate-btn--ghost:hover {
    background: rgba(253, 242, 248, 0.6);
}

.activation-gate-btn--primary {
    margin-top: 6px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 48%, #be185d 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px rgba(219, 39, 119, 0.28);
}

.activation-gate-btn--primary:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    box-shadow: 0 10px 28px rgba(219, 39, 119, 0.32);
}

.activation-gate-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: 0.06em;
    border-radius: 14px;
    border: 1px solid rgba(244, 114, 182, 0.3);
    background: rgba(255, 255, 255, 0.92);
    color: #831843;
}

.activation-gate-input--single {
    min-height: 0;
    text-align: center;
}

.activation-gate-input::placeholder {
    color: rgba(131, 24, 67, 0.28);
    letter-spacing: 0.02em;
}

.activation-gate-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.activation-gate-msg {
    font-size: 0.8125rem;
    margin-top: 12px;
    min-height: 1.25em;
    text-align: center;
}

.activation-gate-msg--err {
    color: #be123c;
}

.activation-gate-msg--ok {
    color: #15803d;
}

.activation-gate-msg--muted {
    color: rgba(74, 53, 64, 0.45);
}

.activation-gate-done {
    text-align: center;
    padding: 8px 0 2px;
}

.activation-gate-done-badge {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.9) 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #047857;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}
