:root {
    --bg-primary: #020202;
    --bg-secondary: #110006;
    --accent: #d64d4d;
    --accent2: #a52c2c;
    --text: #f5f5f5;
    --muted: #9c9c9c;
    --input-bg: #101116;
    --input-border: #272b34;
    --key-bg: #11141a;
    --key-bg-hover: #1d212b;
    --key-shadow: rgba(0, 0, 0, 0.35);
}

html {
    box-sizing: border-box;
    font-size: 16px;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
body {
    background: radial-gradient(
        circle at center,
        #000000 0%,
        #000000 45%,
        #0a0205 100%
    );
    color: var(--text);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
        sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero,
.greeter {
    text-align: center;
    margin-bottom: 1.5rem;
}
h1 {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 0.3em 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5em;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-bottom: 1.5em;
    width: 100%;
    align-items: center;
}

.pin-display {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-input {
    background: rgba(17, 18, 24, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 1rem;
    padding: 0.75em 1em;
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 0.22em;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    text-align: center;
    caret-color: transparent;
    width: 100%;
    min-height: auto;
    overflow: hidden;
    word-break: break-all;
}

.pin-input.error {
    animation: shake 0.5s ease-in-out;
    border-color: var(--accent);
    background: rgba(211, 47, 47, 0.05);
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.pin-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1.5em;
    justify-content: center;
}

.key {
    background: var(--key-bg);
    border: none;
    color: var(--text);
    font-size: 1.75em;
    font-weight: 600;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        background 0.18s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.key:hover {
    background: var(--key-bg-hover);
    box-shadow: 0 4px 12px var(--key-shadow);
    transform: translateY(-2px);
}

.key:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px var(--key-shadow);
}

button.key[data-action="faq"] {
    color: var(--accent);
    font-weight: 700;
}

button.key[data-action="faq"]:hover {
    background: rgba(211, 47, 47, 0.1);
}

button[type="submit"].key {
    background: #343e37;
    color: white;
    font-weight: 700;
}

button[type="submit"].key:hover {
    background: #2f4534;
}

button[type="submit"].key:active {
    background: #415a47;
}
.muted {
    color: var(--muted);
    font-size: 0.95em;
    margin-top: 0.75em;
    text-align: center;
}

.faq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.faq-overlay.active {
    display: flex;
}

.faq-modal {
    position: fixed;
    bottom: 0;
    background: #09090b;
    border-radius: 2em 2em 0 0;
    padding: 2rem 1.5rem 1.5rem;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease-out;
}

.faq-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        transform 0.2s;
}

.faq-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.faq-modal-inner {
    position: relative;
    padding-top: 1.2rem;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.faq {
    padding: 0;
    margin: 0;
}
.faq h2 {
    color: var(--accent);
    font-size: 1.5em;
    margin: 0 0 1.5em 0;
    letter-spacing: 0.02em;
}
.faq-item {
    margin-bottom: 1.5em;
}
.faq-item:last-child {
    margin-bottom: 0;
}
.faq-q {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5em;
    font-size: 1.05em;
}
.faq-a {
    color: var(--muted);
    font-size: 0.95em;
    line-height: 1.6;
}

.banner {
    text-align: center;
    margin-bottom: 2em;
    padding: 1.5em;
    background: rgba(211, 47, 47, 0.1);
    border-left: 4px solid var(--accent);
    border-radius: 0.75em;
}

.banner h2 {
    color: var(--accent);
    font-size: 1.5em;
    margin: 0 0 0.5em 0;
}

.banner p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95em;
}
@media (max-width: 600px) {
    .container {
        padding: 1rem 1rem;
        max-width: 100%;
    }
    .keypad {
        gap: 1em;
        grid-template-columns: repeat(3, 70px);
    }
    .key {
        width: 70px;
        height: 70px;
        font-size: 1.6em;
    }
    .pin-input {
        font-size: 1.5em;
        padding: 0.6em 0.75em;
    }
    .faq-modal {
        padding: 1.5rem;
        max-height: 90vh;
    }
}
ul,
ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
li {
    padding-left: 0;
    margin-left: 0;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent2);
}
