:root {
    --bg: #08111f;
    --card: #101c2f;
    --card2: #13243d;
    --text: #eef5ff;
    --muted: #9fb0c8;
    --primary: #25d0ff;
    --primary2: #497cff;
    --success: #16c784;
    --error: #ff5f6d;
    --border: rgba(255,255,255,.10);
    --shadow: 0 24px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(37,208,255,.18), transparent 30%), var(--bg);
    color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    min-height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(8,17,31,.78);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    font-weight: 900;
    letter-spacing: .5px;
    font-size: 20px;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    padding: 36px 0 22px;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: -1.5px;
}
.hero p, .muted, .lead, .hint {
    color: var(--muted);
    line-height: 1.6;
}
.hero p { max-width: 720px; font-size: 18px; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.auth-card { max-width: 440px; width: 100%; }
.card h1, .card h2 { margin-top: 0; }

label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 15px;
    color: var(--text);
    background: rgba(255,255,255,.06);
    outline: none;
    font-size: 15px;
}
input:focus {
    border-color: rgba(37,208,255,.55);
    box-shadow: 0 0 0 4px rgba(37,208,255,.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text);
    background: rgba(255,255,255,.10);
    text-decoration: none;
    margin-top: 16px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #06101e;
}
.btn.secondary { background: rgba(255,255,255,.10); }
.btn.full { width: 100%; }
.btn.small { padding: 10px 13px; border-radius: 12px; margin: 10px 8px 0 0; }
.btn.big { padding: 16px 20px; font-size: 17px; }

.alert {
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.alert.success { background: rgba(22,199,132,.12); border-color: rgba(22,199,132,.35); }
.alert.error { background: rgba(255,95,109,.12); border-color: rgba(255,95,109,.35); }
.copy-input { margin-top: 12px; }

.steps { display: grid; gap: 13px; }
.steps div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
    line-height: 1.5;
}
.steps span {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37,208,255,.15);
    color: var(--primary);
    font-weight: 900;
}

.table-card { margin-top: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td {
    text-align: left;
    padding: 13px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}
th { color: var(--text); }
.truncate { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.center-text { text-align: center; }

.open-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(37,208,255,.20), transparent 35%), #07101f;
}
.open-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.open-card {
    width: min(480px, 100%);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(37,208,255,.14);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 20px;
}
.open-card h1 {
    font-size: 31px;
    letter-spacing: -1px;
    margin: 0 0 10px;
}
.instruction-box {
    margin-top: 18px;
    text-align: left;
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px;
    color: var(--muted);
    line-height: 1.6;
}
.safe-url {
    font-size: 13px;
    color: rgba(238,245,255,.55);
    margin-top: 18px;
    word-break: break-word;
}

@media (max-width: 760px) {
    .grid { grid-template-columns: 1fr; }
    .topbar { padding: 0 16px; }
    .card { padding: 20px; border-radius: 20px; }
    .open-card { padding: 24px; border-radius: 24px; }
}
