/* ========================================
   Profile Page - New Design
   ======================================== */

.profile-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effects */
.glow-top {
    position: absolute;
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.glow-bottom {
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 155, 213, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Container */
.profile-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header Block */
.profile-header-block {
    text-align: center;
    margin-bottom: 4px;
}

.profile-page-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.4px;
}

.profile-page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* Card */
.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Avatar Section */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-outer {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    padding: 3px;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-inner svg {
    color: var(--text-secondary);
}

.change-photo-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
}

.change-photo-btn:hover {
    color: var(--accent-hover);
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    border-radius: 9px;
    padding: 9px 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 1px solid var(--border-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Section Label */
.section-label {
    margin-bottom: 18px;
}

.section-label-text {
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Styles */
.profile-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 14px;
    letter-spacing: 0.2px;
}

.profile-label:first-of-type {
    margin-top: 0;
}

.profile-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-input::placeholder {
    color: var(--text-muted);
}

.profile-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1);
}

/* Validation States */
.profile-input.valid {
    border-color: #22c55e;
}

.profile-input.valid:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.profile-input.invalid {
    border-color: #ef4444;
}

.profile-input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Buttons */
.btn-row {
    margin-top: 24px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
    border-radius: 10px;
    padding: 11px 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(255, 85, 0, 0.3);
    letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(255, 85, 0, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 3px 14px rgba(34, 197, 94, 0.3);
}

/* Error Text */
.error-text {
    color: #ef4444;
    font-size: 12.5px;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.activity-action {
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
}

.activity-time {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.activity-line {
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-secondary), transparent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Profile Message */
.profile-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
}

.profile-message.success {
    display: flex;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.profile-message.error {
    display: flex;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
    .profile-page {
        padding: 24px 16px 60px;
    }

    .profile-container {
        gap: 12px;
    }

    .profile-card {
        padding: 18px 20px;
    }

    .profile-page-title {
        font-size: 20px;
    }

    .avatar-outer {
        width: 76px;
        height: 76px;
    }

    .tab-btn {
        padding: 8px 4px;
        font-size: 12px;
    }
}
