/* Wrapper */
.thigactive-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Tool box */
.thigactive-tool-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.thigactive-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

/* Input */
.thigactive-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    border: 2px solid #e0e0ff;
    outline: none;
    font-size: 15px;
    box-shadow: 0 0 0 3px rgba(120, 120, 255, 0.08);
    background: linear-gradient(90deg, #ffffff, #f8f5ff);
    box-sizing: border-box;
}

.thigactive-input:focus {
    border-color: #8b5cff;
    box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.25);
}

/* Button */
.thigactive-button {
    margin-top: 6px;
    align-self: center;
    padding: 10px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6ec7, #8b5cff, #4fd1c5);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.thigactive-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.16);
    background-position: 100% 0;
}

.thigactive-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

.thigactive-button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.thigactive-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    animation: thigactive-spin 0.7s linear infinite;
}

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

.thigactive-button-text-loading {
    opacity: 0.7;
}

/* Branding */
.thigactive-brand {
    align-self: flex-end;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe4f3, #e8ddff);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Results */
.thigactive-results {
    margin-top: 16px;
    box-sizing: border-box;
}

/* Profile card */
.thigactive-card {
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3ff, #e0f8ff);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.thigactive-card-main {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

/* Avatar */
.thigactive-avatar-wrap {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    padding: 2px;
    box-sizing: border-box;
}

.thigactive-avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: block;
    object-fit: cover;
}

/* Card body */
.thigactive-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.thigactive-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.thigactive-fullname {
    font-size: 17px;
    font-weight: 700;
}

.thigactive-username {
    font-size: 14px;
    opacity: 0.8;
}

/* Follow row */
.thigactive-follow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thigactive-follow-item {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.8);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 90px;
}

.thigactive-follow-label {
    font-size: 11px;
    opacity: 0.7;
}

.thigactive-follow-value {
    font-size: 15px;
    font-weight: 700;
}

/* Bio */
.thigactive-bio {
    font-size: 13px;
    line-height: 1.5;
    background: rgba(255,255,255,0.9);
    border-radius: 14px;
    padding: 8px 10px;
}

/* Status cards */
.thigactive-status-card {
    margin-top: 6px;
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.thigactive-status-active {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    color: #22543d;
}

.thigactive-status-deleted {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #742a2a;
}

.thigactive-status-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.thigactive-status-text {
    font-size: 14px;
}

/* Error card */
.thigactive-error-card {
    border-radius: 16px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff5f5, #fed7e2);
    color: #742a2a;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Inline branding */
.thigactive-brand-inline {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    align-self: flex-end;
    background: linear-gradient(135deg, #e9d8fd, #c4f1f9);
}

/* Responsive */
@media (max-width: 480px) {
    .thigactive-card-main {
        flex-direction: row;
        align-items: center;
    }

    .thigactive-wrapper {
        max-width: 100%;
        padding: 0 8px;
    }

    .thigactive-follow-row {
        gap: 6px;
    }

    .thigactive-follow-item {
        min-width: 0;
        padding: 6px 8px;
    }
}

.thigactive-avatar-empty {
    background: linear-gradient(135deg, #ddd, #f7f7f7);
}

.thigactive-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #bdbdbd, #eeeeee);
}
