.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}


.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
    border-radius: 50%;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--border);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.avatar-section {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
}

.edit-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.edit-btn svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.user-info .username {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-info .user-id {
    font-size: 13px;
    opacity: 0.8;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.images {
    background: linear-gradient(135deg, #ffe5b4, #ffcd82);
}

.stat-icon.pdfs {
    background: linear-gradient(135deg, #ffeaea, #ffb4b4);
}

.stat-icon.balance {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    color: var(--text-lighter);
}

.menu-section {
    margin-bottom: 20px;
}

.menu-group {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--bg);
}

.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: var(--text);
}

.menu-arrow {
    color: var(--text-lighter);
}

.menu-arrow svg {
    width: 18px;
    height: 18px;
}

.version-text {
    font-size: 12px;
    color: var(--text-lighter);
    margin-left: 8px;
}

.logout-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 500;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(255, 77, 79, 0.1);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.qrcode-content .modal-body {
    padding: 30px;
}

.qrcode-box {
    text-align: center;
}

.qrcode-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.qrcode-placeholder svg {
    width: 120px;
    height: 120px;
}

.qrcode-tip {
    font-size: 14px;
    color: var(--text-light);
}

.about-content {
    text-align: center;
    padding: 30px;
}

.about-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.about-logo svg {
    width: 100%;
    height: 100%;
}

.about-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}

.version-info {
    font-size: 12px;
    color: var(--text-lighter);
}

@media (min-width: 768px) {
    .app-nav {
        display: none;
    }
    
    .app-container {
        padding-bottom: 0;
    }
    
    .app-main {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .profile-header {
        padding: 40px;
    }
    
    .stats-section {
        gap: 20px;
    }
}