* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* ── Background image — sharp, no blur, no filter ──────────────────
   Paste your image URL below. */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('https://files.catbox.moe/59juy9.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Card: plain semi-transparent tint for text contrast — NOT blurred.
   Increase the 0.35 below (toward 1) if text is still hard to read
   over a busy part of your image; decrease it to show more image. */
.card {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 30px 24px;
}
h1 {
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.sub {
    text-align: center;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    margin-bottom: 22px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.method-buttons { display: flex; gap: 10px; margin-bottom: 20px; }
.method-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.method-btn.active {
    border-color: #fff;
    background: rgba(124, 58, 237, 0.75);
}

.panel { display: none; }
.panel.active { display: block; }

.btn {
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.75);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input[type="tel"] {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
input[type="tel"]::placeholder { color: rgba(255,255,255,0.75); }

.qr-box, .code-box { text-align: center; margin-top: 16px; }
.qr-box img { width: 200px; height: 200px; border-radius: 8px; background: #fff; padding: 6px; }
.code-text {
    font-size: 1.9rem;
    letter-spacing: 3px;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.hint {
    color: rgba(255,255,255,0.95);
    font-size: 0.8rem;
    margin-top: 10px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}

.status {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #fff;
    min-height: 1.2em;
    text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}

.result { margin-top: 20px; }
.warn {
    color: #ffe082;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    font-weight: 700;
}
textarea {
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: #d7ffe0;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.72rem;
    resize: vertical;
    margin-bottom: 10px;
}
.copy-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.85);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hidden { display: none; }
