/* ==========================================
   ALBION BM SCANNER v3.0
   profile.css — Profile Dashboard Stylesheet
   ========================================== */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Header Card with Gold-Purple Glow */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(212, 168, 67, 0.2);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.04) 0%, rgba(147, 51, 234, 0.03) 100%), var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.profile-avatar-wrap {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.25) 0%, rgba(212, 168, 67, 0.05) 100%);
    border: 1px solid rgba(212, 168, 67, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.1);
    position: relative;
}

.profile-avatar-wrap.premium-glow {
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.25);
    border-color: rgba(212, 168, 67, 0.5);
}

.profile-avatar-icon {
    width: 36px;
    height: 36px;
    color: var(--primary-gold);
    filter: drop-shadow(0 2px 8px rgba(212, 168, 67, 0.3));
}

.profile-title-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-username {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.profile-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-role-badge.admin {
    background: rgba(212, 168, 67, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(212, 168, 67, 0.25);
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.05);
}

.profile-sub-badge {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.profile-sub-badge.inactive {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Premium Dashboard Widgets Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 14px;
    padding: 22px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.profile-stat-card.gold-border {
    border-color: rgba(212, 168, 67, 0.15);
}

.profile-stat-card.gold-border:hover {
    border-color: rgba(212, 168, 67, 0.4);
}

.profile-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.profile-stat-card:hover .profile-stat-icon-wrap {
    background: rgba(212, 168, 67, 0.08);
    border-color: rgba(212, 168, 67, 0.2);
    color: var(--primary-gold);
}

.profile-stat-card.gold-border .profile-stat-icon-wrap {
    background: rgba(212, 168, 67, 0.06);
    border-color: rgba(212, 168, 67, 0.15);
    color: var(--primary-gold);
}

.profile-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.profile-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

/* Two columns split */
.profile-split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .profile-split-row {
        grid-template-columns: 1fr;
    }
}

.profile-form-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.profile-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form-group {
    margin-bottom: 18px;
}

.profile-form-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-input:focus {
    border-color: rgba(212, 168, 67, 0.4);
    background: rgba(0, 0, 0, 0.4);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.profile-btn {
    width: 100%;
    background: rgba(212, 168, 67, 0.1);
    color: var(--primary-gold);
    border: 1px solid rgba(212, 168, 67, 0.2);
    font-weight: 700;
    font-size: 12px;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-btn:hover {
    background: var(--primary-gold);
    color: #000000;
    border-color: var(--primary-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.15);
}

.profile-status-msg {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.profile-status-msg.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #4ade80;
    display: block;
}

.profile-status-msg.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    display: block;
}

/* User Trades Table Dashboard */
.profile-trades-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.profile-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.profile-table th {
    padding: 14px 18px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.1);
}

.profile-table td {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.profile-table tr {
    transition: background 0.15s ease;
}

.profile-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-primary);
}

.profile-delete-btn {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}
