* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0; min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #edf2ff;
    background:
        radial-gradient(circle at top left, rgba(108, 92, 255, 0.26), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 207, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0b1020, #12182d 45%, #0d1122);
}
body { position: relative; overflow-x: hidden; }

.bg-shape { position: fixed; z-index: 0; border-radius: 999px; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.shape-1 { width: 280px; height: 280px; background: #6c5cff; top: 20px; left: -50px; }
.shape-2 { width: 260px; height: 260px; background: #00cfff; right: -60px; bottom: 40px; }
.shape-3 { width: 220px; height: 220px; background: #ff4fd8; left: 58%; top: 38%; }

.page-wrap { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }

.card {
    width: 100%; max-width: 760px; padding: 28px; border-radius: 24px;
    background: rgba(17, 23, 44, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.card-header { margin-bottom: 24px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #8fa7ff; }
h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.2; color: #ffffff; }
.subtext { margin: 0; font-size: 15px; line-height: 1.6; color: #bfcaea; }

.reseller-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.reseller-item { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.label { display: block; margin-bottom: 8px; font-size: 12px; color: #98a7d8; letter-spacing: 1px; text-transform: uppercase; }
.value { display: block; font-size: 17px; font-weight: 700; color: #ffffff; word-break: break-word; }

.badge { display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.active { color: #8df2b4; background: rgba(55, 213, 124, 0.14); border: 1px solid rgba(55, 213, 124, 0.2); }
.badge.off { color: #ffb0b0; background: rgba(255, 84, 84, 0.12); border: 1px solid rgba(255, 84, 84, 0.22); }

.gen-form { display: grid; gap: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #dfe6ff; }
.form-group select {
    width: 100%; padding: 14px 15px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff; font-size: 15px; outline: none; transition: 0.2s ease;
}
.form-group select:focus { border-color: rgba(116, 128, 255, 0.85); box-shadow: 0 0 0 4px rgba(108, 92, 255, 0.16); }
.form-group select option { color: #111827; }

.submit-btn, .copy-btn { border: 0; cursor: pointer; font-weight: 700; transition: 0.18s ease; }
.submit-btn {
    padding: 15px 18px; border-radius: 14px; font-size: 16px; color: #ffffff;
    background: linear-gradient(135deg, #6c5cff, #00b8ff);
    box-shadow: 0 14px 30px rgba(58, 84, 255, 0.28);
}
.submit-btn:hover { transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.result-box { margin-top: 22px; }
.result-data { margin-top: 14px; }
.result-field label { display: block; margin-bottom: 8px; font-weight: 600; color: #dfe6ff; }
.copy-row { display: flex; gap: 10px; }
.copy-row input {
    flex: 1; min-width: 0; padding: 14px 15px; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff; font-size: 15px; outline: none;
}
.copy-btn {
    padding: 0 18px; border-radius: 14px; color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 14px;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }

.alert { padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.alert.error { color: #ffb0b0; background: rgba(255, 84, 84, 0.12); border-color: rgba(255, 84, 84, 0.22); }
.alert.success { color: #9ff0ba; background: rgba(71, 214, 126, 0.12); border-color: rgba(71, 214, 126, 0.22); }
.alert.loading { color: #a4eaff; background: rgba(0, 184, 255, 0.12); border-color: rgba(0, 184, 255, 0.22); }
.hidden { display: none; }

@media (max-width: 640px) {
    .card { padding: 20px; border-radius: 20px; }
    h1 { font-size: 28px; }
    .copy-row { flex-direction: column; }
    .copy-btn { height: 48px; }
}
