/* Proxima Secure Share — first-party stylesheet.
   Visual language adapted from the Shortly reference UI:
   dark slate surfaces, indigo/sky gradients, glass card, pill badges.
   Served over style-src 'self' — CSP permits no inline styles. */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #0f172a;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, .35), transparent),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(14, 165, 233, .25), transparent);
    background-attachment: fixed;
    color: #e2e8f0;
    padding: 1.5rem;
    line-height: 1.5;
}

.card {
    width: 100%;
    max-width: 34rem;
    background: rgba(30, 41, 59, .75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}
.page-home .card { text-align: center; padding: 3rem 2.25rem; }

.badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a5b4fc;
    background: rgba(129, 140, 248, .12);
    border: 1px solid rgba(129, 140, 248, .3);
    border-radius: 999px;
    padding: .25rem .7rem;
    margin-bottom: 1rem;
}

h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.page-home h1 { font-size: 2.6rem; }
h1 span {
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub { color: #94a3b8; font-size: .9rem; margin-top: .35rem; margin-bottom: 1.75rem; }
.page-home .sub { font-size: 1rem; margin-bottom: 1.5rem; }

.features { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
    font-size: .78rem;
    color: #cbd5e1;
    background: rgba(148, 163, 184, .1);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 999px;
    padding: .35rem .85rem;
}

.how {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.how li {
    list-style: none;
    display: flex;
    gap: .8rem;
    align-items: baseline;
    color: #cbd5e1;
    font-size: .88rem;
}
.how .n {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(129, 140, 248, .15);
    border: 1px solid rgba(129, 140, 248, .35);
    color: #a5b4fc;
    font-size: .72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.note {
    background: rgba(251, 191, 36, .07);
    border: 1px solid rgba(251, 191, 36, .25);
    border-radius: .9rem;
    padding: .9rem 1.1rem;
    color: #fde68a;
    font-size: .82rem;
    text-align: left;
    margin-bottom: 2rem;
}
.note strong { color: #fbbf24; }

.foot { margin-top: 2.25rem; color: #475569; font-size: .75rem; letter-spacing: .05em; }

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: .75rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    padding: .8rem 1.4rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s, box-shadow .15s, opacity .15s;
    white-space: nowrap;
}
.btn:hover { box-shadow: 0 8px 20px rgba(99, 102, 241, .4); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn.secondary {
    background: rgba(148, 163, 184, .12);
    border: 1px solid rgba(148, 163, 184, .25);
    color: #cbd5e1;
    font-size: .8rem;
    padding: .45rem .9rem;
}
.btn.secondary:hover { box-shadow: none; background: rgba(148, 163, 184, .22); transform: none; }

/* Recipient flow */

.step { display: flex; flex-direction: column; gap: 1rem; }
.step p { color: #cbd5e1; font-size: .92rem; }

label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}

input[type="text"] {
    width: 100%;
    background: rgba(15, 23, 42, .8);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: .75rem;
    padding: .8rem 1rem;
    color: #f1f5f9;
    font-size: 1.15rem;
    letter-spacing: .35em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, .25);
}
input[type="text"]::placeholder { color: #64748b; letter-spacing: .2em; }

.hint { color: #64748b; font-size: .8rem; }

.result {
    background: rgba(15, 23, 42, .8);
    border: 1px solid rgba(52, 211, 153, .3);
    border-radius: .9rem;
    padding: 1.25rem 1.4rem;
    text-align: left;
}
.result .label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #34d399;
    margin-bottom: .5rem;
}
.result code {
    display: block;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: .9rem;
}

.warn {
    background: rgba(251, 191, 36, .07);
    border: 1px solid rgba(251, 191, 36, .25);
    border-radius: .9rem;
    padding: .9rem 1.1rem;
    color: #fde68a;
    font-size: .85rem;
}
.warn .label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fbbf24;
    margin-bottom: .35rem;
}

.error {
    background: rgba(248, 113, 113, .08);
    border: 1px solid rgba(248, 113, 113, .3);
    border-radius: .9rem;
    padding: .9rem 1.1rem;
    color: #fca5a5;
    font-size: .85rem;
}
.error .label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f87171;
    margin-bottom: .35rem;
}

[hidden] { display: none !important; }

@media (max-width: 40rem) {
    .card { padding: 1.75rem 1.25rem; }
    .page-home .card { padding: 2.25rem 1.25rem; }
    .page-home h1 { font-size: 2.1rem; }
    .btn { width: 100%; text-align: center; }
    .btn.secondary { width: auto; }
    input[type="text"] { font-size: 1.3rem; }
}
