:root {
    --bg: #0b1220;
    --card: rgba(255, 255, 255, 0.08);
    --card2: rgba(255, 255, 255, 0.06);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.65);
    --line: rgba(255, 255, 255, 0.12);
    --focus: rgba(99, 102, 241, 0.75);
    --ok: rgba(34, 197, 94, 0.9);
    --bad: rgba(239, 68, 68, 0.9);
    --shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

* {
    box-sizing: border-box;
}


/* ✅ scope everything to avoid Bootstrap conflicts */
.tig * {
    box-sizing: border-box;
}

.tig {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(99, 102, 241, .25), transparent 60%),
        radial-gradient(900px 500px at 80% 20%, rgba(56, 189, 248, .20), transparent 55%),
        radial-gradient(1100px 700px at 50% 90%, rgba(34, 197, 94, .12), transparent 55%),
        var(--bg);
    color: var(--text);
}

.tig .wrap {
    width: min(520px, 100%);
}

/* ✅ rename .card -> .tig-card */
.tig .tig-card {
    position: relative;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--card), var(--card2));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.tig .tig-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 180deg,
            rgba(99, 102, 241, .28),
            rgba(56, 189, 248, .18),
            rgba(34, 197, 94, .16),
            rgba(99, 102, 241, .28));
    filter: blur(26px);
    opacity: .35;
    pointer-events: none;
}

.tig .tig-card>* {
    position: relative;
}

.tig .head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tig .title {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: .2px;
    margin: 0;
}

.tig .subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

/* ✅ rename .badge -> .tig-badge (so Bootstrap .badge stays untouched) */
.tig .tig-badge {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    user-select: none;
}

/* OTP */
.tig .otpWrap {
    margin-top: 10px;
}

.tig .otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.tig .otpBox {
    height: 54px;
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 1px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 14, 30, 0.35);
    color: var(--text);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background .18s ease;
}

.tig .otpBox:focus {
    border-color: rgba(99, 102, 241, 0.75);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
    transform: translateY(-1px);
}

.tig .otpBox.filled {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.tig .metaRow {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.tig .hint {
    font-size: 12px;
    color: var(--muted);
}

.tig .count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

/* status */
.tig .status {
    margin-top: 12px;
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.78);
    display: none;
}

.tig .status.ok {
    display: block;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: rgba(220, 252, 231, 0.95);
}

.tig .status.bad {
    display: block;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.tig .footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ✅ rename .btn -> .tig-btn */
.tig .tig-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    transition: transform .12s ease, border-color .18s ease, background .18s ease;
    user-select: none;
}

.tig .tig-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.tig .tig-btn.primary {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.18);
}

.tig .tig-btn.primary:hover {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.24);
}

@media (max-width: 420px) {
    .tig .otp {
        gap: 8px;
    }

    .tig .otpBox {
        height: 48px;
        font-size: 16px;
        border-radius: 12px;
    }
}