/* Ghostae license page (owner's design), shared by the Ghostae extensions. Written for old CEP Chromium too (no flex gap, no inset). */
.gl-overlay {
    --gl-card-bg: rgba(26, 29, 38, 0.82);
    --gl-card-border: rgba(255, 255, 255, 0.12);
    --gl-text: #ffffff;
    --gl-text-2: #c4c8d4;
    --gl-muted: #8b92a4;
    --gl-input-bg: rgba(18, 20, 28, 0.85);
    --gl-input-border: rgba(255, 255, 255, 0.14);
    --gl-hover: rgba(255, 255, 255, 0.05);
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; overflow-y: auto; overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #1f2333 0%, #10121a 75%);
    color: var(--gl-text);
    font-family: "Hind Siliguri Light", "Hind Siliguri", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-weight: 300;
    transition: opacity .3s;
}
.gl-overlay.hidden { display: none; }
.gl-overlay * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
.gl-overlay a { color: inherit; text-decoration: none; transition: all .25s ease; }

.gl-glow { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; opacity: .35; animation: glPulse 14s infinite alternate ease-in-out; }
.gl-glow-1 { width: 460px; height: 460px; background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%); top: -12%; left: -8%; }
.gl-glow-2 { width: 440px; height: 440px; background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%); bottom: -12%; right: -8%; animation-delay: -6s; }
@keyframes glPulse { 0% { transform: scale(.95) translate(0, 0); opacity: .28; } 100% { transform: scale(1.1) translate(20px, -20px); opacity: .42; } }

