/* GHOST Activation Gate — AE-native dark lock screen */
html.ghost-gated body > *:not(.ghost-gate) {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.ghost-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 20, 20, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: "Adobe Clean", "Segoe UI", system-ui, sans-serif;
}

.ghost-gate.is-open { display: flex; }

.ghost-gate-box {
    width: 100%;
    max-width: 380px;
    padding: 22px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: linear-gradient(180deg, #262626, #1f1f1f);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
    color: #d6d6d6;
}

.ghost-gate-head { display: flex; align-items: center; gap: 10px; }

.ghost-gate-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: #2680eb;
    color: #fff; font-weight: 700;
}

.ghost-gate-title { font-size: 14px; font-weight: 700; color: #fff; }
.ghost-gate-sub { font-size: 10px; letter-spacing: 0.18em; color: #8c8c8c; text-transform: uppercase; }

.ghost-gate-note {
    margin: 14px 0 0;
    font-size: 11.5px;
    line-height: 1.65;
    color: #b4b4b4;
}
.ghost-gate-note-en { color: #8c8c8c; font-size: 10.5px; }

.ghost-gate-input {
    width: 100%;
    margin-top: 14px;
    padding: 9px 11px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #1b1b1b;
    color: #fff;
    font-family: "Consolas", "SF Mono", monospace;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    outline: none;
}
.ghost-gate-input:focus { border-color: #2680eb; }

.ghost-gate-row { display: flex; gap: 8px; margin-top: 10px; }

.ghost-gate-btn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    background: #2b2b2b;
    color: #d6d6d6;
    font-size: 12px;
    cursor: pointer;
}
.ghost-gate-btn:hover { border-color: #2680eb; }
.ghost-gate-btn:disabled { opacity: 0.55; cursor: default; }
.ghost-gate-primary { background: #2680eb; border-color: #2680eb; color: #fff; font-weight: 600; }

.ghost-gate-status {
    margin-top: 12px;
    min-height: 16px;
    font-size: 11.5px;
    line-height: 1.5;
}
.ghost-gate-status[data-kind="error"] { color: #e34850; }
.ghost-gate-status[data-kind="ok"] { color: #57c07f; }
.ghost-gate-status[data-kind="info"] { color: #8c8c8c; }

.ghost-gate-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    font-family: "Consolas", "SF Mono", monospace;
    font-size: 9.5px;
    color: #6d6d6d;
    word-break: break-all;
}

/* Premium modules stay visually locked whenever the license is missing */
.ghost-locked { opacity: 0.45; pointer-events: none; }

/* ---------------- preset vote buttons ---------------- */
.tk-vote { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.tk-vote-float {
    position: absolute; top: 4px; right: 4px; z-index: 3;
    background: rgba(0, 0, 0, 0.45); border-radius: 10px; padding: 1px 3px;
}
.tk-vote-btn {
    border: 0; background: transparent; cursor: pointer; padding: 0 2px;
    font-size: 10px; line-height: 1.2; opacity: 0.45; border-radius: 6px;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.tk-vote-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.tk-vote-btn.is-on { opacity: 1; background: rgba(38, 128, 235, 0.35); }

/* ---------------- feedback dot ---------------- */
.ghost-fb { position: fixed; left: 0; right: 0; bottom: 4px; z-index: 9998; pointer-events: none; text-align: center; }
.ghost-fb-dot {
    pointer-events: auto; width: 10px; height: 10px; padding: 0; border: 0; cursor: pointer;
    border-radius: 50%; background: #4a4a4a; opacity: 0.7;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.ghost-fb-dot:hover { background: var(--ghost-accent, #2680eb); transform: scale(1.4); opacity: 1; }
.ghost-fb-sheet {
    pointer-events: auto; display: none; text-align: left;
    position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
    width: min(320px, calc(100vw - 24px));
    background: #232323; border: 1px solid #3a3a3a; border-radius: 10px;
    padding: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}
.ghost-fb.is-open .ghost-fb-sheet { display: block; }
.ghost-fb.is-open .ghost-fb-dot { background: var(--ghost-accent, #2680eb); opacity: 1; }
.ghost-fb-title { font-size: 12px; font-weight: 700; color: #fff; }
.ghost-fb-sub { font-size: 10px; color: #8c8c8c; margin-top: 2px; }
.ghost-fb-select, .ghost-fb-text, .ghost-fb-input {
    width: 100%; margin-top: 8px; box-sizing: border-box;
    background: #2b2b2b; color: #e8e8e8; border: 1px solid #3a3a3a;
    border-radius: 6px; padding: 6px 8px; font-size: 11px; font-family: inherit;
}
.ghost-fb-text { resize: vertical; min-height: 62px; }
.ghost-fb-row { display: flex; gap: 6px; margin-top: 8px; }
.ghost-fb-btn {
    flex: 1; border: 1px solid #3a3a3a; background: #2b2b2b; color: #d6d6d6;
    border-radius: 6px; padding: 6px 8px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.ghost-fb-primary { background: var(--ghost-accent, #2680eb); border-color: transparent; color: #fff; }
.ghost-fb-btn:disabled { opacity: 0.5; cursor: default; }
.ghost-fb-status { margin-top: 6px; font-size: 10px; min-height: 12px; color: #8c8c8c; }
.ghost-fb-status[data-kind="ok"] { color: #33ab84; }
.ghost-fb-status[data-kind="error"] { color: #e34850; }
.ghost-fb-status[data-kind="warn"] { color: #e68619; }
