/* ── Profile Page ─────────────────────────────── */
.profile-page {
    min-height: 100vh;
    padding: 120px 24px 60px;
    max-width: 720px;
    margin: 0 auto;
}

/* Loading */
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 16px;
    color: var(--text-300);
}

.loader {
    width: 36px;
    height: 36px;
    border: 3px solid var(--bg-600);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* No Auth */
.profile-noauth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.noauth-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
}

.noauth-card svg {
    color: var(--text-400);
    margin-bottom: 16px;
}

.noauth-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-100);
    margin-bottom: 8px;
}

.noauth-card p {
    color: var(--text-300);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Profile Header */
.profile-header {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
}

.profile-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--bg-600);
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-100);
    line-height: 1.2;
}

.profile-handle {
    color: var(--text-400);
    font-size: 0.85rem;
}

.profile-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}

.profile-badge.licensed {
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.25);
    color: var(--cyan);
}

.profile-badge.unlicensed {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-400);
}

/* Cards */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.card-header h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-100);
    letter-spacing: 0.02em;
}

.card-subtitle {
    color: var(--text-400);
    font-size: 0.8rem;
    margin-top: -12px;
    margin-bottom: 20px;
}

/* License Key Box */
.license-key-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.12);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.license-key-box code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    letter-spacing: 0.03em;
    user-select: all;
}

.icon-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    color: var(--text-300);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-100);
}

.icon-btn.copied {
    color: var(--green);
    border-color: rgba(16,185,129,0.3);
}

.license-meta {
    color: var(--text-400);
    font-size: 0.75rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hwid-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.hwid-badge.bound {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--green);
}
.hwid-badge.unbound {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: var(--yellow);
}

/* Buttons */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
}

.btn-danger {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #ef4444;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.4);
}

.btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cooldown-text {
    color: var(--text-400);
    font-size: 0.75rem;
    margin-top: 8px;
}

/* No License */
.no-license-box {
    text-align: center;
    padding: 24px 0;
}

.no-license-box p {
    color: var(--text-300);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Whitelist */
.whitelist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.whitelist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.whitelist-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whitelist-item-name img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.whitelist-item-name span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-100);
}

.whitelist-remove {
    background: none;
    border: none;
    color: var(--text-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
}

.whitelist-remove:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.whitelist-add {
    display: flex;
    gap: 8px;
}

.whitelist-add input {
    flex: 1;
    background: var(--bg-800);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-100);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.whitelist-add input::placeholder {
    color: var(--text-400);
}

.whitelist-add input:focus {
    border-color: rgba(0,212,255,0.3);
}

.error-text {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 8px;
}

.whitelist-empty {
    color: var(--text-400);
    font-size: 0.8rem;
    text-align: center;
    padding: 12px 0;
    font-style: italic;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 600px) {
    .profile-header-inner {
        flex-direction: column;
        text-align: center;
    }
    .profile-badge {
        margin-top: 8px;
    }
    .profile-page {
        padding: 100px 16px 40px;
    }
}