.gl-card {
    position: relative; z-index: 1; width: 100%; max-width: 390px; padding: 26px 22px; margin: auto;
    background: var(--gl-card-bg); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--gl-card-border); border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
    animation: glEnter .7s cubic-bezier(.16, 1, .3, 1) forwards; overflow: hidden;
}
.gl-card::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(165, 180, 252, .5), transparent); pointer-events: none; }
@keyframes glEnter { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.gl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.gl-brand { display: inline-flex; align-items: center; font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; font-size: 14.5px; font-weight: 400; letter-spacing: -.2px; color: var(--gl-text); }
.gl-logo { margin-right: 8px; width: 26px; height: 26px; object-fit: cover; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .2); background: #171922; transition: transform .2s, border-color .2s; }
.gl-brand:hover .gl-logo { transform: scale(1.05); border-color: rgba(255, 255, 255, .35); }
.gl-domain { color: var(--gl-muted); font-weight: 300; transition: color .25s; }
.gl-brand:hover .gl-domain { color: var(--gl-text-2); }
.gl-badge { display: inline-flex; align-items: center; padding: 4px 10px; background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .25); border-radius: 20px; font-size: 12px; font-weight: 400; color: #c7d2fe; letter-spacing: .1px; white-space: nowrap; }
.gl-badge-dot { margin-right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #818cf8; box-shadow: 0 0 6px #818cf8; }

.gl-input-wrap { position: relative; margin-bottom: 11px; }
.gl-input {
    width: 100%; height: 44px; padding: 0 42px 0 14px; border: 1px solid var(--gl-input-border); border-radius: 10px; outline: none;
    background: var(--gl-input-bg); color: #fff; font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; font-weight: 400;
    letter-spacing: .8px; text-transform: uppercase; transition: all .25s ease;
}
.gl-input::placeholder { color: #6d7486; letter-spacing: .5px; font-weight: 300; text-transform: none; }
.gl-input:focus { border-color: rgba(99, 102, 241, .7); background: rgba(22, 25, 36, .95); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
.gl-paste {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px; color: var(--gl-text-2); padding: 5px 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.gl-paste:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.gl-paste svg { width: 13px; height: 13px; }

.gl-status { display: none; align-items: center; font-size: 12px; font-weight: 300; margin-bottom: 11px; padding: 8px 11px; border-radius: 8px; animation: glMsg .25s ease; }
@keyframes glMsg { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.gl-status.error { display: flex; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .3); color: #fca5a5; }
.gl-status.success { display: flex; background: rgba(99, 102, 241, .15); border: 1px solid rgba(99, 102, 241, .35); color: #e0e7ff; }

.gl-activate {
    width: 100%; height: 44px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: linear-gradient(135deg, #5b55eb 0%, #4338ca 100%);
    color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 400; cursor: pointer;
    transition: all .25s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 4px 15px rgba(79, 70, 229, .4);
}
.gl-activate:hover { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79, 70, 229, .5); }
.gl-activate:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(79, 70, 229, .3); }
.gl-activate:disabled { opacity: .85; cursor: default; }
.gl-arrow { margin-left: 8px; font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; font-size: 15px; font-weight: 300; transition: transform .2s ease; }
.gl-activate:hover .gl-arrow { transform: translateX(3px); }
.gl-loader { margin-right: 8px; display: none; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: glSpin .7s linear infinite; }
@keyframes glSpin { to { transform: rotate(360deg); } }

.gl-options { display: grid; gap: 5px; margin-top: 18px; }
.gl-option { min-height: 50px; display: flex; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .04); transition: all .2s ease; }
.gl-option:hover { background: var(--gl-hover); border-color: rgba(255, 255, 255, .09); transform: translateX(2px); }
.gl-option-icon { margin-right: 12px; width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--gl-text-2); transition: all .2s ease; }
.gl-option:hover .gl-option-icon { background: rgba(99, 102, 241, .18); border-color: rgba(99, 102, 241, .35); color: #fff; }
.gl-option-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gl-option-content { margin-right: 8px; flex: 1; min-width: 0; display: grid; gap: 1px; }
.gl-option-title { font-size: 12.5px; font-weight: 400; color: var(--gl-text); }
.gl-option-desc { color: var(--gl-muted); font-size: 11px; font-weight: 300; transition: color .2s; }
.gl-option:hover .gl-option-desc { color: var(--gl-text-2); }
.gl-option-arrow { color: #636b80; font-size: 15px; font-weight: 300; transition: transform .2s, color .2s; }
.gl-option:hover .gl-option-arrow { color: var(--gl-text-2); transform: translateX(2px); }

.gl-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.gl-purchase { display: grid; gap: 2px; }
.gl-purchase-title { font-size: 11px; font-weight: 300; color: var(--gl-muted); }
.gl-purchase-link { color: #93c5fd !important; font-size: 12.5px; font-weight: 400; display: inline-flex; align-items: center; }
.gl-purchase-link:hover { color: #bfdbfe !important; text-decoration: underline !important; text-underline-offset: 3px; }
.gl-support-link { margin-left: 12px; color: var(--gl-text-2) !important; font-size: 12px; font-weight: 300; display: inline-flex; align-items: center; white-space: nowrap; }
.gl-support-link:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }

.gl-security { display: flex; align-items: center; justify-content: center; margin-top: 16px; color: var(--gl-muted); font-size: 11px; font-weight: 300; letter-spacing: .2px; }
.gl-security svg { margin-right: 6px; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--gl-text-2); }

@media (max-width: 440px) {
    .gl-card { padding: 22px 16px; border-radius: 17px; }
    .gl-footer { flex-direction: column; align-items: flex-start; }
    .gl-support-link { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gl-overlay *, .gl-overlay *::before, .gl-overlay *::after { animation: none !important; transition: none !important; }
}

/* optional close button (extensions that allow a free trial) */
.gl-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--gl-muted); cursor: pointer; transition: background .2s, color .2s; }
.gl-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.gl-close svg { width: 14px; height: 14px; }
.gl-card.has-close .gl-top { padding-right: 30px; }

/* Weak PCs: no endless animation and no heavy blur on the licence screen (the glows are already soft gradients). */
.gl-glow, .gl-glow-1, .gl-glow-2 { animation: none !important; filter: none !important; }
.gl-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
