/* ── Find ID Button Wrapper (Placed before PPOM id_name) ── */
.aliv-btn-wrap {
    padding-left: 15px;
    padding-right: 15px;
    margin: 12px 0 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* ── Natural, Highlighted "Find ID" Button ────────────────────── */
.aliv-find-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    background: #0284c7 !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.aliv-find-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35) !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.aliv-find-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2) !important;
}

.aliv-find-btn:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.aliv-find-btn.is-loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.aliv-find-btn.is-verified {
    background: #10b981 !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
}

.aliv-find-btn.is-verified:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35) !important;
}

/* ── Button icon & spinners ─────────────────────────────────── */
.aliv-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.aliv-btn-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.aliv-btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: aliv-spin 0.7s linear infinite;
    display: inline-block;
}

/* ── Blocked / Locked In-Game Name Field ────────────────────── */
.aliv-field-locked {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    user-select: none;
}

/* Ensure PPOM placeholder remains crisp and clearly visible when locked */
.aliv-field-locked::placeholder,
.aliv-field-locked::-webkit-input-placeholder,
.aliv-field-locked::-moz-placeholder,
.aliv-field-locked:-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

.aliv-field-locked.is-verified-input {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 700;
    box-shadow: 0 0 0 1px #86efac !important;
    cursor: default !important;
}

/* ── PPOM In-Game Name Status Badges ────────────────────────── */
.aliv-name-status {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    display: none;
}

.aliv-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.aliv-badge-verified {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.aliv-badge-verified .aliv-badge-icon {
    font-weight: 800;
    color: #15803d;
}

.aliv-badge-manual {
    background-color: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.aliv-badge-manual .aliv-badge-icon {
    font-weight: 700;
}

/* ── Player Details Preview Card ────────────────────────────── */
.aliv-box {
    margin: 10px 0 14px;
    width: 100%;
}

.aliv-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    box-sizing: border-box;
}

.aliv-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.aliv-err {
    border-color: #fef08a;
    background: #fefce8;
    color: #854d0e;
    font-weight: 500;
}

.aliv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.aliv-info {
    display: flex;
    flex-direction: column;
}

.aliv-name {
    font-weight: 700;
    color: #111827;
}

.aliv-meta {
    font-size: 12.5px;
    color: #4b5563;
    margin-top: 2px;
}

.aliv-x {
    font-weight: 700;
    margin-right: 2px;
}

.aliv-loading {
    color: #374151;
}

.aliv-loading-text {
    font-weight: 500;
}

.aliv-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-top-color: #6b7280;
    border-radius: 50%;
    display: inline-block;
    animation: aliv-spin 0.7s linear infinite;
    flex: 0 0 auto;
}

@keyframes aliv-spin {
    to { transform: rotate(360deg); }
}

/* ── Mobile View Responsiveness ─────────────────────────────── */
@media (max-width: 600px) {
    .aliv-btn-wrap {
        margin: 10px 0 8px !important;
    }
    .aliv-find-btn {
        width: 100% !important;
        min-height: 46px !important;
        height: 46px !important;
        font-size: 15px !important;
    }
}
